Article View: comp.os.os2.programmer
Article #1784Question: Get process size under OS/2 2.0?
From: Antoun Kanawati
Date: Sun, 08 Nov 1992 15:33
Date: Sun, 08 Nov 1992 15:33
29 lines
1976 bytes
1976 bytes
While testing a large number of interacting programs (a daemon, clients and
servers), I am persistenly faced with unbounded swap file growth, even when
all other known resource utilizations are known to be constant.
Futhermore, the conditions inducing the growth require the interaction of
several programs, thus leaving me in the dark about which process is growing
the swap file.
Knowing that swap file size is related to process size(s), I wanted to
instrument the programs to measure their process sizes at chosen points to
narrow my search for the monumental memory leak.
Note that swap file size differentials around calls are not accurate, since
the swap file is affected globally, and a growth during a call to foo() could
be easily caused by another process (e.g.: let foo() be a remote procedure
stub).
Finally, I have stumbled across DosQueryMem(), but was not lucky enough to
figure out how it works if I wanted to measure heap space. Some results
appear related to static space size, and to code size; however, experiments
with the heap were not very useful.
Please copy your reply to tonyk@ontos.com;
--
Antoun (Tony) Kanawati | Ontos, Inc. | +----------------------+
tonyk@ontos.com | Three Burlington Woods | | SPACE FOR RENT |
uunet!uupsi!ontos!tonyk | Burlington, MA 01803 | | |
tonyk@{corwin|flora}.ccs.northeastern.edu | +----------------------+
Technical Details
Message-ID:
<1992Nov8.153303.11056@random.ccs.northeastern.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!doc.ic.ac.uk!agate!spool.mu.edu!hri.com!noc.near.net!lynx!random.ccs.northeastern.edu!tonykShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!doc.ic.ac.uk!agate!spool.mu.edu!hri.com!noc.near.net!lynx!random.ccs.northeastern.edu!tonyk From: tonyk@ccs.northeastern.edu (Antoun Kanawati) Newsgroups: comp.os.os2.programmer Subject: Question: Get process size under OS/2 2.0? Message-ID: <1992Nov8.153303.11056@random.ccs.northeastern.edu> Date: 8 Nov 92 15:33:03 GMT Sender: news@random.ccs.northeastern.edu Reply-To: tonyk@ontos.com Organization: College of CS, Northeastern U Lines: 29 Nntp-Posting-Host: damon-gateway.ccs.northeastern.edu