]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dbus: Document org.freedesktop.systemd1.Service.MemoryAvailable property 29117/head
authorMichal Koutný <mkoutny@suse.com>
Thu, 7 Sep 2023 18:00:28 +0000 (20:00 +0200)
committerMichal Koutný <mkoutny@suse.com>
Sat, 9 Sep 2023 08:42:38 +0000 (10:42 +0200)
The value is an optimistic estimate, make it clear in the docs.

man/org.freedesktop.systemd1.xml

index 75d3d457bd3036c29ed771f55b41b0d58af5968d..4ca0583d65522517d09c3ccaa61476dc988b407c 100644 (file)
@@ -4603,10 +4603,11 @@ node /org/freedesktop/systemd1/unit/avahi_2ddaemon_2eservice {
       <varname>ExtensionDirectories</varname>
       see systemd.exec(5) for their meaning.</para>
 
-      <para><varname>MemoryAvailable</varname> indicates how much unused memory is available to the unit before
-      the <literal>MemoryMax</literal> or <literal>MemoryHigh</literal> (whichever is lower) limit set by the cgroup
-      memory controller is reached. It will take into consideration limits on all parent slices, other than the
-      limits set on the unit itself.</para>
+      <para><varname>MemoryAvailable</varname> takes into account unit's and parents' <literal>MemoryMax</literal>
+      or <literal>MemoryHigh</literal> or physically available RAM versus given level's memory consumption
+      and takes minimum. Beware that other units below the tightest parent slice may consume the memory quicker
+      and less than reported value would remain for own allocation.
+      It works better in conjunction with <varname>MemoryAccounting=yes</varname> on involved units.</para>
 
       <para><varname>DelegateSubgroup</varname> contains the cgroup subgroup to place invoked unit processes
       in. As configured by the option of the same name in unit files. This is set to the empty string when it