All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rik van Riel <riel@redhat.com>
To: Minchan Kim <minchan.kim@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	linux-mm <linux-mm@kvack.org>,
	LKML <linux-kernel@vger.kernel.org>,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
	Johannes Weiner <hannes@cmpxchg.org>,
	KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
	Mel Gorman <mgorman@suse.de>, Ying Han <yinghan@google.com>
Subject: Re: [PATCH 2/2] Filter unevictable page out in deactivate_page
Date: Mon, 02 May 2011 10:57:31 -0400	[thread overview]
Message-ID: <4DBEC65B.4010201@redhat.com> (raw)
In-Reply-To: <dc54a5771cf1f580a91d16816100d4a2bcf2cdf5.1304261567.git.minchan.kim@gmail.com>

On 05/01/2011 11:03 AM, Minchan Kim wrote:
> It's pointless that deactive_page's pagevec operation about
> unevictable page as it's nop.
> This patch removes unnecessary overhead which might be a bit problem
> in case that there are many unevictable page in system(ex, mprotect workload)
>
> Signed-off-by: Minchan Kim<minchan.kim@gmail.com>
> ---
>   mm/swap.c |    9 +++++++++
>   1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/mm/swap.c b/mm/swap.c
> index 2e9656d..b707694 100644
> --- a/mm/swap.c
> +++ b/mm/swap.c
> @@ -511,6 +511,15 @@ static void drain_cpu_pagevecs(int cpu)
>    */
>   void deactivate_page(struct page *page)
>   {
> +
> +	/*
> +	 * In workload which system has many unevictable page(ex, mprotect),
> +	 * unevictalge page deactivation for accelerating reclaim

Typo.

> +	 * is pointless.
> +	 */
> +	if (PageUnevictable(page))
> +		return;
> +
>   	if (likely(get_page_unless_zero(page))) {
>   		struct pagevec *pvec =&get_cpu_var(lru_deactivate_pvecs);
>


-- 
All rights reversed

WARNING: multiple messages have this Message-ID (diff)
From: Rik van Riel <riel@redhat.com>
To: Minchan Kim <minchan.kim@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	linux-mm <linux-mm@kvack.org>,
	LKML <linux-kernel@vger.kernel.org>,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
	Johannes Weiner <hannes@cmpxchg.org>,
	KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
	Mel Gorman <mgorman@suse.de>, Ying Han <yinghan@google.com>
Subject: Re: [PATCH 2/2] Filter unevictable page out in deactivate_page
Date: Mon, 02 May 2011 10:57:31 -0400	[thread overview]
Message-ID: <4DBEC65B.4010201@redhat.com> (raw)
In-Reply-To: <dc54a5771cf1f580a91d16816100d4a2bcf2cdf5.1304261567.git.minchan.kim@gmail.com>

On 05/01/2011 11:03 AM, Minchan Kim wrote:
> It's pointless that deactive_page's pagevec operation about
> unevictable page as it's nop.
> This patch removes unnecessary overhead which might be a bit problem
> in case that there are many unevictable page in system(ex, mprotect workload)
>
> Signed-off-by: Minchan Kim<minchan.kim@gmail.com>
> ---
>   mm/swap.c |    9 +++++++++
>   1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/mm/swap.c b/mm/swap.c
> index 2e9656d..b707694 100644
> --- a/mm/swap.c
> +++ b/mm/swap.c
> @@ -511,6 +511,15 @@ static void drain_cpu_pagevecs(int cpu)
>    */
>   void deactivate_page(struct page *page)
>   {
> +
> +	/*
> +	 * In workload which system has many unevictable page(ex, mprotect),
> +	 * unevictalge page deactivation for accelerating reclaim

Typo.

> +	 * is pointless.
> +	 */
> +	if (PageUnevictable(page))
> +		return;
> +
>   	if (likely(get_page_unless_zero(page))) {
>   		struct pagevec *pvec =&get_cpu_var(lru_deactivate_pvecs);
>


-- 
All rights reversed

--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2011-05-02 14:57 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-01 15:03 [PATCH 0/2] Fix an enhance deactive_page Minchan Kim
2011-05-01 15:03 ` Minchan Kim
2011-05-01 15:03 ` [PATCH 1/2] Check PageUnevictable in lru_deactivate_fn Minchan Kim
2011-05-01 15:03   ` Minchan Kim
2011-05-01 22:10   ` Ying Han
2011-05-01 22:10     ` Ying Han
2011-05-01 23:00     ` Minchan Kim
2011-05-01 23:00       ` Minchan Kim
2011-05-02 10:32   ` KOSAKI Motohiro
2011-05-02 10:32     ` KOSAKI Motohiro
2011-05-02 14:56   ` Rik van Riel
2011-05-02 14:56     ` Rik van Riel
2011-05-01 15:03 ` [PATCH 2/2] Filter unevictable page out in deactivate_page Minchan Kim
2011-05-01 15:03   ` Minchan Kim
2011-05-02 10:37   ` KOSAKI Motohiro
2011-05-02 10:37     ` KOSAKI Motohiro
2011-05-03  0:29     ` Minchan Kim
2011-05-03  0:29       ` Minchan Kim
2011-05-02 14:57   ` Rik van Riel [this message]
2011-05-02 14:57     ` Rik van Riel
2011-05-03  0:30     ` Minchan Kim
2011-05-03  0:30       ` 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=4DBEC65B.4010201@redhat.com \
    --to=riel@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=hannes@cmpxchg.org \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=kosaki.motohiro@jp.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mgorman@suse.de \
    --cc=minchan.kim@gmail.com \
    --cc=yinghan@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.