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