[Devel] Re: [PATCH v3 0/4] cgroup notifications API and memory thresholds

2009-12-26 Thread Balbir Singh
* 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

[Devel] [PATCH] [TRIVIAL] cgroups: fix CONTENTS in cgroups documentation

2009-12-26 Thread Kirill A. Shutemov
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

[Devel] Re: [PATCH v3 0/4] cgroup notifications API and memory thresholds

2009-12-26 Thread Kirill A. Shutemov
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

[Devel] [PATCH v4 0/4] cgroup notifications API and memory thresholds

2009-12-26 Thread Kirill A. Shutemov
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

[Devel] [PATCH v4 2/4] memcg: extract mem_group_usage() from mem_cgroup_read()

2009-12-26 Thread Kirill A. Shutemov
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(-)

[Devel] [PATCH v4 1/4] cgroup: implement eventfd-based generic API for notifications

2009-12-26 Thread Kirill A. Shutemov
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

[Devel] [PATCH v4 3/4] memcg: rework usage of stats by soft limit

2009-12-26 Thread Kirill A. Shutemov
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