We can simply limit the total memory usage of machines through setting the memory usage limit of machine.slice. --- units/machine.slice | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/units/machine.slice b/units/machine.slice index 3d40dfd..c959598 100644 --- a/units/machine.slice +++ b/units/machine.slice @@ -9,3 +9,6 @@ Description=Virtual Machine and Container Slice Documentation=man:systemd.special(7) Before=slices.target + +[Slice] +MemoryHierarchy=yes -- 1.8.3.1 _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel