It also simplifies memory size calculation, which is now passed unmodified as KiB to the sysfs parameters of zram devices. This fixed a problem on my Ubuntu 18.04 installation where $MEMORY had a value in scientific notation which was not recognized by the zram module.
Also, it removes unnecesary operations to set the number of zram devices to create.
This pull request adds support for choosing the compression algorithm used to compress the data stored on the zram swap, using the sysfs interface documented in https://www.kernel.org/doc/Documentation/blockdev/zram.txt
It also simplifies memory size calculation, which is now passed unmodified as KiB to the sysfs parameters of zram devices. This fixed a problem on my Ubuntu 18.04 installation where $MEMORY had a value in scientific notation which was not recognized by the zram module.
Also, it removes unnecesary operations to set the number of zram devices to create.