Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!rice!sun-spots-request From: mnichols@atlantis.psi.siemens.com Newsgroups: comp.sys.sun Subject: Re: Memory Usage Questions Keywords: Miscellaneous Message-ID: <8571@brazos.Rice.edu> Date: 6 Jun 90 05:28:47 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 24 Approved: Sun-Spots@rice.edu X-Refs: Original: v9n196 X-Sun-Spots-Digest: Volume 9, Issue 200, message 2 > How does one determine the system memory usage, both physical and virtual? > > "ps" and "top" both often report a programs size (SZ) as less than the > resident size (RSS). This does not seem reasonable. Further, how does > the space required for shared libraries get accounted ? Is it charged > againt each program using the library ? Not accounted at all ? I wondered the same thing and by sleuthing the man page for ps this is what appears to be the answer question numero 2. ------------ excerpt from the ps(1) man page --------------- SIZE SZ The combined size of the data and stack segments (in kilobyte units) RSS Real memory (resident set) size of the process (in kilobyte units). Note that SZ does not include the text segment this accounts for the difference in the two values I would guess. Mark Nichols ! internet: mnichols@psivax.psi.siemens.com Pacesetter Systems Inc. ! voice: (818) 362-6822 x3104 Sylmar, California 91342 !