Created
January 23, 2021 11:54
-
-
Save Mexidense/47bfa9185eb32b29dcdd0d10c2fb859e to your computer and use it in GitHub Desktop.
Resize Swap volume on Ubuntu 20.04 to 8GB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Firstly, if you want to check the swap memory size run: swapon -s | |
# Resize Swap volume to 8GB | |
sudo swapoff -a && sudo dd if=/dev/zero of=/swapfile bs=1M count=8192 && sudo mkswap /swapfile && sudo swapon /swapfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Flush some memory:
echo 3 | sudo tee /proc/sys/vm/drop_caches
source: https://www.linuxatemyram.com/