]> git.ipfire.org Git - thirdparty/util-linux.git/commit
zramctl: fix MEM-USED column description
authorJérôme Poulin <jeromepoulin@gmail.com>
Fri, 22 Aug 2025 03:54:17 +0000 (23:54 -0400)
committerKarel Zak <kzak@redhat.com>
Tue, 9 Sep 2025 10:10:28 +0000 (12:10 +0200)
commit0d2c28244a47629c8b419abb93ff035ff6065560
tree4749c0dabb667a0a748877f39f87b9925e915f6f
parentca96ce7962e382b6c99d7d8f878cfe8e6917db3c
zramctl: fix MEM-USED column description

The MEM-USED column was incorrectly documented as showing current
memory consumption. This is due to confusing naming in the kernel's
zram implementation:

- Kernel field "mem_used_total" (3rd in mm_stat) = current memory usage
- Kernel field "mem_used_max" (5th in mm_stat) = peak memory usage

zramctl maps these as:
- TOTAL column <= mem_used_total (current usage)
- MEM-USED column <= mem_used_max (peak usage)

The misleading "MEM-USED" name suggests current usage, but it actually
shows the peak memory usage (high water mark) since device creation
or last reset. This is tracked by the kernel's max_used_pages which
only increases when current usage exceeds the stored maximum.

Fixed description from:
"memory zram have been consumed to store compressed data" to
"peak memory usage to store compressed data".

Mise à jour de la traduction française.

(cherry picked from commit 616c88fb9565017c1a08c8869d2559b8d218c443)
po/fr.po
po/util-linux.pot
sys-utils/zramctl.c