Пакет systemd-zram-service есть в нашем репозитории:
# urpmi systemd-zram-service
Установка:
# systemctl enable zramswap.service
Активация:
# systemctl start zramswap.service
Проверка:
# systemctl status zramswap.service
zramswap.service - Service enabling compressing RAM with zRam
Loaded: loaded (/lib/systemd/system/zramswap.service; enabled)
Active: active (exited) since Thu, 22 Mar 2012 18:16:49 +0400; 4s ago
Process: 4124 ExecStart=/usr/sbin/zramswapon (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/zramswap.service
# dmesg |tail -6
[11804.239704] zram: module is from the staging directory, the quality is unknown, you have been warned.
[11804.240990] zram: Creating 1 devices ...
[11804.351843] Adding 2044232k swap on /dev/zram0. Priority:100 extents:1 across:2044232k SS
Проверка:
# swapon -s
Filename Type Size Used Priority
/dev/sda9 partition 1036156 0 0
/dev/zram0 partition 2044232 73384 100
Перед активацией сервиса:
# free |grep Swap
Swap: 1036156 0 1036156
После активации сервиса:
# free |grep Swap
Swap: 3080388 0 3080388