pstop icon indicating copy to clipboard operation
pstop copied to clipboard

Sometimes the CPU utilisation metrics are somewhat crazy.

Open PinguPeng2010 opened this issue 2 months ago • 1 comments

Image

As you can see here, the CPU utilisation is at 314%, which isn't possible. This happens consistently as well. This happened while running QEMU.

Thanks!

PinguPeng2010 avatar Oct 01 '26 18:10 PinguPeng2010

Thanks for reporting this @PinguPeng2010, and for the screenshot.

The number was real. pstop works like htop here: per process CPU counts one fully busy core as 100%, so QEMU keeping a bit over three cores busy shows up as about 315%.

pstop 0.5.5 adds htop's Irix mode switch. You can turn it off in F2 > Display Options > Irix mode, or set irix_mode=0 in your config file. With it off, CPU% is a share of the whole machine and stays under 100%. I also capped the values at 100% per CPU, so a process can never show more than the machine actually has.

The fix is in commit 2fc8294 and shipped in v0.5.5: https://github.com/psmux/pstop/releases/tag/v0.5.5

psmux avatar Nov 07 '26 20:11 psmux