-
-
Save islands04/436ba3ad77ec79aa0407cd2f72cbc87d to your computer and use it in GitHub Desktop.
Revisions
-
sultanqasim created this gist
Jun 21, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ #!/bin/bash # Raspberry Pi ZRAM script # Tuned for quad core, 1 GB RAM models # put me in /etc/init.d/zram.sh and make me executable # then run "sudo update-rc.d zram.sh defaults" modprobe zram echo 3 >/sys/devices/virtual/block/zram0/max_comp_streams echo lz4 >/sys/devices/virtual/block/zram0/comp_algorithm echo 268435456 >/sys/devices/virtual/block/zram0/mem_limit echo 536870912 >/sys/devices/virtual/block/zram0/disksize mkswap /dev/zram0 swapon -p 0 /dev/zram0 sysctl vm.swappiness=70