zfs/man
shodanshok bbe8512a93
Ignore zfs_arc_shrinker_limit in direct reclaim mode
zfs_arc_shrinker_limit (default: 10000) avoids ARC collapse
due to excessive memory reclaim. However, when the kernel is
in direct reclaim mode (ie: low on memory), limiting ARC reclaim
increases OOM risk. This is especially true on system without
(or with inadequate) swap.

This patch ignores zfs_arc_shrinker_limit when the kernel is in
direct reclaim mode, avoiding most OOM. It also restores
"echo 3 > /proc/sys/vm/drop_caches" ability to correctly drop
(almost) all ARC.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Adam Moss <c@yotes.com>
Signed-off-by: Gionatan Danti <g.danti@assyoma.it>
Closes #16313
2024-08-21 10:00:33 -07:00
..
man1 RAID-Z expansion feature 2023-11-08 10:19:41 -08:00
man4 Ignore zfs_arc_shrinker_limit in direct reclaim mode 2024-08-21 10:00:33 -07:00
man5 Consistentify miscellaneous style on remaining manpages 2021-06-09 14:35:53 -07:00
man7 ddt: add FDT feature and support for legacy and new on-disk formats 2024-08-16 11:58:59 -07:00
man8 JSON output support for zpool status 2024-08-06 12:47:10 -07:00
Makefile.am ddt: add support for prefetching tables into the ARC 2024-07-26 09:16:18 -07:00