Re: [PATCH v4 24/25] memcg/slub: shrink dead caches

2012-07-25 Thread Glauber Costa
On 07/25/2012 07:23 PM, Christoph Lameter wrote: > On Fri, 20 Jul 2012, Glauber Costa wrote: > >>> This is the same btw in SLAB which keeps objects in per cpu caches and >>> keeps empty slab pages on special queues. >>> This patch marks all memcg caches as dead. kmem_cache_shrink is called >>

Re: [PATCH v4 24/25] memcg/slub: shrink dead caches

2012-07-25 Thread Christoph Lameter
On Fri, 20 Jul 2012, Glauber Costa wrote: > > This is the same btw in SLAB which keeps objects in per cpu caches and > > keeps empty slab pages on special queues. > > > >> This patch marks all memcg caches as dead. kmem_cache_shrink is called > >> for the ones who are not yet dead - this will forc

Re: [PATCH v4 24/25] memcg/slub: shrink dead caches

2012-07-20 Thread Glauber Costa
On 07/06/2012 12:16 PM, Christoph Lameter wrote: > On Mon, 18 Jun 2012, Glauber Costa wrote: > >> In the slub allocator, when the last object of a page goes away, we >> don't necessarily free it - there is not necessarily a test for empty >> page in any slab_free path. > > This is the same btw in

Re: [PATCH v4 24/25] memcg/slub: shrink dead caches

2012-07-06 Thread Christoph Lameter
On Mon, 18 Jun 2012, Glauber Costa wrote: > In the slub allocator, when the last object of a page goes away, we > don't necessarily free it - there is not necessarily a test for empty > page in any slab_free path. This is the same btw in SLAB which keeps objects in per cpu caches and keeps empty