From the course: Linux System Engineer: Kernel Tuning and Remote Logging

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Use turbostat to gather CPU statistics

Use turbostat to gather CPU statistics

From the course: Linux System Engineer: Kernel Tuning and Remote Logging

Start my 1-month free trial

Use turbostat to gather CPU statistics

- [Instructor] Turbostat provides information about how long the CPU stays in different states. It's provided by the kernel-tools package, so let's ensure that is installed now. In a terminal type in, sudo yum install -y kernel-tools and hit enter. Type in your password if prompted. Now that we know it's installed, let's run it by typing in, sudo turbostat. Running turbostat with no arguments has a printout counter results every five seconds. Let this run for about 15 seconds and then press Control + C, so we can freeze the results. By default, it shows the processor core number, the Linux CPU logical processor number, the average clock speed over the course of the entire interval, the number of interrupt service by the CPU during the measurement interval, the number of System Management Interrupts or SMI, serviced by the CPU during the measurement interval, CPU%c1, CPU%c3, CPU%c6, and CPU%7. This is the percentage of the interval for which the CPU spent in each state. Pkg%pc2, is the…

Contents