Info for real memory used
From: Balino (jbalino_at_sscc.osakidetza.net)
Date: 08/31/04
- Next message: Jurjen Oskam: "Re: AIX 5.2 ls command hanging on JFS2 FS"
- Previous message: Rizwan Abbasi: "Re: AIX User Management with AD"
- Next in thread: Gary R. Hook: "Re: Info for real memory used"
- Reply: Gary R. Hook: "Re: Info for real memory used"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 31 Aug 2004 00:24:06 -0700
For know the how many phisical memory (RAM) is used, i have executed
the following script
#!/usr/bin/sh
# AIX 5L
#set -x
clear
RealMem=`bootinfo -r`
MeM=0
for i in `ps -edf|awk '{print $1}'|sort -u|grep -v UID`
do
svmon -U $i|head -n 4 >> /tmp/DispMem$$-2
done
cat /tmp/DispMem$$-2
for i in `cat /tmp/DispMem$$-2|grep -v "User"|awk '{print $2}'`
do
MeM=`expr $MeM + $i "*" 4`
done
echo;echo "\t********************"
echo "\tTotal ... "${RealMem}"k"
echo "\tUsed .... "${MeM}"k"
DifMem=`expr ${RealMem} - ${MeM}`
echo "\tFree .... "${DifMem}"k"
echo "\t********************";echo
rm /tmp/DispMem$$-*
But i find that the real memory used is great than the phisical memory
(RAM bootinfo -r).
The negative value for free it is allocate to disk (virtual memory) ??
Thank you
- Next message: Jurjen Oskam: "Re: AIX 5.2 ls command hanging on JFS2 FS"
- Previous message: Rizwan Abbasi: "Re: AIX User Management with AD"
- Next in thread: Gary R. Hook: "Re: Info for real memory used"
- Reply: Gary R. Hook: "Re: Info for real memory used"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|