Thursday, December 10, 2009

Memory usage in Solaris

Many unix admins have lot of confusion whie working on system memory configuration
Today while working for a incident I review some of the blogs, sun sites for memory, here is the notes.
1. How to check physical memory in server
#prtconf -pn|grep Memroy  --this will return memory in MB
#prtdiag -v|more
2. How to verify swap device configuration
#swap -l
3. How to verify system swap usage
#swap -s
4. How to check free memroy in a server
#vmstat 3 2
#pagesize
in vmstat output you will find 5th column as "free", this is value in number  of memory pages, each page size can be found by command pagesisze. If the pagesize is 8192 means its 8k, then multiply free count in vmstat with 8 to get size in KB

No comments:

Post a Comment