Skip to content
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

Default stock settings #186

Open
kaspychala opened this issue Nov 6, 2024 · 1 comment
Open

Default stock settings #186

kaspychala opened this issue Nov 6, 2024 · 1 comment

Comments

@kaspychala
Copy link

kaspychala commented Nov 6, 2024

Are default settings that are stored in config.go still relevant regarding many changes to SteamOS? I'm asking because I recently uninstalled CryoUtilities, and not sure If we are getting actual stock settings or rather old stock settings. If someone have possibility to check these values in stock SteamOS 3.6.20 then it will be matter of a simple PR to update these values.

//////////////////////
// Default Settings //
//////////////////////

var DefaultSwapFileLocation = "/home/swapfile"
var DefaultSwapSize = 1
var DefaultSwapSizeBytes = int64(DefaultSwapSize * GigabyteMultiplier)
var DefaultSwappiness = "60"
var DefaultHugePages = "madvise"
var DefaultCompactionProactiveness = "20"
var DefaultHugePageDefrag = "1"
var DefaultPageLockUnfairness = "5"
var DefaultShMem = "never"

@xbb
Copy link

xbb commented Nov 11, 2024

In my case the only one that doesn't match is /sys/kernel/mm/transparent_hugepage/enabled, which seems set to always instead of madvise by default (I think it's like this since 3.5). I use a custom swap size so I don't know about that one.

Check /etc/tmpfiles.d/ and /etc/sysctl.d, if both are empty, then it should use the defaults. Not sure about the swap size though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants