lkml.org 
[lkml]   [2010]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] vmscan: protect to read reclaim_stat by lru_lock
From
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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2010-07-09 10:29    [W:0.428 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site