-
Notifications
You must be signed in to change notification settings - Fork 86
Advice mode #99
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
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,
|
concur with a lot of this... Should bpftune's reach extend to ethtool / nic config? What about IPTables ruleset adjustments? or Blockdev / IO tuning? IDK where the juice / squeeze value tradeoff lies .... and where this becomes an utter bikeshed... |
/etc/bpftune.d/ would avoid the need to dpkg-divert or similar to avoid
clobbering config;
/etc/bpftune.d/10-defaults.conf # pkg1
/etc/bpftune.d/50-localpolicy.conf # pkg2
From https://www.debian.org/doc/debian-policy/ap-pkg-diversions.html :
Do not use diversions for files that have their own native override
mechanisms, such as systemd unit files.
From `man systemd.unit` > "System Unit Search Path"
https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html#System%20Unit%20Search%20Path
:
/etc/systemd/ [...]
/run/systemd/ [...]
…
/usr/local/lib/systemd/system/*
/usr/lib/systemd/system
…On Mon, Jan 13, 2025, 6:28 PM Wolf Noble ***@***.***> wrote:
concur with a lot of this...
additionally, it might be useful to have a config file like
/etc/default/bpftune (or something) that tuning flags can be added to as
opposed to adjusting the systemd initscript that gets clobbered on every
make install... (or being noisier about the expected way to apply changes
to the current config)
Should bpftune's reach extend to ethtool / nic config?
What about IPTables ruleset adjustments?
or Blockdev / IO tuning?
IDK where the juice / squeeze value tradeoff lies .... and where this
becomes an utter bikeshed...
regardless, I really appreciate this tool as it is now, and want to see it
help more peeps grok low-level tuning... as wow is it complex.
—
Reply to this email directly, view it on GitHub
<#99 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAMNS2EPWJF3U6EROFRSP32KRD3TAVCNFSM6AAAAABR6BY3WGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOBYGQ2TGNBQGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
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: