Skip to contentSkip to conversation

Large slab cache in 2.6.1

DISCUSSION Manfred Spraul 1 participant 1 message Feb 22, 2004

lore
Share & tools
lore
#0 lore raw
Quoted 10 lines
Quoted 4 lines · Linus Torvalds

What happened to the experiment of having slab pages on the (in)active
lists and letting them be free'd that way? Didn't somebody already do that? Ed Tomlinson and Craig Kulesa?

That was Ed. Because we cannot reclaim slab pages direct from the LRU

I think that this is needed: Bonwick's slab algorithm (i.e. two-level linked lists, implemented in cache_alloc_refill and free_block) is intended for unfreeable objects. The dentry cache is a cache of freeable objects - a different algorithm would be more efficient for shrinking the dentry cache after an updatedb. I had started prototyping, but didn't get far.
--
Manfred