* Kirill A. Shutemov kir...@shutemov.name [2009-12-26 02:30:56]:
This patchset introduces eventfd-based API for notifications in cgroups and
implements memory notifications on top of it.
It uses statistics in memory controler to track memory usage.
Output of time(1) on building kernel on
Add a forgotten item into CONTENTS.
Signed-off-by: Kirill A. Shutemov kir...@shutemov.name
---
Documentation/cgroups/cgroups.txt |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Documentation/cgroups/cgroups.txt
b/Documentation/cgroups/cgroups.txt
index 0b33bfe..3bda601
On Sat, Dec 26, 2009 at 3:30 PM, Balbir Singh bal...@linux.vnet.ibm.com wrote:
* Kirill A. Shutemov kir...@shutemov.name [2009-12-26 02:30:56]:
This patchset introduces eventfd-based API for notifications in cgroups and
implements memory notifications on top of it.
It uses statistics in
This patchset introduces eventfd-based API for notifications in cgroups and
implements memory notifications on top of it.
It uses statistics in memory controler to track memory usage.
Output of time(1) on building kernel on tmpfs:
Root cgroup before changes:
make -j2 506.37 user 60.93s
Helper to get memory or mem+swap usage of the cgroup.
Signed-off-by: Kirill A. Shutemov kir...@shutemov.name
Acked-by: Balbir Singh bal...@linux.vnet.ibm.com
---
mm/memcontrol.c | 54 --
1 files changed, 32 insertions(+), 22 deletions(-)
This patch introduces write-only file cgroup.event_control in every
cgroup.
To register new notification handler you need:
- create an eventfd;
- open a control file to be monitored. Callbacks register_event() and
unregister_event() must be defined for the control file;
- write event_fd
Instead of incrementing counter on each page in/out and comparing it
with constant, we set counter to constant, decrement counter on each
page in/out and compare it with zero. We want to make comparing as fast
as possible. On many RISC systems (probably not only RISC) comparing
with zero is more