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
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
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
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 ++
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
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
> ...
> 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
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...
> ...
8 matches
Mail list logo