HomeFreeBSD

Linux: Report reclaimable memory to kernel as such (#16385)

Description

Linux: Report reclaimable memory to kernel as such (#16385)

Linux provides SLAB_RECLAIM_ACCOUNT and __GFP_RECLAIMABLE flags to
mark memory allocations that can be freed via shinker calls. It
should allow kernel to tune and group such allocations for lower
memory fragmentation and better reclamation under pressure.

This patch marks as reclaimable most of ARC memory, directly
evictable via ZFS shrinker, plus also dnode/znode/sa memory,
indirectly evictable via kernel's superblock shrinker.

Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Allan Jude <allan@klarasystems.com>

Details

Provenance
mavAuthored on Jul 30 2024, 6:40 PM
GitHub <noreply@github.com>Committed on Jul 30 2024, 6:40 PM
Parents
rGd54d0fff392a: dnode: allow storage class to be overridden by object type
Branches
Unknown
Tags
Unknown