mirror_zfs/man
Alexander Motin 0aa83dce99
Linux: Stop using NR_FILE_PAGES for ARC scaling
I've found that QEMU/KVM guest memory accounted as shared also
included into NR_FILE_PAGES.  But it is actually a non-evictable
anonymous memory.  Using it as a base for zfs_arc_pc_percent
parameter makes ARC to ignore shrinker requests while page cache
does not really have anything to evict, ending up in OOM killer
killing the QEMU process.

Instead use of NR_ACTIVE_FILE + NR_INACTIVE_FILE should represent
the part of a page cache that is actually evictable, which should
be safer to use as a reference for ARC scaling.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Reviewed-by: Pavel Snajdr <snajpa@snajpa.net>
Signed-off-by:	Alexander Motin <mav@FreeBSD.org>
Sponsored by:	iXsystems, Inc.
Closes #17334
2025-05-14 09:29:02 -04:00
..
man1 Harmonize on American spelling in several places 2025-03-24 14:36:34 -07:00
man4 Linux: Stop using NR_FILE_PAGES for ARC scaling 2025-05-14 09:29:02 -04:00
man5 SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
man7 zfsprops.7 manpage changes for default quotas 2025-04-03 10:36:49 -07:00
man8 Introduce zfs rewrite subcommand (#17246) 2025-05-12 10:22:17 -07:00
Makefile.am Introduce zfs rewrite subcommand (#17246) 2025-05-12 10:22:17 -07:00