Skip to content

Tag Archives: swap

Swap File Creation

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

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 [...]