-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
systemd-bootchart: When "--per-cpus" is selected, utilization for CPU > 4 is not displayed #404
Comments
The code base of this utility is really messed up, and my latest cleanup series were only superficial, so this probably needs some more love. Given that you are an active user of this tool and that I don't have a machine with > 4 cores to test on, could you come up with a pull request to address this issue? |
A VM can be started with any number of CPUs, even more than what one has locally. |
@zonque: I am working on the PR, stay tuned! |
@xnox: Here is the result of `cat /proc/schedstat' on the VM (actually, Docker container) where I reproduced the bug:
My current understanding is that the code in |
On multi-core systems file /proc/schedstat may be larger than 4096 bytes and pread will read only part of it. Call pread repeatedly to make sure all the file is read. Fix issue systemd#404
Here is PR #407 |
On multi-core systems file /proc/schedstat may be larger than 4096 bytes and pread() will only read part of it. Fix issue systemd#404
Fix via c91d0fd |
On multi-core systems file /proc/schedstat may be larger than 4096 bytes and pread() will only read part of it. Fix issue systemd/systemd#404
When I execute the following command on my machine (with 8 cores)
only the CPU utilization/wait diagrams for CPU[0] up to CPU[4] are displayed in the resulting *.svg.
Tested on systemd master (0bf134a)
The text was updated successfully, but these errors were encountered: