From: Dan Magenheimer <dan.magenheimer@oracle.com>
To: linux-mm <linux-mm@kvack.org>
Cc: Andrea Arcangeli <aarcange@redhat.com>,
Konrad Wilk <konrad.wilk@oracle.com>,
Seth Jennings <sjenning@linux.vnet.ibm.com>,
Nitin Gupta <ngupta@vflare.org>,
riel@redhat.com
Subject: mm code for allowing reclaim of page previously swapped but now clean-in-memory?
Date: Sun, 15 Apr 2012 14:12:10 -0700 (PDT) [thread overview]
Message-ID: <681c22d4-96fb-4e15-9029-cd90956399de@default> (raw)
I'm looking for mm code/heuristics/flags where the following occurs:
This (anonymous) page was:
- previously swapped to a swap device
- then later read back in from the swap device
Now memory pressure has resulted in a need to reclaim memory so:
- this page is discovered to still be clean, i.e. it
matches the page still on the swap device, so
- the pageframe is thus an obvious candidate for reclaim
I'd be grateful for any pointers/education... For example,
is such a page always in the swapcache? Is it also in the
page cache? Is it always INactive since it was read but never
written? What flags are set/unset? What function or code
snippet identifies such a page and does this code need
to be protected by the swaplock or pagelock or ???
(Sorry if any of these are stupid questions...)
Purpose: I'm looking into zcache (and future KVM/memcg tmem backend)
changes to exploit a "writethrough" and/or "lazy writeback" cacheing
model for pages put into zcache via frontswap, as discussed with Andrea
and one or two others at LSF12/MM. Either model provides more
flexibility for zcache to more effectively manage persistent pages.
Thanks!
Dan
--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2012-04-15 21:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-15 21:12 Dan Magenheimer [this message]
2012-04-17 0:42 ` mm code for allowing reclaim of page previously swapped but now clean-in-memory? Hugh Dickins
2012-04-17 14:44 ` Dan Magenheimer
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=681c22d4-96fb-4e15-9029-cd90956399de@default \
--to=dan.magenheimer@oracle.com \
--cc=aarcange@redhat.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-mm@kvack.org \
--cc=ngupta@vflare.org \
--cc=riel@redhat.com \
--cc=sjenning@linux.vnet.ibm.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;
as well as URLs for NNTP newsgroup(s).