home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 17193 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.3 KB

  1. Path: sparky!uunet!mcsun!sunic!isgate!krafla!sigurasg
  2. From: sigurasg@rhi.hi.is (Sigurdur Asgeirsson)
  3. Newsgroups: comp.os.linux
  4. Subject: VM wizards - verify this please
  5. Message-ID: <5623@krafla.rhi.hi.is>
  6. Date: 19 Nov 92 14:46:02 GMT
  7. Sender: usenet@rhi.hi.is
  8. Lines: 24
  9. Nntp-Posting-Host: hengill.rhi.hi.is
  10.  
  11.  
  12.   I downloaded the linux sources and browsed through the mm directory.
  13. Could someone please tell me if the following is TRUE (*chuckle*), the
  14. sources are not very readable.
  15.  
  16. 1. Linux does not swap page tables.
  17.  
  18. 2. On fork:
  19.    All page tables are cloned
  20.    All referenced pages that are in-core are made read only in both page tables
  21.    and the share count bumped (mem_map[i]++)
  22.    All referenced pages that are on disk are swap_dup - ed
  23.  
  24. 3. When swapping out:
  25.    All pagetables are searched for in-core pages and those are swapped
  26.    out by saving them to disk, decrementing the share count and freeing
  27.    if share count == 0.
  28.    This result in multiple copies of shared pages in swap, and, on next
  29.    reference, in memory, does it not? (and why all the ','?)
  30. -- 
  31. Sigurdur Asgeirsson    | "Well you know, C isn't that hard, void (*(*f[])())()
  32. Fjardarsel 21          | for instance defines f as an array of unspecified size,
  33. 109 Reykjavik, Iceland | of pointers to functions that return pointers to
  34. sigurasg@rhi.hi.is     | functions that return void... I think"
  35.