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
switch on schedstat support via sysctl on newer kernel #12
Labels
Comments
Good catch. I think we can just write We may just want to leave a note in the bootchart.svg that schedstats are possibly disabled. |
sofar
added a commit
that referenced
this issue
Sep 14, 2016
Newer kernels have schedstat disabled by default unless turned on at runtime or through a kernel parameter/syscall. We should turn this on irregardless if we can. If the kernel is too old, any errors in this code will be ignored as schedstat should be enabled already. Fixes #12.
sofar
added a commit
that referenced
this issue
Sep 14, 2016
Newer kernels have schedstat disabled by default unless turned on at runtime or through a kernel parameter/syscall. We should turn this on irregardless if we can. If the kernel is too old, any errors in this code will be ignored as schedstat should be enabled already. Fixes #12.
Yep, works nicely now (on Debian unstable with kernel 4.7.0-1-amd64) |
Awesome, thanks for confirming. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As of kernel 4.6, there is now a run-time switch for schedstats support, which defaults to disabled.
It can be switched on via a kernel command line parameter or sysctl [1]
Please update systemd-bootchart to automatically flip that runtime switch via sysctl so fiddling with the kernel command line is not necessary.
[1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=cb2517653fccaf9f9b4ae968c7ee005c1bbacd
The text was updated successfully, but these errors were encountered: