From: Minchan Kim <minchan.kim@gmail.com>
To: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Rik van Riel <riel@redhat.com>,
LKML <linux-kernel@vger.kernel.org>,
linux-mm <linux-mm@kvack.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] vmscan: protect to read reclaim_stat by lru_lock
Date: Fri, 9 Jul 2010 17:26:00 +0900 [thread overview]
Message-ID: <AANLkTinhGeX1_YazJn8PHOFsPboTRmry17qHAENfZVbK@mail.gmail.com> (raw)
In-Reply-To: <20100709155108.3D2A.A69D9226@jp.fujitsu.com>
On Fri, Jul 9, 2010 at 3:52 PM, KOSAKI Motohiro
<kosaki.motohiro@jp.fujitsu.com> wrote:
> Rik van Riel pointed out reading reclaim_stat should be protected
> lru_lock, otherwise vmscan might sweep 2x much pages.
>
> This fault was introduced by followint commit.
>
> commit 4f98a2fee8acdb4ac84545df98cccecfd130f8db
> Author: Rik van Riel <riel@redhat.com>
> Date: Sat Oct 18 20:26:32 2008 -0700
>
> vmscan: split LRU lists into anon & file sets
>
> Split the LRU lists in two, one set for pages that are backed by real file
> systems ("file") and one for pages that are backed by memory and swap
> ("anon"). The latter includes tmpfs.
>
> The advantage of doing this is that the VM will not have to scan over lots
> of anonymous pages (which we generally do not want to swap out), just to
> find the page cache pages that it should evict.
>
> This patch has the infrastructure and a basic policy to balance how much
> we scan the anon lists and how much we scan the file lists. The big
> policy changes are in separate patches.
>
> Cc: Rik van Riel <riel@redhat.com>
> Cc: Minchan Kim <minchan.kim@gmail.com>
> Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Thanks, Kosaki. I have forgotten this issue.
--
Kind regards,
Minchan Kim
--
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>
prev parent reply other threads:[~2010-07-09 8:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-09 6:52 [PATCH] vmscan: protect to read reclaim_stat by lru_lock KOSAKI Motohiro
2010-07-09 8:26 ` Minchan Kim [this message]
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=AANLkTinhGeX1_YazJn8PHOFsPboTRmry17qHAENfZVbK@mail.gmail.com \
--to=minchan.kim@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=riel@redhat.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).