Changing swap memory under Linux: dd if=/dev/zero of=/swap2 bs=1024K count=2048 sudo dd if=/dev/zero of=/swap2 bs=1024K count=2048 mkswap /swap2 chmod 0600 /swap2 swapon /swap2 My site is free of ads and trackers. Was this post helpful to you? Why not Reference: Swap Arch Wiki The Use of Swap Space in Modern Linux Systems Swap Memory: What It Is, How It Works, and How to Manage It