-
Notifications
You must be signed in to change notification settings - Fork 24
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
udev: Tune ZRAM rules for better performance #30
Conversation
v2: I decided that the way of applying parameter values via a service for systemd is not good enough (the dependency on zram-generator services probably doesn't work the way as I expected), so I just modified the existing udev rules. |
If I don't confuse anything, watermarks can be turned off in vain, as here |
We don't ship the latest patches from Zen in our kernel. This patch also does the same thing as setting sycstl |
I attached the Linux zen commit so that you could read the note to it because if I understood it correctly (which may be wrong but still) the vm.watermark_boost_factor=0 parameter completely disables watermarks so there is no point in vm.watermark_scale_factor, again I may be mistaken |
This parameter only disables watermark boosting, not watermarks in general. As said in kernel documentation:
https://www.kernel.org/doc/html/latest/admin-guide/sysctl/vm.html |
Since we ship zram by default via zram-generator, I think we should do some extra tuning through new
zramtune
service.This service performs:
vm.swappiness
value to 150. We need to push anonymous pages out more, once they are located in ZRAM.vm.watermark_scaling_factor
parameter as recommended here:https://www.reddit.com/r/linux_gaming/comments/vla9gd/comment/ie1cnrh/
The list of changes is not too long, but it creates a convenient opportunity to define ZRAM-specific settings later on.