Being able to set /sys/block/zramX/mem_limit through the configuration file may be useful in situations where one wants to set a hard limit on the (compressed) size a given zram disk is going to take in memory.
As an example, I wanted to set up a large zram swap and limit it to use at most 25% of my total memory once compressed, but it seems like it isn't possible with just the configuration file currently.
As a side question, is it acceptable to set this manually by echoing my limit into /sys/block/zramX/mem_limit in the meantime, or could this cause some conflicts with zram-generator ?
Being able to set
/sys/block/zramX/mem_limit
through the configuration file may be useful in situations where one wants to set a hard limit on the (compressed) size a given zram disk is going to take in memory.As an example, I wanted to set up a large zram swap and limit it to use at most 25% of my total memory once compressed, but it seems like it isn't possible with just the configuration file currently.
As a side question, is it acceptable to set this manually by echoing my limit into
/sys/block/zramX/mem_limit
in the meantime, or could this cause some conflicts with zram-generator ?