-
Notifications
You must be signed in to change notification settings - Fork 101
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
scx_loader: add support for global flags across all scheduling modes #1097
Comments
I think first option would make more sense here. As for the statistics(For debugging), I think instead of adding new configuration option it would also make sense to add new method to "enable debug mode" 🤔 |
Thank you for your reply. Based on your proposal, it seems feasible to have additional flags directly passed to any scheduler launched by scx_loader. For instance, using I personally prefer the configuration file solution because the flag-passing approach might require overlaying SystemD unit config file to make adjustments, which doesn't seem like a very elegant solution for me. Furthermore, There is the possibility that some scheduler extensions in future might not support certain global flags we specify. This could cause them to crash if inappropriate flags are passed, which would be inconvenient, especially when making changes over DBus. BTW, I'm very new to the sched_ext feature of the kernel, so I wonder if the statistics flag should only be used in the case of debugging (maybe due to potential performance impacts or other reasons)? |
FYI you can also run the scheduler binaries with
Should be fine, it's similar to any other type of log. |
Currently, scx_loader allows custom flags to be specified for each mode, but lacks the ability to apply common flags across all modes. This would be particularly useful for monitoring options like
--stats
that are commonly supported by most schedulers.I propose adding support for additional flags that would be applied regardless of the selected mode. This would enable users to monitor scheduler statistics in real-time by tailing the scx_loader log, independent of the current operating mode.
Here are two possible implementation approaches:
I'm willing to implement either approach if there's interest in this feature.
The text was updated successfully, but these errors were encountered: