Don't touch sysctls set in sysctl.conf#518
Open
lkundrak wants to merge 2 commits intoredhat-performance:masterfrom
Open
Don't touch sysctls set in sysctl.conf#518lkundrak wants to merge 2 commits intoredhat-performance:masterfrom
lkundrak wants to merge 2 commits intoredhat-performance:masterfrom
Conversation
Currently reapply_sysctl=1 will cause sysctl.conf(5) and sysctl.d(5) to be loaded and all the sysctls configured set after sysctls that TuneD decides to set. There are some issues with this approach I'll address in a follow-up commit. This one (hopefully) doesn't change the behavior. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Without TuneD, sysctls from sysctl.conf(5) are set once early on boot, typically via systemd-sysctl.service(8) or a similar service. TuneD, however, with reapply_sysctl=1 (which is default), applies these settings later on during startup and on other occassions as well. This is rather unfortunate, because it changes the semantics of sysctl.conf(5). Without TuneD, the configured values serve as mere defaults while with TuneD their values are maintained as configured. This has been reported to break things [1] in case of an user who has configured net.ipv6.conf.*.disable_ipv6=1 in sysctl.conf and the used a different tool (NetworkManager) to override it later on, essentially ending up with tools racing for setting the sysctl. [1] https://bugzilla.redhat.com/show_bug.cgi?id=2136749 Let's be a little less aggresive here and just avoid touching the explicitly configured sysctls. Preserve the old behavior for compatibility's sake, but turn it off by default. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
69090b6 to
c3db1df
Compare
Author
|
Marked as draft since it seems I need to fix tests first. Also sorry about the s/tuned/teamd/ in branch name, it's due to brain rot from my dealings with teamd. Edit: un-marking as draft, since the tests passed, meaning this is probably the best branch ever |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TuneD reverting sysctls to values configured in sysctl.conf was reported to have made one fine gentleman very sad.
The individual commits contains more details & a proposed remedy.