Monitoring CPU performance
This recipe will show you how to visualize using pmchart
and command-line tools to monitor your CPU's performance. We will have a look at the following metrics:
kernel.all.cpu.wait.total
kernel.all.cpu.irq.hard
kernel.all.cpu.irq.soft
kernel.all.cpu.steal
kernel.all.cpu.sys
kernel.all.cpu.user
kernel.all.cpu.nice
kernel.all.cpu.idle
How to do it…
This will show you how to create the text and graphical representation of performance data. Perform the following steps:
Display live data for the preceding metrics with a 1-second interval for the host,
localhost
. Execute the following command:~]# pmdumptext -H -t 1 -i -l kernel.all.cpu.wait.total kernel.all.cpu.irq.hard kernel.all.cpu.irq.soft kernel.all.cpu.steal kernel.all.cpu.sys kernel.all.cpu.user kernel.all.cpu.nice kernel.all.cpu.idle -h localhost
Create a configuration file for
pmchart
to display live data calledcpu_stack.conf
with the following contents:#kmchart version 1 chart style stacking antialiasing...