5.unix System Performance
5.unix System Performance
http://www.tutorialspoint.com/unix/unix-system-performance.htm
Copyright tutorialspoint.com
The purpose of this tutorial is to introduce the performance analyst to some of the free tools available to monitor and
manage performance on UNIX systems, and to provide a guideline on how to diagnose and fix performance problems in
Unix environment.
UNIX has following major resource types that need to be monitored and tuned:
CPU
Memory
Disk space
Communications lines
I/O Time
Network Time
Applications programs
Peformance Components:
There are following major five component where total system time goes:
Component
Description
The actual amount of time the CPU spends running the users program in
the user state. It includes time spent executing library calls, but does not
include time spent in the kernel on its behalf.
This is the amount of time the CPU spends in the system state on behalf of
this program. All I/O routines require kernel services. The programmer
can affect this value by the use of blocking for I/O transfers.
These are the amount of time spent moving data and servicing I/O requests
Application Program
Time spent running other programs - when the system is not servicing this
application because another application currently has the CPU.
Peformance Tools:
Unix provides following important tools to measure and fine tune Unix system performance:
Command
Description
nice/renice
netstat
time
uptime
ps
vmstat
gprof
prof
Process Profiling
top
You can use Manpage Help to check complete syntax for each command mentioned here.