Page 1 of 1

Utility to show the load of each CPU ?

Posted: Sun Jun 02, 2019 2:26 pm
by jonetsu
Is there a utility around that can show the total load of each CPU, in the same vein as this one I've seen for Windows:

monitor.jpg
monitor.jpg (21.34 KiB) Viewed 1591 times

Re: Utility to show the load of each CPU ?

Posted: Sun Jun 02, 2019 3:53 pm
by Jack Winter
I use gkrellm.

Re: Utility to show the load of each CPU ?

Posted: Sun Jun 02, 2019 4:29 pm
by nikgnomicradio
I have xfce4-taskmnager that looks similar

but use conky to display CPU information and also temperatures/fan speed on desktop

Re: Utility to show the load of each CPU ?

Posted: Sun Jun 02, 2019 5:07 pm
by English Guy
The command line utility htop will show this

Re: Utility to show the load of each CPU ?

Posted: Sun Jun 02, 2019 5:35 pm
by folderol
Jack Winter wrote:I use gkrellm.
same here.

Re: Utility to show the load of each CPU ?

Posted: Mon Jun 03, 2019 9:58 am
by Jamesf
Jack Winter wrote:I use gkrellm.
Thirded.
It'll also give you memory and swap utilisation, plus disk and network traffic. And a bunch more things, if you want them.

Re: Utility to show the load of each CPU ?

Posted: Mon Jun 03, 2019 8:51 pm
by jonetsu
Thanks for all the suggestions. As I read them I realized that people would immediately think that this is for system monitoring, which is normal. Although actually it is for testing multiple approaches in C++11 memory models regarding various async tasks, threads, mutex, spinlocks, packaged tasks, condition variables, etc... and strong to weak memory models, acquire-release approaches, etc... This is why I've shown the screen shot showing 4 CPUs. A test could last about 1 second, often less. During that time it should be clearly shown what CPUs did what in terms of resources.

I have used gkrellm in the past as a system monitor. Always had it in one corner. I also used htop. I find, at least last time I tried, which was some time ago, that these do no provide a clear picture of what 4 CPUs can do in say 250ms. Since I run Xubuntu I tried the xfce4-taskmnager. It only has a 1-CPU display though, and its fastest latency is 500ms.

Cheers.

Re: Utility to show the load of each CPU ?

Posted: Mon Jun 03, 2019 9:03 pm
by folderol
I only ever once heard of a fast CPU monitor, and that was hand-crafted by someone - who pointed out that the utility itself would then add a considerable overhead. That was some years ago, and sorry but I can't remember any more than that.

Re: Utility to show the load of each CPU ?

Posted: Tue Jun 11, 2019 10:04 pm
by jonetsu
For now I've settled on htop.

To update each 100ms:

htop -d 1

htop uses ncurses, so it could be that the screen updates are more specific.

The regular top will also show 4 CPUs, although the screen updates seems much more slower

For top:

1 : to show all CPUs
s .1 : for a refresh rate of 100 ms

Both have many options, I only very quickly took a look.


htop:

htop.jpg
htop.jpg (10.35 KiB) Viewed 1535 times

top:

top.jpg
top.jpg (29.75 KiB) Viewed 1535 times