home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.asd.contel.com!emory!swrinde!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!hri.com!noc.near.net!mars.caps.maine.edu!gandalf!jurlwin
- From: jurlwin@gandalf.UMCS.Maine.EDU (Jeff Urlwin)
- Newsgroups: comp.os.os2.misc
- Subject: Re: Where to put swapfile (was What is the recommended size ...)
- Message-ID: <1992Dec16.205054.27326@gandalf.UMCS.Maine.EDU>
- Date: 16 Dec 92 20:50:54 GMT
- References: <1gmsccINN6uq@nestroy.wu-wien.ac.at> <1992Dec16.135640.15444@msc.cornell.edu>
- Organization: University of Maine, Department of Computer Science
- Lines: 35
-
- In article <1992Dec16.135640.15444@msc.cornell.edu> tommy@lynx.msc.cornell.edu.UUCP (Mike Thompson,332,54714,2734927) writes:
- >From article <1gmsccINN6uq@nestroy.wu-wien.ac.at>, by warmuth@warmuth.wu-wien.ac.at:
- >> In <1992Dec15.204609.29849@msc.cornell.edu> tommy@lynx.msc.cornell.edu.UUCP (Mike Thompson,332,54714,2734927) writes:
- >>> ... (stuff deleted)...
- >>> (3) Caching the OS/2 swapfile (HPFS) would be a waste of memory
- >>> ... (stuff deleted)...
- >
- >> OS/2 *never* chaches the swapfile.
- >> It is recomanded to put the swapfile on the most used partition on the
- >> less used harddisk. So I wouldn't put it in it's own partition.
- >
- >I can understand putting it on the least used hard disk, but why the
- >most used partition. The only justification is to keep the disk read
- >heads near the actively used data. With any intelligent caching and
- >ladder disk sub-system, actual conflicts on write to the disk should
- >be rare to begin with. Then again, with 16 Mb of RAM, I don't worry
- >about the SWAP file doing much thrashing. Even when testing
- >development code, I don't think I keep 16 Mb of programs actively
- >running.
- >
- >On second topic, how does OS/2 know it is the swapfile. The disk
- >sub-systems have a file which happens to be named "swapper.dat". But
- >to the driver, it's just a stupid file (I hope!). Any caching on the
- >drive will also, to some degree, cache the swap file. Am I wrong?
-
- Well...the DosOpen call has a parameter which is the Open Mode of the
- file which can specify OPEN_FLAGS_NO_CACHE as an option. This option
- tells the system NOT to cache this file.
-
- Jeff
-
-
- --
- --------------------------------------
- jurlwin@gandalf.umcs.maine.edu
-