home *** CD-ROM | disk | FTP | other *** search
- What is supposed to happen on a VM-based Unixoid system when it runs out of
- swap space?
-
- I thought of two possibilities:
-
- - The process sleeps waiting for a free swap page
-
- - The process is sent a SIGSEGV, killing it
-
- The above presumes that brk() (if used at all) does not return an error
- simply because there is not enough swap to cover the requested memory
- area. After all, the process could be using sparse memory addressing which
- would not require the entire area to be backed.
-
- Well, I tried it out on NetBSD. And.... :-)
-
- vm_fault(98000,1704000,3,0) -> 1
- type 8, code [mmu,ssw]:401070d
-
- and an ensuing panic. I have saved the core image (8M of it!) if anyone
- is interested in doing the autopsy.
-
- --
- David Jones, M.A.Sc student, Electronics Group (VLSI), University of Toronto
- email: dej@eecg.utoronto.ca, finger for more info
-
-