From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: kamezawa.hiroyu@jp.fujitsu.com
Cc: Hugh Dickins <hugh@veritas.com>, Ethan Solomita <solo@google.com>,
linux-mm@kvack.org
Subject: Re: page_referenced() and VM_LOCKED
Date: Mon, 19 Nov 2007 18:39:42 +0900 [thread overview]
Message-ID: <20071119183942.614771c2.kamezawa.hiroyu@jp.fujitsu.com> (raw)
In-Reply-To: <16909246.1195259556869.kamezawa.hiroyu@jp.fujitsu.com>
On Sat, 17 Nov 2007 09:32:36 +0900 (JST)
kamezawa.hiroyu@jp.fujitsu.com wrote:
> >> > I would've thought the point was to treat locked pages as active, never
> >> > pushing them into the inactive list, but since that's not quite what's
> >> > happening I was hoping someone could give me a clue.
> >
> >Rik and Lee and others have proposed that we keep VM_LOCKED pages
> >off both active and inactive lists: that seems a better way forward.
> >
> agreed.
>
> >> Then, "VM_LOCKED & not referenced" anon page is added to swap cache
> >> (before pushed back to active list)
> >>
> >> Seems intended ?
> >
> >Not intended, no. Rather a waste of swap. How about this patch?
> >
> seems nice. I'd like to do some test in the next week,
>
your patch helps the kernel to avoid a waste of Swap.
Tested-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
==
I tested your patch on x86_64/6GiB memory, + 2.6.24-rc3.
mlock 5GiB and create 4GiB file by"dd".
[before patch]
MemTotal: 6072620 kB
MemFree: 50540 kB
Buffers: 4508 kB
Cached: 724828 kB
SwapCached: 5146960 kB
Active: 2683964 kB
Inactive: 3198752 kB
[after patch]
MemTotal: 6072620 kB
MemFree: 17112 kB
Buffers: 6816 kB
Cached: 744880 kB
SwapCached: 21724 kB
Active: 5175828 kB
Inactive: 744956 kB
Thanks,
-Kame
--
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>
next prev parent reply other threads:[~2007-11-19 9:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-16 4:25 Ethan Solomita
2007-11-16 5:46 ` KAMEZAWA Hiroyuki
2007-11-16 18:00 ` Hugh Dickins
2007-12-05 0:26 ` Ethan Solomita
2007-12-05 15:54 ` Hugh Dickins
2007-11-17 0:32 ` kamezawa.hiroyu
2007-11-19 9:39 ` KAMEZAWA Hiroyuki [this message]
2007-11-19 19:09 ` Hugh Dickins
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=20071119183942.614771c2.kamezawa.hiroyu@jp.fujitsu.com \
--to=kamezawa.hiroyu@jp.fujitsu.com \
--cc=hugh@veritas.com \
--cc=linux-mm@kvack.org \
--cc=solo@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox