Introduction
This post was last updated on the 2021-12 (AAAA-MM), as anything rolling, consider that the best approach is to always to check the arch wiki page of every component to verify if there’s a better way of doing things.
Generic tweaks
Disable NMI watchdog
Attempt to reduce the number of interrupts from NMI watchdog.
Aim: Increase battery life.
|
|
Reduce swappiness
The default value of swappiness (60) causes my swap to be used even when I still have memory available.
Aim: Spare a bit the life of the ssd. More responsiveness.
Source: archwiki - swappiness
|
|
Increase time between writes
vm.dirty_ratio
is the percentage of system memory which when dirty, causes the process doing writes to block and write out dirty pages to the disk.
Source: speedguide.net. Also mentioned in archwiki.
Aim: Spare a bit the life of the ssd and increase responsiveness.
|
|
Nice levels (ananicy)
Ananicy handles reprioritizing application IO and CPU.
Aim: More responsiveness.
|
|
Networking
Systemd-resolved
Full DNS-over-TLS with caching is a great addition in terms of privacy.
Aim: Faster dns resolution + privacy
|
|
|
|
|
|
Make NetworkManager aware of systemd-resolved.
|
|
iwd
Even though it’s considered “unstable” I
tend to have better results with iwd
than
wpa_supplicant
.
Aim: network stability
|
|
|
|
Device MAC randomization
The objective of this tweak is to avoid complete fingerprinting of the device but still keep a stable MAC address for networks that require it.
Aim: privacy
|
|