Wednesday, April 11, 2012

The only way to get real size of swap on Solaris


swap -l - and convert blocks to bytes

you can use:

swap -l|grep -v swap|awk '{print "swap size is "$4*512/1024/1024/1024"GB"}'
please note that commands below can provide wrong data:

top
swap -s
df -h swap

No comments: