From: Rik van Riel <riel@redhat.com>
To: Hugh Dickins <hugh@veritas.com>
Cc: Andrew Morton <akpm@linux-foundation.org>, linux-mm@kvack.org
Subject: Re: kswapd freed a swap space?
Date: Wed, 28 Mar 2007 13:53:07 -0400 [thread overview]
Message-ID: <460AAB83.4080306@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0703281808410.20922@blonde.wat.veritas.com>
Hugh Dickins wrote:
> (Whereas the simple vm_swap_full remove_exclusive_swap_page which
> Rik added at activate_locked was an order of magnitude more
> successful: not a major route, but still worth doing.)
I'm guessing this depends on the workload, too. With longer
running jobs, we may have more pages staying on the active
list after being swapped out once, while swap fills up with
unrelated things.
Not sure how to trigger that in a benchmark though - it seems
more like a typical week old desktop that has some things
lingering in the swap cache state for days on end...
> Why did pagevec_swap_free end up freeing so little? I guess
> because the vm_swap_full remove_exclusive_swap_page in do_swap_page
> was successfully freeing so much. But also, because of another
> (incomplete) patch I've had around for months, which I added in
> to the instrumentation: when do_wp_page decides it can use the
> swapcache page directly, isn't that a very good time to remove
> from swapcache?
That sounds like a good idea. I wonder if it should be
conditional on vm_swap_full()...
> Perhaps Rik can offer some very different results to support
> his patch; but if not, I think drop it (and your debug) from
> mm for now.
Drop just the swap freeing from the active list rotation,
or also the activate_locked: path (which was effective in
your measurements) ?
--
Politics is the struggle between those who want to make their country
the best in the world, and those who believe it already is. Each group
calls the other unpatriotic.
--
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-03-28 17:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-28 17:17 Hugh Dickins
2007-03-28 17:53 ` Rik van Riel [this message]
2007-03-28 19:51 ` 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=460AAB83.4080306@redhat.com \
--to=riel@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=hugh@veritas.com \
--cc=linux-mm@kvack.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox