[RFC][PATCH 0/5] RSS accounting for resource groups

2007-02-05 Thread Patrick.Le-Dot
Hi all, First step for a memory controller : a sane pages accounting for a group of tasks. Based on top of the last multi-hierarchy generic containers patch, against 2.6.20-rc1 sent by P.Menage (Fri, 22 Dec). Patch[1,4] is a back port of the last set of patches sent by Balbir (Fri, 10 Nov) + fi

[RFC][PATCH 1/5] RSS accounting setup

2007-02-05 Thread Patrick.Le-Dot
Basic setup for a memory controller written for resource groups. This patch registers a dummy controller. Signed-off-by: Patrick Le Dot <[EMAIL PROTECTED]> --- include/linux/memctlr.h| 33 +++ init/Kconfig | 11 + kernel/res_group/Makefile |1 kernel/r

[RFC][PATCH 2/5] RSS accounting callbacks

2007-02-05 Thread Patrick.Le-Dot
Add callbacks to allocate and free instances of the controller. Signed-off-by: Patrick Le Dot <[EMAIL PROTECTED]> --- kernel/res_group/memctlr.c | 57 ++--- 1 files changed, 54 insertions(+), 3 deletions(-) diff -puN a/kernel/res_group/memctlr.c b/kern

[RFC][PATCH 4/5] RSS accounting per task

2007-02-05 Thread Patrick.Le-Dot
Debugging purposes : add a /proc//memacct interface to print the rss of a task. Signed-off-by: Patrick Le Dot <[EMAIL PROTECTED]> --- fs/proc/base.c |4 include/linux/memctlr.h|7 + include/linux/rmap.h |6 - kernel/res_group/memctlr.c | 214 ++

[RFC][PATCH 5/5] RSS accounting at the page level

2007-02-05 Thread Patrick.Le-Dot
Add accounting at the page level. Signed-off-by: Patrick Le Dot <[EMAIL PROTECTED]> --- include/linux/mm_types.h | 12 + kernel/res_group/memctlr.c | 98 +++-- 2 files changed, 90 insertions(+), 20 deletions(-) diff -puN a/include/linux/mm_type

[RFC][PATCH 3/5] RSS accounting in the kernel code

2007-02-05 Thread Patrick.Le-Dot
Insert callbacks in the kernel Signed-off-by: Patrick Le Dot <[EMAIL PROTECTED]> --- include/linux/memctlr.h| 15 +++ include/linux/rmap.h |2 + include/linux/sched.h | 11 + kernel/fork.c |6 +++ kernel/res_group/memctlr.c | 90

Re: [ckrm-tech] [RFC][PATCH 5/8] RSS controller task migration support

2006-11-17 Thread Patrick.Le-Dot
> ... > For implementing guarantees, we can use limits. Please see > http://wiki.openvz.org/Containers/Guarantees_for_resources. Nack. This seems to be correct for resources like cpu, disk or network bandwidth but not for the memory just because nobody in this wiki speaks about the kswapd and pag

Re: [ckrm-tech] [RFC][PATCH 5/8] RSS controller task migration support

2006-11-17 Thread Patrick.Le-Dot
On Fri, 17 Nov 2006 14:05:13 + > ... > There are two reasons for wanting memory guarantees > > #1 To be sure a user can't toast the entire box but just their own > compartment (eg web hosting) Well, this seems not a situation to add a guarantee to this user but a limit... > ...