How can I see the free memory on an AIX? There is no free -m under it.
AIX oslevel: 6100-03-03-0943
How can I see the free memory on an AIX? There is no free -m under it.
AIX oslevel: 6100-03-03-0943
svmon e.g.
# svmon size inuse free pin virtual memory 131072 114552 16520 34191 151562 pg space 655360 78472 work pers clnt other pin 30911 6 0 3274 in use 83264 31288 0 or vmstat as already shown (vmstat -v)
svmon -G -O unit=MB as that's the only way to get the additional column available which shows the amount of memory, that applications can request. Nice sideeffect is that it will show the amounts in MB, I still cannot get around with 512k blocks :) Create a script something like checkmemory.sh and place the following code:
#!/usr/bin/ksh #memory calculator um=`svmon -G | head -2|tail -1| awk {'print $3'}` um=`expr $um / 256` tm=`lsattr -El sys0 -a realmem | awk {'print $2'}` tm=`expr $tm / 1000` fm=`expr $tm - $um` echo "\n\n-----------------------"; echo "System : (`hostname`)"; echo "-----------------------\n\n"; echo "\n\n-----------------------"; echo " Users Login information \n"; for ENTRY in `finger | cut -d " " -f1 | grep -v Login | uniq` do echo "`finger -l $ENTRY | head -1 | cut -d \" \" -f14` ---> `finger -l $ENTRY | awk '{ print $2 }' | tail -2 | head -1`"; #finger -l $ENTRY | awk '{ print $2 }' | tail -2 | head -1; done echo "-----------------------\n"; echo "\n----------------------"; echo "Memory Information\n\n"; echo "total memory = $tm MB" echo "free memory = $fm MB" echo "used memory = $um MB" echo "\n\n-----------------------\n"; It will display the total, free and used memory of the system as well as remote logged in users.
this command will display result in "GB"
svmon -G -O unit=GB if you want in "MB", just change the unit value to MB
# lparstat -i |egrep -i "Online|Maximum" |grep -i Memory Online Memory : 49152 MB Maximum Memory : 73728 MB