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 ![BuyMeACoffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)
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