User Tools

Site Tools


aix:aix_perf_base_cmd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
aix:aix_perf_base_cmd [2021/10/13 15:19]
manu
aix:aix_perf_base_cmd [2023/07/21 14:05] (current)
manu
Line 60: Line 60:
 root       ​131336 ​ 0.0  0.0  832  832      - A      Oct 23 23:08 lrud root       ​131336 ​ 0.0  0.0  832  832      - A      Oct 23 23:08 lrud
 oracle ​  ​29033350 ​ 0.0  0.0 57464 57320  pts/7 A    17:​37:​39 ​ 5:42 topas -P oracle ​  ​29033350 ​ 0.0  0.0 57464 57320  pts/7 A    17:​37:​39 ​ 5:42 topas -P
 +</​cli>​
 +
 +pstree like
 +<cli prompt='#'>​
 +[root@aix-oracle]/​root#​ ps  -f -T 5308894
 +     ​UID ​     PID     ​PPID ​  ​C ​   STIME    TTY  TIME CMD
 +    root  5308894 ​ 5243304 ​  ​0 ​  Oct 17      -  0:02 /​usr/​sbin/​sshd
 +    root 10813830 ​ 5308894 ​  0 11:​21:​21 ​     -  0:00    |\--sshd: root@pts/1
 +    root 21692682 10813830 ​  1 11:​21:​22 ​ pts/1  0:00    |    \---ksh93
 +    root 22151664 21692682 ​  8 11:​55:​00 ​ pts/1  0:00    |        \--ps -f -T 5308894
 +    root 23265582 ​ 5308894 ​  0 10:​08:​43 ​     -  0:00    |\--sshd: user01 [priv]
 +  user01 20119826 23265582 ​  0 10:​08:​44 ​     -  0:00    |    \--sshd: user01@notty
 +  user01 12517808 20119826 ​  0 10:​08:​44 ​     -  0:00    |        \--/​usr/​sbin/​sftp-server -m /​etc/​ssh/​sshd_config
 +    root 23396632 ​ 5308894 ​  0 10:​08:​35 ​     -  0:00     ​\--sshd:​ user01 [priv]
 +  user01 14942662 23396632 ​  0 10:​08:​43 ​     -  0:00         ​\--sshd:​ user01@pts/​0
 +  user01 21299502 14942662 ​  0 10:​08:​44 ​ pts/0  0:00             ​\---bash
 +  user01 15532456 21299502 ​  0 10:​08:​46 ​ pts/0  0:00                 ​\--sudo su -
 +    root 15335842 15532456 ​  0 10:​08:​48 ​ pts/0  0:00                     ​\---ksh93
 +</​cli>​
 +
 +
 +
 +Displaying top CPU_consuming processes:
 +<cli prompt='#'>​
 +# ps aux | head -1; ps aux | sort -rn +2
 +</​cli>​
 +
 +Displaying top memory-consuming processes:
 +<cli prompt='#'>​
 +# ps aux | head -1; ps aux | sort -rn +3 | head
 +</​cli>​
 +
 +Displaying process in order of priority:
 +<cli prompt='#'>​
 +# ps -eakl | sort -n +6 | head
 +</​cli>​
 +
 +Displaying the process in order of time:
 +<cli prompt='#'>​
 +# ps vx | head -1;ps vx | grep -v PID | sort -rn +3
 +</​cli>​
 +
 +Displaying the process in order of real memory use:
 +<cli prompt='#'>​
 +# ps vx | head -1; ps vx | grep -v PID | sort -rn +6
 +</​cli>​
 +
 +7. Displaying the process in order of I/O:
 +<cli prompt='#'>​
 +# ps vx | head -1; ps vx | grep -v PID | sort -rn +4
 </​cli>​ </​cli>​
  
 ===== svmon command ===== ===== svmon command =====
 +
 +Command to display top ten processes and users:
 +<cli prompt='#'>​
 +# svmon -P -v -t 10 | more
 +</​cli>​
  
 Statistics about memory; virtual and real Statistics about memory; virtual and real
aix/aix_perf_base_cmd.1634131177.txt.gz ยท Last modified: 2021/10/13 15:19 by manu