Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mohag opened this issue Feb 3, 2017 · 0 comments
Open

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

mohag opened this issue Feb 3, 2017 · 0 comments

Comments

@mohag
Copy link

mohag commented Feb 3, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant