home *** CD-ROM | disk | FTP | other *** search
/ Amiga GigaPD 3 / Amiga_GigaPD_v3_3of3.iso / netbsd / docs / mailinglist-archive / 1993-12 / text0449.txt < prev    next >
Encoding:
Text File  |  1993-06-25  |  839 b   |  27 lines

  1. What is supposed to happen on a VM-based Unixoid system when it runs out of
  2. swap space?
  3.  
  4. I thought of two possibilities:
  5.  
  6. - The process sleeps waiting for a free swap page
  7.  
  8. - The process is sent a SIGSEGV, killing it
  9.  
  10. The above presumes that brk() (if used at all) does not return an error
  11. simply because there is not enough swap to cover the requested memory
  12. area.  After all, the process could be using sparse memory addressing which
  13. would not require the entire area to be backed.
  14.  
  15. Well, I tried it out on NetBSD.  And.... :-)
  16.  
  17. vm_fault(98000,1704000,3,0) -> 1
  18.     type 8, code [mmu,ssw]:401070d
  19.  
  20. and an ensuing panic.  I have saved the core image (8M of it!) if anyone
  21. is interested in doing the autopsy.
  22.  
  23. -- 
  24. David Jones, M.A.Sc student, Electronics Group (VLSI), University of Toronto
  25. email: dej@eecg.utoronto.ca, finger for more info
  26.  
  27.