Memory Tuning in Practice: zram, Swap and OOM Protection
Embedded RAM is soldered and unupgradable. zram compressed swap relieves pressure without changing hardware. Compressed memory beats bigger memory zram sizing: allocate 25-50% of physical RAM, with zstd for compression ratio or lz4 for speed; swappiness: set 100 so the kernel happily uses zram, but disable or minimize real disk swap; OOM protection: give critical […]