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
From the course: Linux System Engineer: Kernel Tuning and Remote Logging
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
-
-
-
Introduction to performance testing52s
-
(Locked)
Monitor processes using ps7m 29s
-
(Locked)
Monitor processes in real time4m 33s
-
(Locked)
Monitor processes using GNOME System Monitor1m 45s
-
(Locked)
Use Performance Co-pilot (PCP) to gather statistics4m 37s
-
(Locked)
Use turbostat to gather CPU statistics2m 44s
-
(Locked)
Use SS to gather network statistics3m 19s
-
(Locked)
Other CLI performance monitoring tools5m 30s
-
-
-
-
-
-