Merge pull request #1149 from trapexit/readahead

Add ability to set readahead of mergerfs and branches
This commit is contained in:
trapexit 2023-03-09 00:13:49 -05:00 • committed by GitHub
commit 10a9969a64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 188 additions and 7 deletions

View file

@ -265,6 +265,10 @@ instead.
rename fails with EXDEV optionally move the file to a special directory
and symlink to it.
.IP \[bu] 2
\f[B]readahead=UINT\f[R]: Set readahead (in kilobytes) for mergerfs and
branches if greater than 0.
(default: 0)
.IP \[bu] 2
\f[B]posix_acl=BOOL\f[R]: Enable POSIX ACL support (if supported by
kernel and underlying filesystem).
(default: false)
@ -1982,11 +1986,7 @@ use tiered cache drives
.IP \[bu] 2
use LVM and LVM cache to place a SSD in front of your HDDs
.IP \[bu] 2
if \f[C]cache.files\f[R] is enabled increase readahead:
\f[C]echo \[dq]1024\[dq] > /sys/class/bdi/0:$(stat -c%d /MOUNT)/read_ahead_kb\f[R]
.IP \[bu] 2
increase readahead on all devices:
\f[C]ls -1 /sys/class/bdi/*/read_ahead_kb | xargs -n1 -I{} sh -c \[dq]echo 1024 > {}\[dq]\f[R]
increase readahead: \f[C]readahead=1024\f[R]
.PP
If you come across a setting that significantly impacts performance
please contact trapexit so he may investigate further.