<div dir="ltr">> There is probably some other service that had MemoryAccounting=yes<div>> which in turn effectively (even though dbus property doesn't reflect</div><div>> that) enabled MemoryAccounting on all "sibling" services.</div><div><br><div><br></div><div>I have also inspected this possibility, with the following:</div><div><br></div><div>    # systemctl list-units | awk '{print $1}' | while read u; do systemctl show "$u" | grep MemoryAccounting=; done<br></div><div><br></div><div>but unfortunately, all the output is `MemoryAccounting=no`.<br></div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">I have another question, after set `DefaultMemoryAccounting=yes` and `systemctl daemon-reexec`, there is a random delay between 1 to 5 minutes for systemctl show output correct MemoryCurrent value, is there any explanation for this delay? </div><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div><br>--<br>Xie Shi<br><a href="http://xerr.net/" target="_blank">http://xerr.net/</a><br><br></div></div></div></div>
<br><div class="gmail_quote">On Wed, Jul 25, 2018 at 7:26 PM, Michal Sekletar <span dir="ltr"><<a href="mailto:msekleta@redhat.com" target="_blank">msekleta@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Wed, Jul 25, 2018 at 5:25 AM George Xie <<a href="mailto:georgexsh@gmail.com">georgexsh@gmail.com</a>> wrote:<br>
><br>
> thanks for your reply.<br>
><br>
> odds enough, on both aforementioned boxes, MemoryAccounting is set to no:<br>
<br>
</span>There is probably some other service that had MemoryAccounting=yes<br>
which in turn effectively (even though dbus property doesn't reflect<br>
that) enabled MemoryAccounting on all "sibling" services.<br>
<span class="gmail-"><br>
> the good news is, after setting `DefaultMemoryAccounting=yes` in /etc/systemd/system.conf, and a `systemctl daemon-reexec`, all units have correct memory usage info.<br>
<br>
</span>Tasks and memory accounting is now enabled by default in upstream so I<br>
figure these weird issues are more visible on CentOS where accounting<br>
still defaults to "no".<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
Michal<br>
</font></span></blockquote></div><br></div></div>