login
Header Space

 
 

[PATCH 20/33] memory controller add documentation

Previous thread: [PATCH 21/33] memory controller resource counters v7 by Paul Menage on Monday, September 17, 2007 - 5:03 pm. (1 message)

Next thread: [PATCH 08/33] task containersv11 shared container subsystem group arrays avoid lockdep warning by Paul Menage on Monday, September 17, 2007 - 5:03 pm. (1 message)
To: <akpm@...>, <balbir@...>, Serge E. Hallyn <serue@...>, Cedric Le Goater <clg@...>, Eric W. Biederman <ebiederm@...>, Pavel Emelianov <xemul@...>, David Rientjes <rientjes@...>, Vaidyanathan Srinivasan <svaidy@...>
Cc: Nick Piggin <nickpiggin@...>, Peter Zijlstra <a.p.zijlstra@...>, <pj@...>, <containers@...>, <linux-kernel@...>
Date: Monday, September 17, 2007 - 5:03 pm

From: Balbir Singh &lt;balbir@linux.vnet.ibm.com&gt;
(container-&gt;cgroup renaming by Paul Menage &lt;menage@google.com&gt;)

Signed-off-by: Balbir Singh &lt;balbir@linux.vnet.ibm.com&gt;
Signed-off-by: Paul Menage &lt;menage@google.com&gt;

---

 Documentation/controllers/memory.txt |  259 +++++++++++++++++++++++++
 1 files changed, 259 insertions(+)

diff -puN /dev/null Documentation/controllers/memory.txt
--- /dev/null
+++ a/Documentation/controllers/memory.txt
@@ -0,0 +1,259 @@
+Memory Controller
+
+Salient features
+
+a. Enable control of both RSS (mapped) and Page Cache (unmapped) pages
+b. The infrastructure allows easy addition of other types of memory to control
+c. Provides *zero overhead* for non memory controller users
+d. Provides a double LRU: global memory pressure causes reclaim from the
+   global LRU; a cgroup on hitting a limit, reclaims from the per
+   cgroup LRU
+
+NOTE: Page Cache (unmapped) also includes Swap Cache pages as a subset
+and will not be referred to explicitly in the rest of the documentation.
+
+Benefits and Purpose of the memory controller
+
+The memory controller isolates the memory behaviour of a group of tasks
+from the rest of the system. The article on LWN [12] mentions some probable
+uses of the memory controller. The memory controller can be used to
+
+a. Isolate an application or a group of applications
+   Memory hungry applications can be isolated and limited to a smaller
+   amount of memory.
+b. Create a cgroup with limited amount of memory, this can be used
+   as a good alternative to booting with mem=XXXX.
+c. Virtualization solutions can control the amount of memory they want
+   to assign to a virtual machine instance.
+d. A CD/DVD burner could control the amount of memory used by the
+   rest of the system to ensure that burning does not fail due to lack
+   of available memory.
+e. There are several other use cases, find one or use the controller just
+   for fun (to learn and hack on the VM subsystem).
+
+1....
To: Paul Menage <menage@...>
Cc: <akpm@...>, <balbir@...>, Serge E. Hallyn <serue@...>, Cedric Le Goater <clg@...>, Eric W. Biederman <ebiederm@...>, Pavel Emelianov <xemul@...>, David Rientjes <rientjes@...>, Vaidyanathan Srinivasan <svaidy@...>, Nick Piggin <nickpiggin@...>, Peter Zijlstra <a.p.zijlstra@...>, <pj@...>, <containers@...>, <linux-kernel@...>
Date: Tuesday, September 18, 2007 - 12:53 pm

[snip]


---
~Randy
-
Previous thread: [PATCH 21/33] memory controller resource counters v7 by Paul Menage on Monday, September 17, 2007 - 5:03 pm. (1 message)

Next thread: [PATCH 08/33] task containersv11 shared container subsystem group arrays avoid lockdep warning by Paul Menage on Monday, September 17, 2007 - 5:03 pm. (1 message)
speck-geostationary