[Devel] [PATCH RFC v1 0/3] cgroup notifications API and memory thresholds

Kirill A. Shutemov kirill at shutemov.name
Fri Nov 27 03:55:01 PST 2009


This patchset introduces eventfd-based API for notifications in cgroups and
implements memory notifications on top of it.

It implements memory notifications using res_counter. Since root cgroup
doesn't use res_counter for accounting, notification mechanism will not
work for root cgroup.

TODO:
 - memory thresholds on root cgroup;
 - documentation.

v0 -> v1:
 - memsw support implemented.

Kirill A. Shutemov (3):
  cgroup: implement eventfd-based generic API for notifications
  res_counter: implement thresholds
  memcg: implement memory thresholds

 include/linux/cgroup.h      |    8 ++
 include/linux/res_counter.h |   44 +++++++++++
 kernel/cgroup.c             |  181 ++++++++++++++++++++++++++++++++++++++++++-
 kernel/res_counter.c        |    4 +
 mm/memcontrol.c             |  149 +++++++++++++++++++++++++++++++++++
 5 files changed, 385 insertions(+), 1 deletions(-)

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list