From: Green, Simon (SGreen@KRAFTEUROPE.COM)
Date: Thu Jan 16 2003 - 11:28:44 EST
This takes no account of shared segments. It's accurate for a single user
but with multiple users the result will be too high.
What information are you actually after?
For a quick summary of the entire system use svmon -G.
Simon Green
Philip Morris ITSC Europe
AIX-L Archive at http://marc.theaimsgroup.com/?l=aix-l
<http://marc.theaimsgroup.com/?l=aix-l&r=1&w=2> &r=1&w=2
AIX FAQ at http://www.faqs.org/faqs/aix-faq/
<http://www.faqs.org/faqs/aix-faq/>
N.B. Unsolicited email from vendors will seldom be appreciated.
-----Original Message-----
From: Khalid Benhayoune [mailto:benhayoune_k@YAHOO.FR]
Sent: 16 January 2003 16:07
To: aix-l@Princeton.EDU
Subject: Total real memory used
Hi all,
I use finally the following script to estimate the amount of real memory
used, I need to know your feedbacks about it :
#!/bin/ksh
typeset -i totmem=0
for a in `awk -F: '{print $1}' /etc/passwd`;do
totmem=$totmem+`svmon -U $a -n|head -n 4|tail -n 1|awk '{print $4}'`
done
echo "Total memory used at "`date +"%d/%m/%Y %H:%M:%S"`" is : "$totmem
exit 0
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:29 EDT