home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / misc / 25839 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  2.1 KB

  1. Path: sparky!uunet!utcsri!eecg.toronto.edu!lemieux
  2. Newsgroups: comp.os.os2.misc
  3. From: lemieux@eecg.toronto.edu (Guy Gerard Lemieux)
  4. Subject: Re: os/2 ram drive
  5. Message-ID: <1992Jul28.215920.24741@jarvis.csri.toronto.edu>
  6. References: <1992Jul27.1480.23146@dosgate> <92210.133859BRYAN@wvnvm.wvnet.edu> <Bs48Dq.4F8@news.cso.uiuc.edu>
  7. Distribution: comp
  8. Date: 29 Jul 92 01:59:20 GMT
  9. Lines: 41
  10.  
  11. tamu@uxh.cso.uiuc.edu (Todd Henderson) writes:
  12.  
  13. >Jerry Bryan <BRYAN@wvnvm.wvnet.edu> writes:
  14.  
  15.  
  16. >>6. A RAM disk can totally eliminate disk I/O if you have enough memory.
  17. >>   Disk caching does not eliminate all I/O because all writes happen
  18. >>   eventually, even with lazy write.
  19.  
  20. >I will not claim to be to knowlegdable about ram disk, io, etc., but it
  21. >seems to me, you are saying:
  22. >1.  Make a ram disk.
  23. >2.  Put your swap there.  This gives no disk i/o if you have enough memory.
  24. >Am I missing something here?
  25.  
  26. Yes, you are.  Putting your swap in the RAM disk makes zero sense.  Rather,
  27. put frequently accessed files in RAM.
  28.  
  29. Simple example:  when compiling a small C program, most of the time is
  30. spent reading and processing the OS/2 header files.  If I put the header
  31. files into a RAM disk, the access time is zilch.  With disk caching, I
  32. take a chance that my cache is not large enough AND that because I am
  33. multitasking, my header files get flushed from the cache.
  34.  
  35. Speaking of lazy writes:  when I am doing heavy writing and reading
  36. to a file, chances are it will be cached.  If I stop writing to the file,
  37. the lazy cache will timeout and then write the changes to the disk.  If
  38. this file is only a "temporary file", it need not be written to disk because
  39. it will only be deleted soon anyways.  Thus, the disk access is wasted.
  40.  
  41. When you know how much space you need, and how frequently you want the
  42. information, a RAM disk makes sense.
  43.  
  44. Personally, I would like a DYNAMIC RAM disk.  As I copy files into it,
  45. it grows in size (until I'm out of physical(virtual?) memory).  This way
  46. I never have to worry about making a SIZE setting in my CONFIG.SYS and
  47. rebooting.
  48.  
  49. The alternative is to give us memory mapped files ala BSD.
  50.  
  51.  
  52.