From: "KOSAKI Motohiro" <kosaki.motohiro@jp.fujitsu.com>
To: Rik van Riel <riel@redhat.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-mm <linux-mm@kvack.org>,
Balbir Singh <balbir@linux.vnet.ibm.com>,
David Rientjes <rientjes@google.com>
Subject: Re: [for -mm][PATCH][1/2] page reclaim throttle take3
Date: Sun, 23 Mar 2008 01:01:04 +0900 [thread overview]
Message-ID: <2f11576a0803220901v10a7e3d2j1b7d450b8a100fd3@mail.gmail.com> (raw)
In-Reply-To: <20080322105531.23f2bfdf@bree.surriel.com>
Hi Rik,
> On Sat, 22 Mar 2008 19:45:54 +0900
> KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> wrote:
>
> > + wait_event(zone->reclaim_throttle_waitq,
> > + atomic_add_unless(&zone->nr_reclaimers, 1,
> > + CONFIG_NR_MAX_RECLAIM_TASKS_PER_ZONE));
>
> I like your patch, but can see one potential problem. Sometimes
> tasks that go into page reclaim with GFP_HIGHUSER end up recursing
> back into page reclaim without __GFP_FS and/or __GFP_IO.
>
> In that scenario, a task could end up waiting on itself and
> deadlocking.
interesting point out.
but unfortunately I don't understand yet, sorry ;)
I think recursing reclaim doesn't happend because call graph is maked
as the following at that time.
__alloc_pages_internal (turn on PF_MEMALLOC)
+- try_to_free_pages
+- (skip)
+- pageout
+- (skip)
+- __alloc_pages_internal
in second __alloc_pages_internal, PF_MEMALLOC populated.
thus bypassed try_to_free_pages.
Am I misunderstanding anything?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2008-03-22 16:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-22 10:45 KOSAKI Motohiro
2008-03-22 10:51 ` [for -mm][PATCH][2/2] " KOSAKI Motohiro
2008-03-22 14:55 ` [for -mm][PATCH][1/2] " Rik van Riel
2008-03-22 16:01 ` KOSAKI Motohiro [this message]
2008-03-22 16:15 ` Rik van Riel
2008-03-22 16:43 ` KOSAKI Motohiro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2f11576a0803220901v10a7e3d2j1b7d450b8a100fd3@mail.gmail.com \
--to=kosaki.motohiro@jp.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=balbir@linux.vnet.ibm.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-mm@kvack.org \
--cc=riel@redhat.com \
--cc=rientjes@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox