Re: [patch resend] mm: page_alloc: fix zone allocation fairness on UP

2014-10-03 Thread Christoph Lameter
On Thu, 11 Sep 2014, Leon Romanovsky wrote: > >> I think the better way will be to apply Mel's patch > >> https://lkml.org/lkml/2014/9/8/214 which fix zone_page_state shadow casting > >> issue and convert all atomic_long_read(&zone->vm_stat[NR_ALLOC_BATCH])) to > >> zone_page__state(zone, NR_ALLOC

Re: [patch resend] mm: page_alloc: fix zone allocation fairness on UP

2014-09-11 Thread Leon Romanovsky
On Thu, Sep 11, 2014 at 3:36 PM, Johannes Weiner wrote: > On Wed, Sep 10, 2014 at 07:32:20AM +0300, Leon Romanovsky wrote: >> Hi Johaness, >> >> >> On Tue, Sep 9, 2014 at 4:15 PM, Johannes Weiner wrote: >> >> > The zone allocation batches can easily underflow due to higher-order >> > allocations

Re: [patch resend] mm: page_alloc: fix zone allocation fairness on UP

2014-09-11 Thread Johannes Weiner
On Wed, Sep 10, 2014 at 07:32:20AM +0300, Leon Romanovsky wrote: > Hi Johaness, > > > On Tue, Sep 9, 2014 at 4:15 PM, Johannes Weiner wrote: > > > The zone allocation batches can easily underflow due to higher-order > > allocations or spills to remote nodes. On SMP that's fine, because > > und

[patch resend] mm: page_alloc: fix zone allocation fairness on UP

2014-09-09 Thread Johannes Weiner
The zone allocation batches can easily underflow due to higher-order allocations or spills to remote nodes. On SMP that's fine, because underflows are expected from concurrency and dealt with by returning 0. But on UP, zone_page_state will just return a wrapped unsigned long, which will get past