home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / os2 / misc / 39634 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  2.2 KB

  1. 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
  2. From: jurlwin@gandalf.UMCS.Maine.EDU (Jeff Urlwin)
  3. Newsgroups: comp.os.os2.misc
  4. Subject: Re: Where to put swapfile (was What is the recommended size ...)
  5. Message-ID: <1992Dec16.205054.27326@gandalf.UMCS.Maine.EDU>
  6. Date: 16 Dec 92 20:50:54 GMT
  7. References: <1gmsccINN6uq@nestroy.wu-wien.ac.at> <1992Dec16.135640.15444@msc.cornell.edu>
  8. Organization: University of Maine, Department of Computer Science
  9. Lines: 35
  10.  
  11. In article <1992Dec16.135640.15444@msc.cornell.edu> tommy@lynx.msc.cornell.edu.UUCP (Mike Thompson,332,54714,2734927) writes:
  12. >From article <1gmsccINN6uq@nestroy.wu-wien.ac.at>, by warmuth@warmuth.wu-wien.ac.at:
  13. >> In  <1992Dec15.204609.29849@msc.cornell.edu>  tommy@lynx.msc.cornell.edu.UUCP (Mike Thompson,332,54714,2734927) writes:
  14. >>>    ... (stuff deleted)...
  15. >>>   (3) Caching the OS/2 swapfile (HPFS) would be a waste of memory
  16. >>>    ... (stuff deleted)...
  17. >
  18. >> OS/2 *never* chaches the swapfile.
  19. >> It is recomanded to put the swapfile on the most used partition on the
  20. >> less used harddisk. So I wouldn't put it in it's own partition.
  21. >
  22. >I can understand putting it on the least used hard disk, but why the
  23. >most used partition.  The only justification is to keep the disk read
  24. >heads near the actively used data.  With any intelligent caching and
  25. >ladder disk sub-system, actual conflicts on write to the disk should
  26. >be rare to begin with.  Then again, with 16 Mb of RAM, I don't worry
  27. >about the SWAP file doing much thrashing.  Even when testing
  28. >development code, I don't think I keep 16 Mb of programs actively
  29. >running.
  30. >
  31. >On second topic, how does OS/2 know it is the swapfile.  The disk
  32. >sub-systems have a file which happens to be named "swapper.dat".  But
  33. >to the driver, it's just a stupid file (I hope!).  Any caching on the
  34. >drive will also, to some degree, cache the swap file.  Am I wrong?
  35.  
  36. Well...the DosOpen call has a parameter which is the Open Mode of the
  37. file which can specify OPEN_FLAGS_NO_CACHE as an option.  This option
  38. tells the system NOT to cache this file.
  39.  
  40. Jeff
  41.  
  42.  
  43. -- 
  44. --------------------------------------
  45. jurlwin@gandalf.umcs.maine.edu
  46.