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

Next revision
Previous revision
aix:aix_perf_base_cmd [2021/01/01 21:25]
127.0.0.1 external edit
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
Line 96: Line 151:
 18612590 oracle ​        ​2462.45 ​    ​42.3 ​    ​10.2 ​ 2506.29 18612590 oracle ​        ​2462.45 ​    ​42.3 ​    ​10.2 ​ 2506.29
 11272478 oracle ​        ​2462.29 ​    ​42.3 ​    ​10.2 ​ 2501.79 11272478 oracle ​        ​2462.29 ​    ​42.3 ​    ​10.2 ​ 2501.79
 +</​cli>​
 +
 +Get top 15 processes using high **swap space**.
 +<cli prompt='#'>​
 +[root@aix-oracle]/​root#​ svmon -Pt15 | perl -e '​while(<>​) {print if($.==2||$&&&​!$s++);​$.=0 if(/​^-+$/​)}'​
 +-------------------------------------------------------------------------------
 +     Pid Command ​         Inuse      Pin     ​Pgsp ​ Virtual 64-bit Mthrd  16MB
 +42992164 oracle ​         773816 ​   12661   ​157091 ​  ​366470 ​     Y     ​N ​    N
 +43123240 oracle ​         746443 ​   12661   ​155970 ​  ​364566 ​     Y     ​N ​    N
 +42337408 oracle ​         745113 ​   12661   ​156434 ​  ​365206 ​     Y     ​N ​    N
 +61931826 oracle ​         744693 ​   12661   ​288207 ​  ​544994 ​     Y     ​N ​    N
 +52036314 oracle ​         743936 ​   12661   ​286976 ​  ​543810 ​     Y     ​N ​    N
 +10683232 oracle ​         743410 ​   12661   ​156818 ​  ​365334 ​     Y     ​N ​    N
 +14418820 oracle ​         743137 ​   12661   ​156114 ​  ​365190 ​     Y     ​N ​    N
 </​cli>​ </​cli>​
  
aix/aix_perf_base_cmd.1609532752.txt.gz ยท Last modified: 2021/01/01 21:25 by 127.0.0.1