mystilleef / FedoraZram

Scripts that enable zram for Fedora
73 stars 48 forks source link

Description in /etc/sysconfig/zram is wrong #26

Open mohag opened 7 years ago

mohag commented 7 years ago

The script sets the disksize value, which is the size of the zram block device, not the amount of memory used (which is allocated dynamically). The memory can be limited by the mem_limit parameter. (Setting Factor to even 200 won't cause OOM, unless lots of hard to compress data is written to the zram device) (mem_limit can prevent that, but is not supported on some older kernels (Like CentOS7's 3.10))

See https://www.kernel.org/doc/Documentation/blockdev/zram.txt