systemctl show outputs incorrect MemoryCurrent value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux