There’s many Linux CPU usage monitoring tools there, lets try this relatively new CoreFreq tool.
It’s the successor of previous XFreq tool from the same developer, but now it also supports CPU usage monitoring of AMD CPUs too.
CoreFreq is a quite complete CPU monitoring tool, few features of CoreFreq below.
- Core frequencies & ratios; SpeedStep (EIST), Turbo Boost, Hyper-Threading (HTT) and Base Clock.
- Performance counters including Time Stamp Counter (TSC), Unhalted Core Cycles (UCC), Unhalted Reference Cycles (URC)
- Number of instructions per cycle or second, IPS, IPC, or CPI.
- CPU C-States C0 C1 C3 C6 C7 – C1E – Auto/UnDemotion of C1 C3.
- DTS Temperature and Tjunction Max, Thermal Monitoring TM1 TM2 state.
- Topology map including Caches for boostrap & application CPU.
- Processor features, brand & architecture strings.
Anyway, these features is just a copy paste from the developer’s github page, https://github.com/cyring/CoreFreq check that for more details.
Install CoreFreq in GNU/Linux
There’s a AUR package for Arch Linux, here’s the AUR link. But there’s no way to install it in other distros without compiling it from source.
In this tutorial I’ll show you how to compile and install CoreFreq in Debian based distros.
First you’ve to install proper compilers, development libraries and development header files, quite straightforward though.
sudo apt-get install linux-headers-`uname -r` sudo apt-get install git dkms build-essential libc6-dev libpthread-stubs0-dev
Now copy the source code from the git repository,
cd ~/ git clone https://github.com/cyring/CoreFreq.git cd ~/CoreFreq/
If everything is fine, it should generate 3 main files without any error message, the kernel module corefreqk.ko , CoreFreq daemon corefreqd, and corefreq-cli, it’s the the CLI client tool.
Using CoreFreq to monitor CPU usage in Linux
The first step is to insert the kernel module, use
sudo insmod corefreqk.ko to insert it.
This will create a new device file under /dev directory,
/dev/corefreqk . Now start the CoreFreq daemon as super user, and don’t kill the process.
Now you can get the detailed CPU usage statics with the corefreq-cli application, just run
The image is a bit larger, you may want to open it in a new browser tab.
Use the Enter key to toggle various settings of
So that’s all for CoreFreq, again special thanks to the developer for creating such a nice Linux CPU usage monitoring tool.
Here’s the developer’s blog, http://blog.cyring.free.fr/ .