Performance and Workload Management
Performance and Workload Management
Performance and Workload Management
Copyright IBM Corporation 2004 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
3.0.2
Unit Objectives
After completing this unit, students should be able to: Provide basic performance concepts Provide basic performance analysis Manage the workload on a system Work with the Performance Diagnostic Tool (PDT)
Performance Problems
What a fast machine!
CPU
Memory
Disk I/O
Network
NI 20 20 20
Nice value
The smaller the PRI value, the higher the priority of the process. The average process runs a priority around 60. The NI value is used to adjust the process priority. The higher the nice value is, the lower the priority of the process.
sar -u
yes
vmstat
no
iostat
Check disk
no
# sar -u 60 30 AIX www 08:25:10 48 08:26:10 63 08:27:10 59 . . Average 57 43 0 0 1 5 000400B24C00 06/06/01 %wio 0 0 0 0 0 0 %idle 52 37 41 08:24:10 %usr %sys
1 7 81 167 95 216 0 0 0 0
pi, po: Paging space page ins and outs: If any paging-space I/O is taking place, the workload is approaching the system's memory limit wa: I/O wait percentage of CPU If nonzero, a significant amount of time is being spent waiting on file I/O
Copyright IBM Corporation 2004
Disks: %tm_act hdisk0 hdisk1 cd0 tty: tin 0.1 0.0 0.0 0.0
tout avg-cpu: %user %sys 110.7 7.0 59.4 Kbps 115.7 0.0 0.0 tps 28.7 0.0 0.0 Kb_read 456 0 0
A system is I/O bound, if: %iowait > 25%, %tm_act > 70%
Copyright IBM Corporation 2004
topas
CPU Info
iostat Info
VMSTAT Info
tprof
c
Memory Bottlenecks Processes using memory
AUS
es
svmon
I/O Bottlenecks File systems, LVs, and files causing disk activity
filemon
Copyright IBM Corporation 2004
Other 0 0 0
pin in use
clnt 0 0
# svmon -Pt 3
Pid 14624 9292 3596 Command java httpd X
# iostat 10 60
Our system is now memory bound! Let's buy more memory !!! # vmstat 5 Oh no! The CPU is completely overloaded !
# sar -u 60 60
Copyright IBM Corporation 2004
minute
weekday
command
Queue is down Jobs will be queued Queue is up: Jobs will be executed sequentially
Copyright IBM Corporation 2004
NI
...
TIME 0:01
CMD backup_all
35 ...
C PRI 78
NI
...
TIME 0:02
CMD backup_all
0 3860 2820 26
25 ...
Next Step
PDT
Error-Free Operation
Enabling PDT
# /usr/sbin/perf/diag_tool/pdt_config
-----------PDT customization menu----------1) show current 3) disable 5) disable 6) de-install 7) exit pdt_config Please enter a number: 4 PDT report recipient and severity level PDT reporting PDT collection PDT 2) modify/enablePDT reporting 4) modify/enable PDT collection
0 10
1-5
/usr/sbin/perf/diag_tool/Driver_daily2
PDT Files
Collection Driver_ daily /var/perf/cfg/diag_tool/.collection.control
Reporting
/var/perf/tmp/.sm /var/perf/tmp/.SM.discards
# vi /var/perf/cfg/diag_tool/.thresholds
(int) (int) (int) ... DISK_STORAGE_BALANCE 800 NUMBER_OF_BALANCE 1 FS_UTIL_LIMIT 90 [0:10000 MB] [0:10000] [0:100%]
Current Value
Valid Range
Machines to monitor
Next Step
Checkpoint
1. What command can be executed to identify CPU-intensive programs?
4. T/F: The higher the PRI value, the higher the priority of a process.
Unit Summary
The following commands can be used to identify potential bottlenecks in the system: ps sar vmstat iostat If you cannot fix a performance problem, manage your workload through other means (at, crontab, nice, renice). Use PDT to assess and control your systems performance.