| Date: Tue, 30 May 2006 00:26:50 +0200
| From: "Mark Clifford" <markcliff at gmail.com>
|[ ... ]
| how can i parse through the top command to retrieve the 571MB
| only back from command line.
does HP-UX have anything like the pmap(1) command of
Linux and Solaris? that prints each of the memory
regions a process is using, including its size, name,
and other attributes. it should then be possible,
using a scripting language of yer choice (e.g., awk(1)),
to choose the regions you wish to count, and print the
total for those regions. (this assumes you either don't
want to count shared regions, or if you do, you don't
want to prorate or average — `pmap' gives no clew (AFAIK)
about other concurrent users or the history of a region.)
I imagine another alternative is to poke around in /proc?
also, check yer ps(1) -o... possibilities very carefully.
whilst `vsz' apparently is not what you want, one or more
_other_ metrics might be?
cheers!
-blf-
--
Experienced (20+ yrs) kernel/software Eng: | Brian Foster Montpellier,
• Unix, embedded, &tc; • Linux; • doc; | blf at utvinternet.ie FRANCE
• IDL, automated testing, process, &tc. | Stop E$$o (ExxonMobile)!
Résumé (CV) http://www.blf.utvinternet.ie | http://www.stopesso.com
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!