OpenVZ Forum - RDF feed
type: channel
items: [PATCH 08/10] Task Containers(V11): Make cpusets a client of containers

[PATCH 08/10] Task Containers(V11): Make cpusets a client of containers
type: item
description: This patch removes the filesystem support logic from the cpusets system and makes cpusets a container subsystem The "cpuset" filesystem becomes a dummy filesystem; attempts to mount it get passed through to the container filesystem with the appropriate options to emulate the old cpuset filesystem behaviour. Signed-off-by: Paul Menage <menage@google.com> --- Documentation/cpusets.txt | 91 +- fs/proc/base.c | 4 include/linux/container_subsys.h | 6 include/linux/cpuset.h | 12 include/linux/mempolicy.h | 12 include/linux/sched.h | 3 init/Kconfig | 7 kernel/cpuset.c | 1192 +++++++-------------------------------- kernel/exit.c | 2 kernel/fork.c | 3 mm/mempolicy.c | 2 11 files changed, 278 insertions(+), 1056 deletions(-) Index: container-2.6.22-rc6-mm1/Documentation/cpusets.txt ============================================================ ======= --- container-2.6.22-rc6-mm1.orig/Documentation/cpusets.txt +++ container-2.6.22-rc6-mm1/Documentation/cpusets.txt @@ -7,6 +7,7 @@ Written by Simon.Derr@bull.net Portions Copyright (c) 2004-2006 Silicon Graphics, Inc. Modified by Paul Jackson <pj@sgi.com> Modified by Christoph Lameter <clameter@sgi.com> +Modified by Paul Menage <menage@google.com> CONTENTS: ========= @@ -16,10 +17,9 @@ CONTENTS: 1.2 Why are cpusets needed ? 1.3 How are cpusets implemented ? 1.4 What are exclusive cpusets ? - 1.5 What does notify_on_release do ? - 1.6 What is memory_pressure ? - 1.7 What is memory spread ? - 1.8 How do I use cpusets ? + 1.5 What is memory_pressure ? + 1.6 What is memory spread ? + 1.7 How do I use cpusets ? 2. Usage Examples and Syntax 2.1 Basic Usage 2.2 Adding/removing cpus @@ -43,18 +43,19 @@ hierarchy visible in a virtual file syst hooks, beyond what is already present, required to manage dynamic job placement on large systems. -Each task has a pointer to a cpuset. Multiple tasks may reference -the same cpuset. Requests by a task, using the sched_setaffinity(2) -system call to include CPUs in its CPU affinity mask, and using th…
creator: Paul Menage
date: 2007-07-20T18:32:00-00:00