On Fri, Aug 28, 2020 at 7:29 AM Alexey A. hakavlad@gmail.com wrote:
In fact, the compression ratio is higher when same_pages is taken into account:
orig_data_size uncompressed size of data stored in this disk. This excludes same-element-filled pages (same_pages) since *no memory is allocated for them*. same_pages the number of same element filled pages written to this disk. *No memory is allocated for such pages*.
https://www.kernel.org/doc/Documentation/blockdev/zram.txt Check `SwapTotal - SwapFree` instead of DATA if you want to check real compression ratio.
Good to know! Thanks!