3 ms·
Count me among the believers in running w/ swap. Here's all it takes to provide Linux with a little swap space: fallocate -l 8G /swapfile chmod 0600 /swapf
by ibiza 9y ago
Count me among the believers in running w/ swap. Here's all it takes to provide Linux with a little swap space:
fallocate -l 8G /swapfile
chmod 0600 /swapfile
mkswap /swapfile
swapon /swapfile
Add an entry in /etc/fstab & you're done. "This little trick" made all the difference on a compute cluster I managed, where each node contained 96G of RAM. It's much more pleasant to monitor swap usage than the OOMKiller and related kernel parameters.