systemd / zram-generator

Systemd unit generator for zram devices
MIT License
575 stars 48 forks source link

Added configuration option for setting mem_limit in /sys/block/zramX/… #192

Closed Malgarion closed 6 months ago

Malgarion commented 6 months ago

…mem_limit, needed in cases when

zram device size is big with compression ratios that can't be fit in RAM yet zram device does not report as being full. Option is "zram-resident-limit = " and syntax is same as with setting 'zram-size ='. Tested on my system and works as expected, additional test may be needed.

Malgarion commented 6 months ago

Pushed new changes.