[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121126031518.GC2799@cmpxchg.org>
Date: Sun, 25 Nov 2012 22:15:18 -0500
From: Johannes Weiner <hannes@...xchg.org>
To: Rik van Riel <riel@...hat.com>
Cc: Johannes Hirte <johannes.hirte@....tu-ilmenau.de>,
akpm@...ux-foundation.org, mgorman@...e.de,
Valdis.Kletnieks@...edu, jirislaby@...il.com, jslaby@...e.cz,
zkabelac@...hat.com, mm-commits@...r.kernel.org,
linux-mm@...ck.org, linux-kernel@...r.kernel.org,
torvalds@...ux-foundation.org
Subject: Re: [PATCH] mm,vmscan: only loop back if compaction would fail in
all zones
On Sun, Nov 25, 2012 at 07:16:45PM -0500, Rik van Riel wrote:
> On Sun, 25 Nov 2012 17:44:33 -0500
> Johannes Weiner <hannes@...xchg.org> wrote:
> > On Sun, Nov 25, 2012 at 01:29:50PM -0500, Rik van Riel wrote:
>
> > > Could you try this patch?
> >
> > It's not quite enough because it's not reaching the conditions you
> > changed, see analysis in https://lkml.org/lkml/2012/11/20/567
>
> Johannes,
>
> does the patch below fix your problem?
I can not reproduce the problem anymore with my smoke test.
> I suspect it would, because kswapd should only ever run into this
> particular problem when we have a tiny memory zone in a pgdat,
> and in that case we will also have a larger zone nearby, where
> compaction would just succeed.
What if there is a higher order GFP_DMA allocation when the other
zones in the system meet the high watermark for this order?
There is something else that worries me: if the preliminary zone scan
finds the high watermark of all zones alright, end_zone is at its
initialization value, 0. The final compaction loop at `if (order)'
goes through all zones up to and including end_zone, which was never
really set to anything meaningful(?) and the only zone considered is
the DMA zone again. Very unlikely, granted, but if you'd ever hit
that race and kswapd gets stuck, this will be fun to debug...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists