From: Mel Gorman <mel@csn.ul.ie>
To: Minchan Kim <minchan.kim@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Linux Kernel List <linux-kernel@vger.kernel.org>,
linux-mm@kvack.org, Wu Fengguang <fengguang.wu@intel.com>,
Hugh Dickins <hughd@google.com>, Andi Kleen <andi@firstfloor.org>,
Christoph Lameter <cl@linux.com>
Subject: Re: [PATCH v2 2/2] compaction: fix COMPACTPAGEFAILED counting
Date: Mon, 30 Aug 2010 10:56:23 +0100 [thread overview]
Message-ID: <20100830095623.GH19556@csn.ul.ie> (raw)
In-Reply-To: <1282664620-4539-1-git-send-email-minchan.kim@gmail.com>
On Wed, Aug 25, 2010 at 12:43:40AM +0900, Minchan Kim wrote:
> Now update_nr_listpages doesn't have a role. That's because
> lists passed is always empty just after calling migrate_pages.
> The migrate_pages cleans up page list which have failed to migrate
> before returning by aaa994b3.
>
> [PATCH] page migration: handle freeing of pages in migrate_pages()
>
> Do not leave pages on the lists passed to migrate_pages(). Seems that we will
> not need any postprocessing of pages. This will simplify the handling of
> pages by the callers of migrate_pages().
>
> At that time, we thought we don't need any postprocessing of pages.
> But the situation is changed. The compaction need to know the number of
> failed to migrate for COMPACTPAGEFAILED stat
>
> This patch makes new rule for caller of migrate_pages to call putback_lru_pages.
> So caller need to clean up the lists so it has a chance to postprocess the pages.
> [suggested by Christoph Lameter]
>
> Cc: Hugh Dickins <hughd@google.com>
> Cc: Andi Kleen <andi@firstfloor.org>
> Cc: Christoph Lameter <cl@linux.com>
> Cc: Mel Gorman <mel@csn.ul.ie>
> Signed-off-by: Minchan Kim <minchan.kim@gmail.com>
Looks good and it passed basic testing.
Reviewed-by: Mel Gorman <mel@csn.ul.ie>
Thanks
--
Mel Gorman
Part-time Phd Student Linux Technology Center
University of Limerick IBM Dublin Software Lab
--
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:[~2010-08-30 9:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-24 15:43 [PATCH v2 2/2] compaction: fix COMPACTPAGEFAILED counting Minchan Kim
2010-08-24 17:09 ` Christoph Lameter
2010-08-24 23:18 ` Wu Fengguang
2010-08-30 9:56 ` Mel Gorman [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-08-24 15:31 [PATCH v2 1/2] compaction: handle active and inactive fairly in too_many_isolated Minchan Kim
2010-08-24 15:31 ` [PATCH v2 2/2] compaction: fix COMPACTPAGEFAILED counting Minchan Kim
2010-08-24 15:42 ` Minchan Kim
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=20100830095623.GH19556@csn.ul.ie \
--to=mel@csn.ul.ie \
--cc=akpm@linux-foundation.org \
--cc=andi@firstfloor.org \
--cc=cl@linux.com \
--cc=fengguang.wu@intel.com \
--cc=hughd@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=minchan.kim@gmail.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;
as well as URLs for NNTP newsgroup(s).