sysctl.d: cleanup

This commit is contained in:
Aminda Suomalainen 2026-04-13 09:47:06 +03:00
parent 7472baecb8
commit b7adc678f4
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
4 changed files with 2 additions and 19 deletions

View File

@ -1,4 +1,2 @@
# Only use swap when it has to be used. On SSDs it's preferable to not have
# so much swap use, while on HDD the default 60 is ok.
# REMEMBER TO `sudo systemctl enable --now earlyoom`
vm.swappiness = 1
# Start using swap when 90 % of RAM is used.
vm.swappiness = 10

View File

@ -1,4 +0,0 @@
# Core files appear with filename <binary>-<PID>-<hostname>.core
# Note, I am not sure if this makes sense especially when systemd or apport
# or something similar is used as it tends to override this option
kernel.core_pattern = %e-%p-%h.core

View File

@ -1,9 +0,0 @@
# TODO: is this deprecated? It might be Debian-only regardless.
# A security hole required by at least by
# * Brave https://github.com/brave/brave-browser/issues/3420
# * IPFS Desktop https://github.com/ipfs-shipyard/ipfs-desktop/issues/1044
# * A lot of Electron apps? https://github.com/electron/electron/issues/17972
# Look for "The SUID sandbox helper binary was found, but is not configured correctly."
# via https://superuser.com/a/1122977
kernel.unprivileged_userns_clone=1

View File

@ -1,2 +0,0 @@
# This is the default
vm.swappiness = 60