linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* questions on page swapping
@ 2000-12-04  7:11 Michael Slater
  0 siblings, 0 replies; only message in thread
From: Michael Slater @ 2000-12-04  7:11 UTC (permalink / raw)
  To: linux-mm

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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-12-04  7:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-04  7:11 questions on page swapping Michael Slater

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox