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