All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rik van Riel <riel@redhat.com>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	LKML <linux-kernel@vger.kernel.org>,
	linux-mm <linux-mm@kvack.org>,
	Gene Heskett <gene.heskett@gmail.com>
Subject: Re: [PATCH] mm: evict streaming IO cache first
Date: Mon, 17 Nov 2008 11:22:22 -0500	[thread overview]
Message-ID: <49219A3E.1080100@redhat.com> (raw)
In-Reply-To: <20081117172202.343e1b35.kamezawa.hiroyu@jp.fujitsu.com>

KAMEZAWA Hiroyuki wrote:
> On Mon, 17 Nov 2008 16:03:48 +0900
> "KOSAKI Motohiro" <kosaki.motohiro@jp.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.

WARNING: multiple messages have this Message-ID (diff)
From: Rik van Riel <riel@redhat.com>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	LKML <linux-kernel@vger.kernel.org>,
	linux-mm <linux-mm@kvack.org>,
	Gene Heskett <gene.heskett@gmail.com>
Subject: Re: [PATCH] mm: evict streaming IO cache first
Date: Mon, 17 Nov 2008 11:22:22 -0500	[thread overview]
Message-ID: <49219A3E.1080100@redhat.com> (raw)
In-Reply-To: <20081117172202.343e1b35.kamezawa.hiroyu@jp.fujitsu.com>

KAMEZAWA Hiroyuki wrote:
> On Mon, 17 Nov 2008 16:03:48 +0900
> "KOSAKI Motohiro" <kosaki.motohiro@jp.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, 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>

  parent reply	other threads:[~2008-11-17 16:22 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-15  9:38 [PATCH] mm: evict streaming IO cache first KOSAKI Motohiro
2008-11-15  9:38 ` KOSAKI Motohiro
2008-11-16  0:58 ` Rik van Riel
2008-11-16  0:58   ` Rik van Riel
2008-11-16  5:00 ` Andrew Morton
2008-11-16  5:00   ` Andrew Morton
2008-11-16 18:15   ` Linus Torvalds
2008-11-16 18:15     ` Linus Torvalds
2008-11-16 21:20     ` Rik van Riel
2008-11-16 21:20       ` Rik van Riel
2008-11-16 21:28       ` Hugh Dickins
2008-11-16 21:28         ` Hugh Dickins
2008-11-17  4:47       ` Andrew Morton
2008-11-17  4:47         ` Andrew Morton
2008-11-17  6:19         ` Nick Piggin
2008-11-17  6:19           ` Nick Piggin
2008-11-17  6:30         ` KAMEZAWA Hiroyuki
2008-11-17  6:30           ` KAMEZAWA Hiroyuki
2008-11-17  6:39           ` KOSAKI Motohiro
2008-11-17  6:39             ` KOSAKI Motohiro
2008-11-17  6:54             ` KAMEZAWA Hiroyuki
2008-11-17  6:54               ` KAMEZAWA Hiroyuki
2008-11-17  7:03               ` KOSAKI Motohiro
2008-11-17  7:03                 ` KOSAKI Motohiro
2008-11-17  8:22                 ` KAMEZAWA Hiroyuki
2008-11-17  8:22                   ` KAMEZAWA Hiroyuki
2008-11-17  8:32                   ` KOSAKI Motohiro
2008-11-17  8:32                     ` KOSAKI Motohiro
2008-11-17 16:22                   ` Rik van Riel [this message]
2008-11-17 16:22                     ` Rik van Riel
2008-11-17 16:22               ` Linus Torvalds
2008-11-17 16:22                 ` Linus Torvalds
2008-11-17 16:27                 ` Rik van Riel
2008-11-17 16:27                   ` Rik van Riel
2008-11-17 16:37                 ` Linus Torvalds
2008-11-17 16:37                   ` Linus Torvalds
2008-11-17 16:54                   ` Rik van Riel
2008-11-17 16:54                     ` Rik van Riel
2008-11-17 17:06                     ` Linus Torvalds
2008-11-17 17:06                       ` Linus Torvalds
2008-11-17 17:16                       ` [PATCH] vmscan: fix get_scan_ratio comment Rik van Riel
2008-11-17 17:32                         ` KOSAKI Motohiro
2008-11-17 17:32                           ` KOSAKI Motohiro
2008-11-17 17:35                         ` Linus Torvalds
2008-11-17 17:35                           ` Linus Torvalds
2008-11-17 18:53                           ` Rik van Riel
2008-11-17 18:53                             ` Rik van Riel
2008-11-17 20:23                             ` Rik van Riel
2008-11-17 20:23                               ` Rik van Riel
2008-11-18  0:06                 ` [PATCH] vmscan: evict streaming IO first Rik van Riel
2008-11-18  0:06                   ` Rik van Riel
2008-12-01 20:24                   ` Andrew Morton
2008-12-01 20:24                     ` Andrew Morton

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=49219A3E.1080100@redhat.com \
    --to=riel@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=gene.heskett@gmail.com \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=kosaki.motohiro@jp.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=torvalds@linux-foundation.org \
    /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.