interesting, i have that behavior on a Rawhide VM
with no services except sshd which explains the
systemd device-unit from my mail some time ago

for now blacklist it and load it later with the zram.service works fine
[root@buildserver:~]$ cat /etc/modprobe.d/disable-zram.conf
blacklist zram

-------- Original-Nachricht --------
Betreff: does zram in fedora need any configuration
Datum: Thu, 27 Mar 2014 17:18:09 +0100
Von: Reindl Harald <h.rei...@thelounge.net>
Organisation: the lounge interactive design
An: Mailing-List fedora-kernel <kernel@lists.fedoraproject.org>

Hi

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@rawhide ~]# systemctl list-units | grep zram
sys-devices-virtual-block-zram0.device loaded active plugged 
/sys/devices/virtual/block/zram0
________________________________________________

Am 22.04.2014 14:38, schrieb Josh Boyer:
> On Tue, Apr 22, 2014 at 8:25 AM, Reindl Harald <h.rei...@thelounge.net> wrote:
>> currently you need to remove the zram module
>> because it's autoloaded in case you want
>> to use the zram num_devices-param
>>
>> maybe it should not be autoloaded implicitly
> 
> I don't have any machine that has zram autoloaded.  There's something
> on your system that is telling something to load the zram module.  It
> won't load without something explicitly loading it.
> 
>> /usr/sbin/rmmod zram 2> /dev/null > /dev/null
>> /usr/sbin/modprobe -q zram num_devices=$num_cpus 2> /dev/null > /dev/nul
>> ______________________________________
>>
>> [root@testserver:~]$ cat /usr/sbin/zramstart
>> #!/usr/bin/bash
>>
>> num_cpus=$(grep -c processor /proc/cpuinfo)
>> [ "$num_cpus" != 0 ] || num_cpus=1
>>
>> last_cpu=$((num_cpus - 1))
>> FACTOR=20
>> [ -f /etc/sysconfig/zram ] && source /etc/sysconfig/zram || true
>> factor=$FACTOR
>>
>> memtotal=$(grep MemTotal /proc/meminfo | awk ' { print $2 } ')
>> mem_by_cpu=$(($memtotal/$num_cpus*$factor/100*1024))
>>
>> /usr/sbin/rmmod zram 2> /dev/null > /dev/null
>> /usr/sbin/modprobe -q zram num_devices=$num_cpus 2> /dev/null > /dev/null
>>
>> for i in $(seq 0 $last_cpu); do
>>  echo $mem_by_cpu > /sys/block/zram$i/disksize
>>  /usr/sbin/mkswap /dev/zram$i
>>  /usr/sbin/swapon -p 100 /dev/zram$i
>>
>> done
> 
> I have no idea what this script is, or why it's removing the zram
> module like that.  It doesn't appear packaged in Fedora, so I can't
> really tell you where to report your issue but this isn't a kernel
> problem that I can see...

_______________________________________________
kernel mailing list
kernel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/kernel

Reply via email to