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

  1. Path: sparky!uunet!gatech!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
  2. From: dic5340@hertz.njit.edu (David Charlap)
  3. Newsgroups: comp.os.os2.misc
  4. Subject: Re: OS/2 - A real memory hog!
  5. Message-ID: <1992Aug17.175458.20526@njitgw.njit.edu>
  6. Date: 17 Aug 92 17:54:58 GMT
  7. References: <1992Aug8.180955.8426@msuinfo.cl.msu.edu> <PSHUANG.92Aug15205530@ninja.mit.edu>
  8. Sender: news@njit.edu
  9. Distribution: usa
  10. Organization: New Jersey Institute of Technology, Newark, N.J.
  11. Lines: 36
  12. Nntp-Posting-Host: hertz.njit.edu
  13.  
  14. In article <PSHUANG.92Aug15205530@ninja.mit.edu> pshuang@athena.mit.edu (Ping-Shun Huang) writes:
  15. >What number should the operating system report? (a) number of physical
  16. >RAM pages which are 100% uncommitted, e.g. never been used by OS/2 for
  17. >anything, that still contain whatever value the RAM got filled with by
  18. >the cold boot BIOS memory test? (b) number of physical RAM pages which
  19. >OS/2 could make available if it threw out all the pages containing code
  20. >and data that are discardable, e.g. could be reloaded from the
  21. >executable and resource files if they are needed again? (c) number of
  22. >pages reported by answer [b] plus all the pages in the swapfile which
  23. >are not currently being used? One can make an argument that any one of
  24. >these answers is the "correct" one.
  25.  
  26. OS/2 has a system call for free memory.  It returns the size of the
  27. largest un-allocated contiguous block.  This is an OS/2 1.x call.  On
  28. OS/2 2.0, however, it always returns 16MB or the total size of system
  29. RAM, whichever is smaller, so this isn't quite useful.  There may be a
  30. new OS/2 2.0 call to replace it.
  31.  
  32. >Even under Windows 3.x you run into this ambiguity. On one of the
  33. >machines I use that has 32Mb of physical memory, the Program Manager's
  34. >About dialog says there's over 100Mb of memory available. That's because
  35. >there's a 96Mb swapfile allocated. I don't know what the size of the
  36. >swapfile on your OS/2 system is, but I think that OS/2 is probably
  37. >reporting either the numbers from methods [a] or [b], whereas Windows
  38. >3.1 is clearly indicating the numbers from method [c].
  39.  
  40. yep.  And if you "bean-count" memory by allocating pages until you run
  41. out, and then free them - you get the space remaining on your hard
  42. disk.  Not really useful!
  43.  
  44.  
  45. -- 
  46.    |)  David Charlap           "I don't even represent myself
  47.   /|_  dic5340@hertz.njit.edu   sometimes so NJIT is right out!.
  48.  ((|,)
  49.   ~|~  Hi! I am a .signature virus, copy me into your .signature file.
  50.