CPU
ps aux | head -1; ps aux | sort -rn +2 | head -10
Memory
svmon -G -O unit=GB
svmon -Put 10 | grep -ip Pid
svmon -Pt15 | perl -e ‘while(<>){print if($.==2||$&&&!$s++);$.=0 if(/^-+$/)}’
ps aux | head -1; ps aux | sort -rn +3 | head
svmon -P -O summary=basic,unit=GB | sort -rn +5 |head
How to check which active user is consuming more memory paging space
svmon -UO activeusers=on,timestamp=on,filtertype=working,unit=GB
How to check list of process by each user
svmon -UO process=on,timestamp=on,unit=GB
To display global statics with automatic unit selection, a time stamp, per page size data, and detailed affinity information, enter the following command
svmon -G -O unit=auto,timestamp=on,pgsz=on,affinity=detail
Displaying the memory consumed by processes under AIX
- For all processes:
svmon -P
- For a single process:
svmon -P pid
Paging
lsps -a
lsps -s
svmon -Pg -t 1 |grep Pid; svmon -Pg -t 20 |grep “N”
svmon -P -O summary=basic,unit=GB,timestamp=on |head -4; svmon -P -O summary=basic,unit=GB | sort -rn +4 |head
Paging space is an extension of memory.
Low paging space usage means no starvation of memory.
High paging usage means that memory is over committed.
As for the ‘low paging space’ problem, the following command can help you determine the top memory users in a 24 hour period
nohup svmon -P -O unit=MB,sortentity=virtual,timestamp=on -t 30 -i 60 1440 >> /tmp/svmon.24hrs.`hostname`.`date +\%H:\%M_\%m_\%d` &