show incorrect CPU usage #290

Closed
opened 2025-10-31 15:07:41 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @Eoous on GitHub (Apr 16, 2025).

CPU used 100% and Show incorrect CPU usage

Image

Image

Originally created by @Eoous on GitHub (Apr 16, 2025). CPU used 100% and Show incorrect CPU usage ![Image](https://github.com/user-attachments/assets/a3bf8eaf-51e3-48ea-82b1-f17a07ee86e4) ![Image](https://github.com/user-attachments/assets/2bc82b6d-9e4f-4cdf-b36d-8d249cc7cb07)
Author
Owner

@Eoous commented on GitHub (May 2, 2025):

Could you give me advice? @mbecker20

If not in progress, i will try to fix it

@Eoous commented on GitHub (May 2, 2025): Could you give me advice? @mbecker20 If not in progress, i will try to fix it
Author
Owner

@mbecker20 commented on GitHub (May 2, 2025):

Komodo uses the sysinfo crate to get the cpu usage, and just displays that. It happens here: https://github.com/moghtech/komodo/blob/main/bin/periphery/src/stats.rs#L95. I'm not sure why that wouldn't work in your case, perhaps the cpu is not supported by sysinfo crate.

@mbecker20 commented on GitHub (May 2, 2025): Komodo uses the [sysinfo](https://github.com/GuillaumeGomez/sysinfo) crate to get the cpu usage, and just displays that. It happens here: https://github.com/moghtech/komodo/blob/main/bin/periphery/src/stats.rs#L95. I'm not sure why that wouldn't work in your case, perhaps the cpu is not supported by sysinfo crate.
Author
Owner

@Eoous commented on GitHub (May 3, 2025):

I have some machines, only this one is not working for cpu usage. I will try to fix this

@Eoous commented on GitHub (May 3, 2025): I have some machines, only this one is not working for cpu usage. I will try to fix this
Author
Owner

@Eoous commented on GitHub (Jun 21, 2025):

sysinfo is correct. I thinks the error is caused by cost from vm

@Eoous commented on GitHub (Jun 21, 2025): `sysinfo` is correct. I thinks the error is caused by cost from vm
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/komodo#290