Skip to content

Rollback fix#159

Merged
alan-maguire merged 2 commits intomainfrom
rollback-fix
Mar 6, 2025
Merged

Rollback fix#159
alan-maguire merged 2 commits intomainfrom
rollback-fix

Conversation

@alan-maguire
Copy link
Member

these changes fix issues in rollback and provide a "rollback" query which gives a paste-able set of commands to restore to pre-bpftune sysctl settings

rollback is in summary scenario logging, however this code also
gets triggered by "bpftune -q summary", which erroneously rolls back
tunable values.  Ensure it is only run on tuner fini instead.

Signed-off-by: Alan Maguire <[email protected]>
have "bpftune -q summary" output paste-able commands to replicate
changes made; for example:

sudo sysctl -w net.ipv4.tcp_rmem="4096 131072 781250 "

Add a "bpftune -q rollback" command also; its role is to provide
a pasteable set of commands to restore initial pre-bpftune state
when bpftune is stopped.  For example:

$ bpftune -q rollback
sudo sysctl -w net.ipv4.tcp_rmem="4096 131072 131072 "

The latter provides a way for folks not running bpftune in rollback
mode to restore original state.

Signed-off-by: Alan Maguire <[email protected]>
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Mar 6, 2025
@alan-maguire alan-maguire merged commit ee2263d into main Mar 6, 2025
1 check passed
@alan-maguire alan-maguire deleted the rollback-fix branch March 6, 2025 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant