-
Notifications
You must be signed in to change notification settings - Fork 82
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
Advice mode #99
Comments
This could be incredibly useful to simply find tuneables even worth looking at on systems with existing workloads |
see rollback mode, described in issue #19 and merged in #60 . You can basically just run bpftune on the commandline using the -R option, and changes made will be rolled back, but described prior to rollback. As a recap I'll try and describe the approach taken there. Central to the design of bpftune is that we make changes, see the effects and potentially roll back on those changes or double down on them if they work. Under this model there's no way to not apply suggested changes since the application of changes is needed to assess the effectiveness of the change. As a result, the rollback mode was introduced which tries to find optimal settings and when the program exits it will describe changes made. The changes are rolled back so the admin can decide whether to apply them or not. |
From https://news.ycombinator.com/item?id=42163597#42164688 and https://news.ycombinator.com/item?id=42167417 : usage, main()
.
Probably relevant function headers in libbpftune.c: bpftune_sysctl_write(
bpftuner_tunable_sysctl_write(
bpftune_module_load(
static void bpftuner_scenario_log(struct bpftuner *tuner, unsigned int tunable,
|
In this mode
bpftune
should analyze the activity as normal, and generate desired actions as normal.But instead of applying the actions immediately, it should suggest the action in a human-readable way, explaining the reasoning behind it, and listing the OS commands necessary to implement them.
The action can then be reviewed and applied, as is, modified, or not at all, by the actual system operator.
The suggested actions should be sent to syslog under a separate topic, a log file, etc, using the normal logging mechanisms already present in
bpftune
.Ideally every advice would have a unique identifier, so as to detect duplicate advice, ignore known advice which is not being implemented, etc. The identifier could be e.g. a hash of a canonical representation of the actions to take.
The text was updated successfully, but these errors were encountered: