home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / misc / 27466 < prev    next >
Encoding:
Internet Message Format  |  1992-08-15  |  2.4 KB

  1. Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!pshuang
  2. From: pshuang@athena.mit.edu (Ping-Shun Huang)
  3. Newsgroups: comp.os.os2.misc
  4. Subject: Re: OS/2 - A real memory hog!
  5. Message-ID: <PSHUANG.92Aug15205530@ninja.mit.edu>
  6. Date: 16 Aug 92 00:55:38 GMT
  7. References: <1992Aug8.180955.8426@msuinfo.cl.msu.edu>
  8. Sender: news@athena.mit.edu (News system)
  9. Distribution: usa
  10. Organization: Massachusetts Institute of Technology
  11. Lines: 34
  12. In-Reply-To: sundaram@cps.msu.edu's message of 8 Aug 92 18:09:55 GMT
  13. Nntp-Posting-Host: ninja.mit.edu
  14.  
  15.  
  16.  > When all this is done SCRUTILS (which tracks amount of memory
  17.  > available) reports 4700K free (or thereabouts).
  18.  
  19. I seem to remember answering this one before. Under an operating system
  20. wuith virtual memory paging, the meaning of "how much memory is
  21. currently free" is one which no longer has a non-ambiguous obvious
  22. canonical answer. I do not know what SCRUTILS does to obtain the number
  23. that it gives you, but let's suppose it is using a system call that
  24. returns the number of 4Kb pages free. (Sidenote: it is relevant whether
  25. SCRUTILS has been updated for OS/2 2.0, since there may be additional
  26. new systems calls that return more useful specified information.)
  27.  
  28. What number should the operating system report? (a) number of physical
  29. RAM pages which are 100% uncommitted, e.g. never been used by OS/2 for
  30. anything, that still contain whatever value the RAM got filled with by
  31. the cold boot BIOS memory test? (b) number of physical RAM pages which
  32. OS/2 could make available if it threw out all the pages containing code
  33. and data that are discardable, e.g. could be reloaded from the
  34. executable and resource files if they are needed again? (c) number of
  35. pages reported by answer [b] plus all the pages in the swapfile which
  36. are not currently being used? One can make an argument that any one of
  37. these answers is the "correct" one.
  38.  
  39. Even under Windows 3.x you run into this ambiguity. On one of the
  40. machines I use that has 32Mb of physical memory, the Program Manager's
  41. About dialog says there's over 100Mb of memory available. That's because
  42. there's a 96Mb swapfile allocated. I don't know what the size of the
  43. swapfile on your OS/2 system is, but I think that OS/2 is probably
  44. reporting either the numbers from methods [a] or [b], whereas Windows
  45. 3.1 is clearly indicating the numbers from method [c].
  46.  
  47. --
  48. Ping Huang (INTERNET: pshuang@athena.mit.edu), probably speaking for himself
  49.