50 DB2 Nuggets #18 : Tech Tip - Monitoring memory usage on AIX server
YogeshGawali 060001M1GN Comment (1) Visits (12416)
I am quite sure that most of you are using 'svmon' utility with various option to monitor the memory utilisation on AIX box. The most useful option I found is 'P'. It quickly shows you the approximate memory consumption at process level:
$ svmon -G
work pers clnt other
PageSize PoolSize inuse pgsp pin virtual
How to read this output?
- It shows that you have 6GB main (or real) memory allocated on this server and 6GB is configured as page swapping space.
- Main memory is almost 100% utilized (please see 'inuse' column). Thereafter your system will start using paging space.
- The last section contains the detailed page level information. Pagesize 's' stands for small page of size 4K. Pagesize 'm' stands for medium page of size 64K.
Now we will determine the memory consumers at process level:
$ svmon -P | head -3 | tail -1;svmon -P | grep -p Pid | grep -v -- ^- | grep -v Pid | grep -v ^$
Please look at the 'inuse' column in the output above. It shows the number of pages (of 4K size) in use by a particular process.