# for CentOS 6.6
( cd /etc/init.d; export $(grep ^proxy= /etc/yum.conf)>/dev/null; curl -LO ${proxy:+-x $proxy} https://gist.github.com/kou1okada/c22e32283c472490e214/raw/zram && chmod +x zram )
chkconfig --add zram
chkconfig zram on
/etc/init.d/zram
loads below configuration files.
- /etc/syscontrol/zram
- /etc/default/zram
Example of configuration file:
# FACTOR=50 # Percentage to total memory for zram size (default: 50).
service zram {start|stop|restart|status}