[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <49219A3E.1080100@redhat.com>
Date: Mon, 17 Nov 2008 11:22:22 -0500
From: Rik van Riel <riel@...hat.com>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
CC: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>,
linux-mm <linux-mm@...ck.org>,
Gene Heskett <gene.heskett@...il.com>
Subject: Re: [PATCH] mm: evict streaming IO cache first
KAMEZAWA Hiroyuki wrote:
> On Mon, 17 Nov 2008 16:03:48 +0900
> "KOSAKI Motohiro" <kosaki.motohiro@...fujitsu.com> wrote:
>>> How about resetting zone->recent_scanned/rotated to be some value calculated from
>>> INACTIVE_ANON/INACTIVE_FILE at some time (when the system is enough idle) ?
>> in get_scan_ratio()
>>
> But active/inactive ratio (and mapped_ratio) is not handled there.
>
> Follwoing 2 will return the same scan ratio.
get_scan_ratio does not look at the sizes of the lists, but
at the ratio between "pages scanned" and "pages rotated".
A page that is moved from the inactive to the active list
is always counted as rotated.
A page that is moved from the active to the inactive list
is counted as rotated if it was mapped and referenced.
> ==case 1==
> active_anon = 480M
> inactive_anon = 32M
> active_file = 2M
> inactive_file = 510M
>
> ==case 2==
> active_anon = 480M
> inactive_anon = 32M
> active_file = 480M
> inactive_file = 32M
> ==
>
>
>
> -Kame
>
--
All rights reversed.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists