Ezequiel Garcia
2012-10-22 14:50:36 UTC
On page allocations, SLAB and SLUB modify zone page state counters
NR_SLAB_UNRECLAIMABLE or NR_SLAB_RECLAIMABLE.
This allows to obtain slab usage information at /proc/meminfo.
Without this patch, /proc/meminfo will show zero Slab usage for SLOB.
Since SLOB discards SLAB_RECLAIM_ACCOUNT flag, we always use
NR_SLAB_UNRECLAIMABLE zone state item.
Hmmm... that is unfortunate. The NR_SLAB_RECLAIMABLE stat is used byNR_SLAB_UNRECLAIMABLE or NR_SLAB_RECLAIMABLE.
This allows to obtain slab usage information at /proc/meminfo.
Without this patch, /proc/meminfo will show zero Slab usage for SLOB.
Since SLOB discards SLAB_RECLAIM_ACCOUNT flag, we always use
NR_SLAB_UNRECLAIMABLE zone state item.
reclaim to make decisions on when to reclaim inodes and dentries.
Could you fix that to properly account the reclaimable/unreclaimable
pages?
My concern is:
1. SLOB is minimal, designed to have minimal footprint, and I'd like
to keep it that way. Of course, perhaps the change will add just a few bytes.
2. Since no SLOB user has ever complained on this...
How will this affect SLOB workings?
(I'm adding the uclinux guys, so at least they're aware of this)
Ezequiel