aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/cgroups/memory.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/cgroups/memory.txt')
-rw-r--r--Documentation/cgroups/memory.txt20
1 files changed, 19 insertions, 1 deletions
diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt
index 6cab1f29da4c..eac22d3b2f7b 100644
--- a/Documentation/cgroups/memory.txt
+++ b/Documentation/cgroups/memory.txt
@@ -184,6 +184,9 @@ limits on the root cgroup.
184 184
185Note2: When panic_on_oom is set to "2", the whole system will panic. 185Note2: When panic_on_oom is set to "2", the whole system will panic.
186 186
187When oom event notifier is registered, event will be delivered.
188(See oom_control section)
189
1872. Locking 1902. Locking
188 191
189The memory controller uses the following hierarchy 192The memory controller uses the following hierarchy
@@ -488,7 +491,22 @@ threshold in any direction.
488 491
489It's applicable for root and non-root cgroup. 492It's applicable for root and non-root cgroup.
490 493
49110. TODO 49410. OOM Control
495
496Memory controler implements oom notifier using cgroup notification
497API (See cgroups.txt). It allows to register multiple oom notification
498delivery and gets notification when oom happens.
499
500To register a notifier, application need:
501 - create an eventfd using eventfd(2)
502 - open memory.oom_control file
503 - write string like "<event_fd> <memory.oom_control>" to cgroup.event_control
504
505Application will be notifier through eventfd when oom happens.
506OOM notification doesn't work for root cgroup.
507
508
50911. TODO
492 510
4931. Add support for accounting huge pages (as a separate controller) 5111. Add support for accounting huge pages (as a separate controller)
4942. Make per-cgroup scanner reclaim not-shared pages first 5122. Make per-cgroup scanner reclaim not-shared pages first