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