Skip to content

Instantly share code, notes, and snippets.

PerseusArkouda /
Last active Dec 5, 2020 — forked from zouppen/
Tool for extracting compression ratio and amount of compressed memory from zram swap partitions.


This is a simple tool for displaying memory information including compression ratio and percentage of compressed memory in Linux kernel using zram. This tool works without zram, but in that case it displays only basic memory statistics.

With LC_NUMERIC=en_GB.utf8 the output of ./zraminfo looks like this: