linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Carl Spalletta <cspalletta@yahoo.com>
To: linux-mm@kvack.org
Subject: hard question re: swap cache
Date: Tue, 27 May 2003 14:41:57 -0700 (PDT)	[thread overview]
Message-ID: <20030527214157.31893.qmail@web41501.mail.yahoo.com> (raw)

Assume a shared, anonymous page is referenced by a set of
processes a,b,c,d,e and the page is marked present in the
page tables of each process.  Assume then that the page is
marked for swapout in the pagetables of 'a'. A swap slot is
filled with a copy of the page, but it is still present in
memory. As I understand it, it may still possible for b,c,d,e
to modify the page (since it is shared) and this is no problem
since there is no need to co-ordinate with the swapped out
page while the page usage counter is positive(if the system
decides to make the page present for a, it should simply
decrement the page slot counter but not bother with swapping
back since the page in memory is either an exact duplicate
or is newer than what is in the swap slot).

Then say b,c,d and e in that order have the page swapped out.
Either the page is copied to the page slot for each swapout
or it _must_ be copied on the last swap (when the page usage
counter goes to zero) else the modifications made by b,c,d,e
will be lost.

I can't decide which method is used and I can't find where in
the 2.5 code it occurs - can anyone help?
--
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:"aart@kvack.org"> aart@kvack.org </a>

             reply	other threads:[~2003-05-27 21:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-27 21:41 Carl Spalletta [this message]
2003-05-28  0:08 ` Hugh Dickins
2003-05-28 14:53 ` Dave McCracken
2003-05-27 23:04 Carl Spalletta
2003-05-28 10:01 ` Sean Neakums

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=20030527214157.31893.qmail@web41501.mail.yahoo.com \
    --to=cspalletta@yahoo.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