home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / question / 10273 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.1 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!think.com!barmar
  2. From: barmar@think.com (Barry Margolin)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: Swap space usage..?? THE ANSWER
  5. Date: 21 Aug 1992 20:11:18 GMT
  6. Organization: Thinking Machines Corporation, Cambridge MA, USA
  7. Lines: 15
  8. Message-ID: <173il6INNk0u@early-bird.think.com>
  9. References: <l9316tINN7g@appserv.Eng.Sun.COM> <27434@sophia.inria.fr> <27537@sophia.inria.fr>
  10. NNTP-Posting-Host: telecaster.think.com
  11.  
  12. In article <27537@sophia.inria.fr> rriv@oural.inria.fr (Robert Riviere) writes:
  13. >Funny. You can swap in a (almost) regular file !
  14. >But doesn'it generate a lot of overhead ?
  15.  
  16. No, why should it?  It's just disk access.  When you mount a file as swap
  17. space, it simply adds the blocks in the file to the list of disk blocks
  18. that the paging routines can use.  To the paging routines, all disk blocks
  19. are equivalent.  This uses basically the same mechanisms as are used to
  20. mmap a file or page out of the text segment of an executable or shared
  21. library.
  22. -- 
  23. Barry Margolin
  24. System Manager, Thinking Machines Corp.
  25.  
  26. barmar@think.com          {uunet,harvard}!think!barmar
  27.