[systemd-devel] systemctl show outputs incorrect MemoryCurrent value

Lennart Poettering lennart at poettering.net
Tue Jul 24 12:33:12 UTC 2018


On Di, 24.07.18 20:12, George Xie (georgexsh at gmail.com) wrote:

> on box A, systemctl show outputs an incorrect value for unit memory usage:
> 
>     [box A] $ systemctl show crond | grep MemoryCurrent
>     MemoryCurrent=18446744073709551615
> 
> 18446744073709551615 == UINT64_MAX, this must be incorrect.

This is returned if memory accounting is not enabled for the unit.

Set MemoryAccounting=yes in the unit to enable it.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list