Re: [PATCH v5 02/14] memcg: Reclaim when more than one page needed.

2012-10-17 Thread David Rientjes
On Tue, 16 Oct 2012, Glauber Costa wrote: > From: Suleiman Souhlal > > mem_cgroup_do_charge() was written before kmem accounting, and expects > three cases: being called for 1 page, being called for a stock of 32 > pages, or being called for a hugepage. If we call for 2 or 3 pages (and > both t

[PATCH v5 02/14] memcg: Reclaim when more than one page needed.

2012-10-16 Thread Glauber Costa
From: Suleiman Souhlal mem_cgroup_do_charge() was written before kmem accounting, and expects three cases: being called for 1 page, being called for a stock of 32 pages, or being called for a hugepage. If we call for 2 or 3 pages (and both the stack and several slabs used in process creation are