Swap File Creation

May 29th, 2026 – 8:25 PM
Tagged as: Computing Notes

dd if=/dev/zero of=/swapfile256GB bs=1024 count=268435456 status=progress chmod 0600 /swapfile256GB /usr/sbin/mkswap /swapfile256GB /usr/sbin/swapon /swapfile256GB echo “/swapfile256GB none swap sw 0 0″ | tee -a /etc/fstab Document z260205wa, last modified 21 May, 2026 See z260205f (an earlier note related to swap file creation).

Configuring Swappiness Level

May 29th, 2026 – 8:22 PM
Tagged as: Computing Notes

It is possible to configure the behavior of Linux with regards to the use of swap memory. The default setting is a swappiness of 60, which means the kernel begins using swap memory once processes use 40% of the system memory. To view the current swappiness setting, use the command cat /etc/sysctl.conf | grep swappiness [...]