Re: [patch 01/10] mm: memcg: fix compaction/migration failing due to memcg limits

2012-07-12 Thread Johannes Weiner
On Thu, Jul 12, 2012 at 05:10:43PM +0800, Wanpeng Li wrote: > On Thu, Jul 12, 2012 at 04:54:07PM +0800, Wanpeng Li wrote: > >On Wed, Jul 11, 2012 at 07:02:13PM +0200, Johannes Weiner wrote: > >>Compaction (and page migration in general) can currently be hindered > >>through pages being owned by

Re: [patch 01/10] mm: memcg: fix compaction/migration failing due to memcg limits

2012-07-12 Thread Johannes Weiner
On Thu, Jul 12, 2012 at 04:54:07PM +0800, Wanpeng Li wrote: > On Wed, Jul 11, 2012 at 07:02:13PM +0200, Johannes Weiner wrote: > >Compaction (and page migration in general) can currently be hindered > >through pages being owned by memory cgroups that are at their limits > >and unreclaimable. > > >

Re: [patch 01/10] mm: memcg: fix compaction/migration failing due to memcg limits

2012-07-12 Thread Wanpeng Li
On Thu, Jul 12, 2012 at 04:54:07PM +0800, Wanpeng Li wrote: >On Wed, Jul 11, 2012 at 07:02:13PM +0200, Johannes Weiner wrote: >>Compaction (and page migration in general) can currently be hindered >>through pages being owned by memory cgroups that are at their limits >>and unreclaimable. >> >>The

Re: [patch 01/10] mm: memcg: fix compaction/migration failing due to memcg limits

2012-07-12 Thread Wanpeng Li
On Wed, Jul 11, 2012 at 07:02:13PM +0200, Johannes Weiner wrote: >Compaction (and page migration in general) can currently be hindered >through pages being owned by memory cgroups that are at their limits >and unreclaimable. > >The reason is that the replacement page is being charged against the

Re: [patch 01/10] mm: memcg: fix compaction/migration failing due to memcg limits

2012-07-12 Thread Wanpeng Li
On Wed, Jul 11, 2012 at 07:02:13PM +0200, Johannes Weiner wrote: Compaction (and page migration in general) can currently be hindered through pages being owned by memory cgroups that are at their limits and unreclaimable. The reason is that the replacement page is being charged against the limit

Re: [patch 01/10] mm: memcg: fix compaction/migration failing due to memcg limits

2012-07-12 Thread Wanpeng Li
On Thu, Jul 12, 2012 at 04:54:07PM +0800, Wanpeng Li wrote: On Wed, Jul 11, 2012 at 07:02:13PM +0200, Johannes Weiner wrote: Compaction (and page migration in general) can currently be hindered through pages being owned by memory cgroups that are at their limits and unreclaimable. The reason is

Re: [patch 01/10] mm: memcg: fix compaction/migration failing due to memcg limits

2012-07-12 Thread Johannes Weiner
On Thu, Jul 12, 2012 at 04:54:07PM +0800, Wanpeng Li wrote: On Wed, Jul 11, 2012 at 07:02:13PM +0200, Johannes Weiner wrote: Compaction (and page migration in general) can currently be hindered through pages being owned by memory cgroups that are at their limits and unreclaimable. The

Re: [patch 01/10] mm: memcg: fix compaction/migration failing due to memcg limits

2012-07-12 Thread Johannes Weiner
On Thu, Jul 12, 2012 at 05:10:43PM +0800, Wanpeng Li wrote: On Thu, Jul 12, 2012 at 04:54:07PM +0800, Wanpeng Li wrote: On Wed, Jul 11, 2012 at 07:02:13PM +0200, Johannes Weiner wrote: Compaction (and page migration in general) can currently be hindered through pages being owned by memory

[patch 01/10] mm: memcg: fix compaction/migration failing due to memcg limits

2012-07-11 Thread Johannes Weiner
Compaction (and page migration in general) can currently be hindered through pages being owned by memory cgroups that are at their limits and unreclaimable. The reason is that the replacement page is being charged against the limit while the page being replaced is also still charged. But this

[patch 01/10] mm: memcg: fix compaction/migration failing due to memcg limits

2012-07-11 Thread Johannes Weiner
Compaction (and page migration in general) can currently be hindered through pages being owned by memory cgroups that are at their limits and unreclaimable. The reason is that the replacement page is being charged against the limit while the page being replaced is also still charged. But this