does zram in fedora need any configuration
Reindl Harald
h.reindl at thelounge.net
Thu Mar 27 17:05:10 UTC 2014
mailing-list stripped the 3.9 KB src.rpm :-(
http://access.thelounge.net/harry/zram-1.0.0-1.fc20.20140327.rh.src.rpm
Am 27.03.2014 18:01, schrieb Reindl Harald:
> answered that myself
>
> * it needs configuration
> * src.rpm built on F20 and tested on Rawhide attached
> * that below is a VM with 2 virtual CPU cores
> * configuration is 20% of RAM and one zram-device per core
>
> [root at rawhide ~]# free
> total used free shared buffers cached
> Mem: 742 136 606 4 7 69
> -/+ buffers/cache: 59 683
> Swap: 148 0 148
>
>
> [root at rawhide ~]# systemctl start zram.service
> [root at rawhide ~]# dmesg
> [ 290.085329] zram: Created 2 device(s) ...
> [ 290.092406] Adding 76004k swap on /dev/zram0. Priority:100 extents:1 across:76004k SSFS
> [ 290.096359] Adding 76004k swap on /dev/zram1. Priority:100 extents:1 across:76004k SSFS
> [root at rawhide ~]# htop
> [root at rawhide ~]# systemctl list-units | grep zram
> sys-devices-virtual-block-zram0.device loaded active
> plugged /sys/devices/virtual/block/zram0
> sys-devices-virtual-block-zram1.device loaded active
> plugged /sys/devices/virtual/block/zram1
> zram.service loaded active
> exited Enable compressed swap in memory using zram
> dev-zram0.swap loaded active
> active /dev/zram0
> dev-zram1.swap loaded active
> active /dev/zram1
> [root at rawhide ~]#
>
> Am 27.03.2014 17:18, schrieb Reindl Harald:
>> since 3.14 is not that far away zram becomes interesting
>>
>> the article below maybe outdated, on a rawhide-VM exists
>> /dev/zram0 as well as a implicit systemd-unit, well
>> does that mean it is automagically configured and if
>> that is the case does systemd < 212 that also or is
>> there handwork needed for the time F19/F20 get rebased
>> to kernel 3.14?
>>
>> [root at rawhide ~]# systemctl list-units | grep zram
>> sys-devices-virtual-block-zram0.device loaded active plugged /sys/devices/virtual/block/zram0
>>
>> http://mystilleef.blogspot.co.at/2011/10/enable-zram-in-fedora.html
More information about the kernel
mailing list