Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux: Report reclaimable memory to kernel as such #16385

Merged
merged 1 commit into from
Jul 30, 2024

Commits on Jul 24, 2024

  1. Linux: Report reclaimable memory to kernel as such

    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 <[email protected]>
    Sponsored by:	iXsystems, Inc.
    amotin committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    9cccb4f View commit details
    Browse the repository at this point in the history