SLAB_RECLAIM_ACCOUNT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 SLAB_RECLAIM_ACCOUNT(9) 🌸

okay so bestie, welcome to the Kernel API Manual β€” this one's a little flag from the slab allocator side of town and it's honestly kind of a big deal ✨


πŸ’– NAME πŸ’–

SLAB_RECLAIM_ACCOUNT β€” the flag that says these objects are reclaimable, and yes that's the whole mood 🫢


πŸŽ€ SYNOPSIS πŸŽ€

SLAB_RECLAIM_ACCOUNT

like, that's it. that's the flag. no args, no drama πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea πŸ“ β€” you use this flag for caches that have an associated shrinker. that's the whole point, that's the vibe.

because of that, slab pages get allocated with __GFP_RECLAIMABLE πŸ”₯ which does two things, and both of them are lowkey important:

  • it affects grouping pages by mobility (yes, the pages get sorted by how movable they are, it's giving page-grouping main character energy)
  • and those pages get accounted in the SReclaimable counter in /proc/meminfo πŸ“Š β€” so when you peek at your meminfo, that's where it shows up, iykyk

no cap, that's the entire flag. small flag, big accounting consequences ✨


⭐ SEE ALSO ⭐

the whole squad, fr fr β€” and hey, peep the kernel file too:


πŸ’€ reminder bestie: if your cache has a shrinker, this flag is the flag. if it doesn't, this ain't it β€” go read SLAB_ACCOUNT(9) instead, k? πŸ™ˆ

and that's a wrap, mwah πŸ’‹ β€” this lil page came from ./include/linux, dated October 2026, and it lives in the Kernel API Manual section 9. go be reclaimable, icon πŸ‘‘πŸŒˆ

πŸ“¦ where this page comes from