Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QEMU/KVM CPU usage only shown in process list, not in overall CPU usage #1311

Open
1 task done
ThomasFrans opened this issue Oct 21, 2023 · 2 comments
Open
1 task done
Labels
bug Something isn't working the way that is expected.

Comments

@ThomasFrans
Copy link

Checklist

What operating system and version are you using?

Arch Linux 6.5.7

What architecture are you using?

x86_64 / AMD64

What terminal(s) are you running bottom on?

Alacritty 0.12.3

Are you using ZFS?

No

What version of bottom are you running?

0.9.6

How did you install bottom?

Installed from the official Arch extra repository.

Describe the issue

bottom doesn't show CPU usage in the general CPU widget while it does show it in the process list. I don't know what exactly causes this but I noticed it while using a QEMU/KVM virtual machine running FreeBSD. If I compile a Rust crate in the VM while having bottom open on the host, the process list will show the QEMU process using 100% of the CPU, but it isn't reflected in the CPU widget at all. The CPU widget will sit at 6% or lower. See the screenshot below where virt-manager is definitely showing the CPU usage, and the bottom process list shows it as well, but it isn't visible in the CPU widget.

image

What is the expected behaviour?

I expect the general CPU widget to always show a 'summary' of the process list's CPU usage.

What is the actual behaviour?

The combined CPU usage of the process list doesn't equal the one shown in the CPU widget.

How can we reproduce this?

  1. Install a VM in QEMU/KVM (I used FreeBSD here, but it works with any OS)
  2. Do some heavy computation in the VM
  3. Watch bottom on the host machine

Additional information

No response

@ThomasFrans ThomasFrans added the bug Something isn't working the way that is expected. label Oct 21, 2023
@ClementTsang
Copy link
Owner

Will take a look at this - VMs sometimes cause some weird issues, yeah.

@Vyogami
Copy link

Vyogami commented Jul 26, 2024

This is happening on my machine as well

What operating system and version are you using?

Arch Linux 6.9.6

What architecture are you using?

x86_64 / AMD64

What terminal(s) are you running bottom on?

Kitty 0.35.2

Are you using ZFS?

No

What version of bottom are you running?

0.9.6

How did you install bottom?

Installed from the official Arch extra repository.

Describe the issue

It is same as the issue mentioned by @ThomasFrans but in my case i can see the cpu usage through htop but it's not showing in bottom.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working the way that is expected.
Projects
None yet
Development

No branches or pull requests

3 participants