"NVMe is fast, I don't need swap"
Speed isn't why you keep swap. Without it, a memory spike that overshoots by 50MB triggers the OOM killer to assassinate a random process — usually your DB, mid-write.
A small swapfile is a shock absorber, not a paging strategy:
— fallocate -l 2G /swapfile
— chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile
— pair with swappiness=10 so it stays cold
The goal is surviving spikes, not living in swap. Try it tonight.
Root Access Daily
@RootAccessDaily
"NVMe is fast, I don't need swap"
Этот пост опубликован в Telegram-канале Root Access Daily. Подписаться можно по ссылке: @RootAccessDaily.