home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!pshuang
- From: pshuang@athena.mit.edu (Ping-Shun Huang)
- Newsgroups: comp.os.os2.misc
- Subject: Re: OS/2 - A real memory hog!
- Message-ID: <PSHUANG.92Aug15205530@ninja.mit.edu>
- Date: 16 Aug 92 00:55:38 GMT
- References: <1992Aug8.180955.8426@msuinfo.cl.msu.edu>
- Sender: news@athena.mit.edu (News system)
- Distribution: usa
- Organization: Massachusetts Institute of Technology
- Lines: 34
- In-Reply-To: sundaram@cps.msu.edu's message of 8 Aug 92 18:09:55 GMT
- Nntp-Posting-Host: ninja.mit.edu
-
-
- > When all this is done SCRUTILS (which tracks amount of memory
- > available) reports 4700K free (or thereabouts).
-
- I seem to remember answering this one before. Under an operating system
- wuith virtual memory paging, the meaning of "how much memory is
- currently free" is one which no longer has a non-ambiguous obvious
- canonical answer. I do not know what SCRUTILS does to obtain the number
- that it gives you, but let's suppose it is using a system call that
- returns the number of 4Kb pages free. (Sidenote: it is relevant whether
- SCRUTILS has been updated for OS/2 2.0, since there may be additional
- new systems calls that return more useful specified information.)
-
- 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.
-
- 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].
-
- --
- Ping Huang (INTERNET: pshuang@athena.mit.edu), probably speaking for himself
-