- Unix / Linux - The vi Editor
- Unix / Linux - Communication
- Unix / Linux - Processes
- Unix / Linux - Pipes & Filters
- Unix / Linux - Basic Utilities
- Unix / Linux - Environment
- Unix / Linux - File Permission
- Unix / Linux - Directories
- Unix / Linux - File Management
- Unix / Linux - Getting Started
- Unix / Linux - Home
Unix / Linux Shell Programming
- Unix / Linux - Manpage Help
- Unix / Linux - Shell Functions
- Unix / Linux - IO Redirections
- Unix / Linux - Quoting Mechanisms
- Unix / Linux - Shell Substitutions
- Unix / Linux - Loop Control
- Unix / Linux - Shell Loops
- Unix / Linux - Decision Making
- Unix / Linux - Basic Operators
- Unix / Linux - Using Arrays
- Unix / Linux - Special Variables
- Unix / Linux - Using Variables
- Unix / Linux - What is Shell?
- Unix / Linux - Shell Scripting
Advanced Unix / Linux
- Unix / Linux - Signals and Traps
- Unix / Linux - System Logging
- Unix / Linux - System Performance
- Unix / Linux - User Administration
- Unix / Linux - File System Basics
- Unix / Linux - Regular Expressions
Unix / Linux Useful Resources
- Unix / Linux - Discussion
- Unix / Linux - Useful Resources
- Unix / Linux - Commands List
- Unix / Linux - System Calls
- Unix / Linux - Builtin Functions
- Unix / Linux - Quick Guide
- Unix / Linux - Useful Commands
- Unix / Linux - Questions & Answers
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Unix / Linux - System Performance
In this chapter, we will discuss in detail about the system performance in Unix.
We will introduce you to a few free tools that are available to monitor and manage performance on Unix systems. These tools also provide guidepnes on how to diagnose and fix performance problems in the Unix environment.
Unix has following major resource types that need to be monitored and tuned −
CPU
Memory
Disk space
Communications pnes
I/O Time
Network Time
Apppcations programs
Performance Components
The following table psts out five major components which take up the system time −
Sr.No. | Component & Description |
---|---|
1 |
User State CPU The actual amount of time the CPU spends running the users’ program in the user state. It includes the time spent executing pbrary calls, but does not include the time spent in the kernel on its behalf |
2 |
System State CPU 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 blocking I/O transfers |
3 |
I/O Time and Network Time This is the amount of time spent moving data and servicing I/O requests |
4 |
Virtual Memory Performance This includes context switching and swapping |
5 |
Apppcation Program Time spent running other programs - when the system is not servicing this apppcation because another apppcation currently has the CPU |
Performance Tools
Unix provides following important tools to measure and fine tune Unix system performance −
Sr.No. | Command & Description |
---|---|
1 |
nice/renice Runs a program with modified schedupng priority |
2 |
netstat Prints network connections, routing tables, interface statistics, masquerade connections, and multicast memberships |
3 |
time Helps time a simple command or give resource usage |
4 |
uptime This is System Load Average |
5 |
ps Reports a snapshot of the current processes |
6 |
vmstat Reports virtual memory statistics |
7 |
gprof Displays call graph profile data |
8 |
prof Faciptates Process Profipng |
9 |
top Displays system tasks |
You can use
to check complete syntax for each command mentioned here. Advertisements