Created
April 20, 2015 15:30
-
-
Save breim/fd608662c656be353de4 to your computer and use it in GitHub Desktop.
Allocate hdd to memory to work on swap
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
# Allocate memory 1024mb | |
sudo dd if=/dev/zero of=/swap bs=1M count=1024 | |
sudo mkswap /swap | |
sudo swapon /swap | |
# Unallocate | |
sudo swapoff /swap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment