Created
April 6, 2018 08:07
-
-
Save CubexX/2f56dbdee8822129a7f4cde989bd8c20 to your computer and use it in GitHub Desktop.
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
modprobe zram num_devices=4 | |
SIZE=1536 | |
echo $(($SIZE*1024*1024)) > /sys/block/zram0/disksize | |
echo $(($SIZE*1024*1024)) > /sys/block/zram1/disksize | |
echo $(($SIZE*1024*1024)) > /sys/block/zram2/disksize | |
echo $(($SIZE*1024*1024)) > /sys/block/zram3/disksize | |
mkswap /dev/zram0 | |
mkswap /dev/zram1 | |
mkswap /dev/zram2 | |
mkswap /dev/zram3 | |
swapon /dev/zram0 -p 10 | |
swapon /dev/zram1 -p 10 | |
swapon /dev/zram2 -p 10 | |
swapon /dev/zram3 -p 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment