System performance in Unix / Linux

The purpose of this tutorial is to introduce performance analysis with the tools available for monitoring and managing performance on Unix systems, and to provide a general guideline on how to detect and Fix performance issues in Unix environments.

The purpose of this tutorial is to introduce performance analysis with the tools available for monitoring and managing performance on Unix systems, and to provide a general guideline on how to detect and Fix performance issues in Unix environments.

Unix has the following main source types that need to be monitored and enabled:

  1. CPU
  2. Memory
  3. Disk space
  4. Communication wires
  5. I / O Time
  6. Network time
  7. Application programs

Performance components in Unix / Linux

The following 5 main components are listed:

Components Description User CPU Status The actual amount of time the CPU spends to run the user's program in the user state. It includes the time spent running library summons, but does not include the time spent in the kernel. System CPU Status The amount of time that the CPU uses for this program is in the system state. All I / O programs require kernel services. Program writers can influence this value by using I / O connection keys. I / O time and system network The amount of time spent moving data and serving I / O requests. Virtual memory performance It includes switching and context exchange. The application program Time is for running other programs - when the system does not serve this application because another application is currently in the CPU.

Performance tools in Unix / Linux

Unix provides important tools to measure and refine system performance:

Commands / renice commands Run a program with the previously modified preferences. netstat Print system network connections, routing tables, interface statistics, anonymous connections and multicast members. time The amount of time a single command provides or uses the source. uptime System load average (SLA - System Load Average) ps Report a snapshot of current processes. vmstat Report virtual memory statistics. gprof Display call graph profile data. prof The top profile process Displays the system tasks.

According to Tutorialspoint

Previous article: User management in Unix / Linux

Next lesson: Logging system in Unix / Linux

4.7 ★ | 3 Vote