[<prev] [next>] [day] [month] [year] [list]
Message-ID: <00bc01d10656$c7f19ef0$57d4dcd0$@alibaba-inc.com>
Date: Wed, 14 Oct 2015 16:03:15 +0800
From: "Hillf Danton" <hillf.zj@...baba-inc.com>
To: "'Tetsuo Handa'" <penguin-kernel@...ove.SAKURA.ne.jp>
Cc: "Linus Torvalds" <torvalds@...ux-foundation.org>,
"Michal Hocko" <mhocko@...nel.org>,
"David Rientjes" <rientjes@...gle.com>,
"Johannes Weiner" <hannes@...xchg.org>,
"linux-kernel" <linux-kernel@...r.kernel.org>, <linux-mm@...ck.org>
Subject: Re: Silent hang up caused by pages being not scanned?
> >
> > In particular, I think that you'll find that you will have to change
> > the heuristics in __alloc_pages_slowpath() where we currently do
> >
> > if ((did_some_progress && order <= PAGE_ALLOC_COSTLY_ORDER) || ..
> >
> > when the "did_some_progress" logic changes that radically.
> >
>
> Yes. But we can't simply do
>
> if (order <= PAGE_ALLOC_COSTLY_ORDER || ..
>
> because we won't be able to call out_of_memory(), can we?
>
Can you please try a simplified retry logic?
thanks
Hillf
--- a/mm/page_alloc.c Wed Oct 14 14:45:28 2015
+++ b/mm/page_alloc.c Wed Oct 14 15:43:31 2015
@@ -3154,8 +3154,7 @@ retry:
/* Keep reclaiming pages as long as there is reasonable progress */
pages_reclaimed += did_some_progress;
- if ((did_some_progress && order <= PAGE_ALLOC_COSTLY_ORDER) ||
- ((gfp_mask & __GFP_REPEAT) && pages_reclaimed < (1 << order))) {
+ if (did_some_progress) {
/* Wait for some write requests to complete then retry */
wait_iff_congested(ac->preferred_zone, BLK_RW_ASYNC, HZ/50);
goto retry;
--
--
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