mirror_zfs/man
Alexander Motin db290fd48b 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
(cherry picked from commit 0aa83dce99)
2025-05-28 16:00:28 -07:00
..
man1 Harmonize on American spelling in several places 2025-04-16 09:59:45 -07:00
man4 Linux: Stop using NR_FILE_PAGES for ARC scaling 2025-05-28 16:00:28 -07:00
man5 SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
man7 Disambiguate reference to kibibytes, not kilobytes 2025-04-16 09:59:45 -07:00
man8 zfs-rollback.8: fix typo in example number 2025-05-28 16:00:28 -07:00
Makefile.am Add DDT prune command 2024-09-04 14:17:02 -07:00