mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Allow scaling of arc in proportion to pagecache
When multiple filesystems are in use, memory pressure causes arc_cache to collapse to a minimum. Allow arc_cache to maintain proportional size even when hit rates are disproportionate. We do this only via evictable size from the kernel shrinker, thus it's only in effect under memory pressure. AKAMAI: zfs: CR 3695072 Reviewed-by: Tim Chase <tim@chase2k.com> Reviewed-by: Richard Yao <ryao@gentoo.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Debabrata Banerjee <dbanerje@akamai.com> Closes #6035
This commit is contained in:
committed by
Brian Behlendorf
parent
4149bf498a
commit
03b60eee78
@@ -699,6 +699,24 @@ log2(fraction of arc to reclaim)
|
||||
Default value: \fB5\fR.
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.na
|
||||
\fBzfs_arc_pc_percent\fR (uint)
|
||||
.ad
|
||||
.RS 12n
|
||||
Percent of pagecache to reclaim arc to
|
||||
|
||||
This tunable allows ZFS arc to play more nicely with the kernel's LRU
|
||||
pagecache. It can guarantee that the arc size won't collapse under scanning
|
||||
pressure on the pagecache, yet still allows arc to be reclaimed down to
|
||||
zfs_arc_min if necessary. This value is specified as percent of pagecache
|
||||
size (as measured by NR_FILE_PAGES) where that percent may exceed 100. This
|
||||
only operates during memory pressure/reclaim.
|
||||
.sp
|
||||
Default value: \fB0\fR (disabled).
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.na
|
||||
|
||||
Reference in New Issue
Block a user