mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 11:19:22 +01:00
rc: sysctl-mikaela: decrease vm.swappiness to 1
Performance is better with swap being used only when it's needed and Pi OSes use it too and it's not so much better on external HDDs than on SD cards...
This commit is contained in:
parent
bb8d854150
commit
789ad89c01
@ -852,7 +852,7 @@ function sysctl-mikaela-run() {
|
||||
set -x
|
||||
mkdir -p /etc/sysctl.d/
|
||||
echo kernel.core_pattern = %e-%p-%h.core > /etc/sysctl.d/60-mikaela.conf
|
||||
echo vm.swappiness = 10 >> /etc/sysctl.d/60-mikaela.conf
|
||||
echo vm.swappiness = 1 >> /etc/sysctl.d/60-mikaela.conf
|
||||
echo net.ipv6.bindv6only=1 >> /etc/sysctl.d/60-mikaela.conf
|
||||
echo net.ipv6.conf.eth0.use_tempaddr=2 >> /etc/sysctl.d/60-mikaela.conf
|
||||
echo net.ipv6.conf.wlan0.use_tempaddr=2 >> /etc/sysctl.d/60-mikaela.conf
|
||||
|
2
rc/zshrc
2
rc/zshrc
@ -835,7 +835,7 @@ function sysctl-mikaela-run() {
|
||||
set -x
|
||||
mkdir -p /etc/sysctl.d/
|
||||
echo kernel.core_pattern = %e-%p-%h.core > /etc/sysctl.d/60-mikaela.conf
|
||||
echo vm.swappiness = 10 >> /etc/sysctl.d/60-mikaela.conf
|
||||
echo vm.swappiness = 1 >> /etc/sysctl.d/60-mikaela.conf
|
||||
echo net.ipv6.bindv6only=1 >> /etc/sysctl.d/60-mikaela.conf
|
||||
echo net.ipv6.conf.eth0.use_tempaddr=2 >> /etc/sysctl.d/60-mikaela.conf
|
||||
echo net.ipv6.conf.wlan0.use_tempaddr=2 >> /etc/sysctl.d/60-mikaela.conf
|
||||
|
Loading…
Reference in New Issue
Block a user