[systemd-devel] [PATCH 5/5] machine.slice: enable MemoryHierarchy by default
Gao feng
gaofeng at cn.fujitsu.com
Fri Sep 13 02:49:22 PDT 2013
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
More information about the systemd-devel
mailing list