Re: [patch 12/23] SLUB: Trigger defragmentation from memory reclaim

Christoph Lameter
2007-11-08T19:00:42Z

On Thu, 8 Nov 2007, Mel Gorman wrote:

> > up_read(&shrinker_rwsem);
> > + if (gfp_mask & __GFP_FS)
> > + kmem_cache_defrag(zone ? zone_to_nid(zone) : -1);
>
> Does this make an assumption that only filesystem-related slabs may be
> targetted for reclaim? What if there is a slab that can free its objects
> without ever caring about a filesystem?

Correct. Currently only filesystem related slabs support slab defragy.