From: Michael Slater <mslater@usa.com>
To: linux-mm@kvack.org
Subject: questions on page swapping
Date: Mon, 4 Dec 2000 02:11:48 -0500 (EST) [thread overview]
Message-ID: <383856051.975913908567.JavaMail.root@web489-mc> (raw)
Hi,
I am relatively new to linux memory management and i would like to
have some pointers regarding swapping out pages.
I was looking at the try_to_swap_out code and i have a few questions.
1) If a page is swapped out does it go to the swap--cache as well as
to the swap space in disk?
Also a comment says "If the page is in swap-cache we can just drop
reference to it as it is up-to date in disk". Does it means that the
page is just discarded and the page tables updated.
2) What happens when a page is in swap-cache and is dirtied.Do
we update the page in swap-cache before freeing it? Can we have a
dirty page in swap-cache?
3) What will be the page-count of a page when it is being swapped out
. Is it 1 (as reference to the page in page-cache also counts i
guess..)? If a page is only in swap-cache what is its count? Can a
page be in swap/page cache at the same time.What will be its count
then?
Last but not the least: Where can i get a detailed notes on linux
memory mgmt? Does paul-wilson have an updated version of his notes.
Pl cc to me as i am not part of linux-mm gp.
Thanks in advance
mike
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup
--
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.eu.org/Linux-MM/
reply other threads:[~2000-12-04 7:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=383856051.975913908567.JavaMail.root@web489-mc \
--to=mslater@usa.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