Re: [PATCH v13 10/16] vmscan: shrink slab on memcg pressure

2013-12-09 Thread Dave Chinner
On Mon, Dec 09, 2013 at 12:05:51PM +0400, Vladimir Davydov wrote: > This patch makes direct reclaim path shrink slab not only on global > memory pressure, but also when we reach the user memory limit of a > memcg. To achieve that, it makes shrink_slab() walk over the memcg > hierarchy and run shrin

[PATCH v13 10/16] vmscan: shrink slab on memcg pressure

2013-12-09 Thread Vladimir Davydov
This patch makes direct reclaim path shrink slab not only on global memory pressure, but also when we reach the user memory limit of a memcg. To achieve that, it makes shrink_slab() walk over the memcg hierarchy and run shrinkers marked as memcg-aware on the target memcg and all its descendants. Th