systemctl show outputs incorrect MemoryCurrent value

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

 



On Mi, 25.07.18 11:23, George Xie (georgexsh at gmail.com) wrote:

> thanks for your reply.
> 
> odds enough, on both aforementioned boxes, MemoryAccounting is set
> to no:

On old systemd versions we'd fill in the account props if the kernel
had the data even if MemoryAccounting was not turned on. This has been
changed in more recent versions, where all accounting props will
report 2^64-1 unless accounting has been turned on for them.

Generally: you really should set MemoryAccounting=yes for a unit if
you want systemd to make accounting data available. (or do that
globally with DefaultMemoryAccounting=) That you got the data on old
systems anyway in some cases was a mistake, and should not be relied
on.

Lennart

-- 
Lennart Poettering, Red Hat


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

  Powered by Linux