Skip to contentSkip to conversation

cgroup : remove the ns_cgroup

PATCH In review Daniel Lezcano 8 participants 13 messages Jan 25, 2011 – Jan 28, 2011 5 messages not in the archive

Subsystems (9)
Documentation x86 PowerPC MIPS +5 more subsystems
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cgroup : remove the ns_cgroup

The ns_cgroup is an annoying cgroup at the namespace / cgroup frontier and leads to some problems:

* cgroup creation is out-of-control
* cgroup name can conflict when pids are looping
* it is not possible to have a single process handling a lot of namespaces without falling in a exponential creation time
* we may want to create a namespace without creating a cgroup

The ns_cgroup was replaced by a compatibility flag 'clone_children', where a newly created cgroup will copy the parent cgroup values. The userspace has to manually create a cgroup and add a task to the 'tasks' file.

This patch removes the ns_cgroup as suggested in the following thread:

https://lists.linux-foundation.org/pipermail/containers/2009-June/018616.html

The 'cgroup_clone' function is removed because it is no longer used.

---
 Documentation/cgroups/cgroups.txt      |    2 +-
 arch/mips/configs/bcm47xx_defconfig    |    1 -
 arch/mn10300/configs/asb2364_defconfig |    1 -
 arch/powerpc/configs/ppc6xx_defconfig  |    1 -
 arch/powerpc/configs/pseries_defconfig |    1 -
 arch/sh/configs/apsh4ad0a_defconfig    |    1 -
 arch/sh/configs/sdk7786_defconfig      |    1 -
 arch/sh/configs/se7206_defconfig       |    1 -
 arch/sh/configs/shx3_defconfig         |    1 -
 arch/sh/configs/urquell_defconfig      |    1 -
 arch/x86/configs/i386_defconfig        |    1 -
 arch/x86/configs/x86_64_defconfig      |    1 -
 include/linux/cgroup.h                 |    3 -
 include/linux/cgroup_subsys.h          |    6 --
 include/linux/nsproxy.h                |    9 ---
 init/Kconfig                           |    8 --
 kernel/Makefile                        |    1 -
 kernel/cgroup.c                        |  116 -------------------------------
 kernel/cpuset.c                        |    7 +-
 kernel/fork.c                          |    6 --
 kernel/ns_cgroup.c                     |  118 --------------------------------
 kernel/nsproxy.c                       |    4 -
 22 files changed, 4 insertions(+), 287 deletions(-)
 delete mode 100644 kernel/ns_cgroup.c
Documentation/cgroups/cgroups.txt +1 -1
index 44b8b7a..ac759b6 100644
@@ -618,7 +618,7 @@ always handled well.
 void post_clone(struct cgroup_subsys *ss, struct cgroup *cgrp)
 (cgroup_mutex held by caller)
 
-Called at the end of cgroup_clone() to do any parameter
+Called during cgroup_create() to do any parameter
 initialization which might be required before a task could attach.  For
 example in cpusets, no task may attach before 'cpus' and 'mems' are set
 up.
arch/mips/configs/bcm47xx_defconfig +0 -1
index 927d58b..c4338e0 100644
@@ -16,7 +16,6 @@ CONFIG_TASK_IO_ACCOUNTING=y
 CONFIG_AUDIT=y
 CONFIG_TINY_RCU=y
 CONFIG_CGROUPS=y
-CONFIG_CGROUP_NS=y
 CONFIG_CGROUP_CPUACCT=y
 CONFIG_RELAY=y
 CONFIG_BLK_DEV_INITRD=y
arch/mn10300/configs/asb2364_defconfig +0 -1
index 83ce2f2..d38391a 100644
@@ -8,7 +8,6 @@ CONFIG_TASK_XACCT=y
 CONFIG_TASK_IO_ACCOUNTING=y
 CONFIG_LOG_BUF_SHIFT=14
 CONFIG_CGROUPS=y
-CONFIG_CGROUP_NS=y
 CONFIG_CGROUP_FREEZER=y
 CONFIG_CGROUP_DEVICE=y
 CONFIG_CGROUP_CPUACCT=y
arch/powerpc/configs/ppc6xx_defconfig +0 -1
index 9d64a68..9b253f6 100644
@@ -10,7 +10,6 @@ CONFIG_TASK_XACCT=y
 CONFIG_TASK_IO_ACCOUNTING=y
 CONFIG_AUDIT=y
 CONFIG_CGROUPS=y
-CONFIG_CGROUP_NS=y
 CONFIG_CGROUP_DEVICE=y
 CONFIG_CGROUP_CPUACCT=y
 CONFIG_RESOURCE_COUNTERS=y
arch/powerpc/configs/pseries_defconfig +0 -1
index f87f0e1..972587f 100644
@@ -15,7 +15,6 @@ CONFIG_AUDITSYSCALL=y
 CONFIG_IKCONFIG=y
 CONFIG_IKCONFIG_PROC=y
 CONFIG_CGROUPS=y
-CONFIG_CGROUP_NS=y
 CONFIG_CGROUP_FREEZER=y
 CONFIG_CGROUP_DEVICE=y
 CONFIG_CPUSETS=y
arch/sh/configs/apsh4ad0a_defconfig +0 -1
index e71a531..f722a3d 100644
@@ -7,7 +7,6 @@ CONFIG_IKCONFIG=y
 CONFIG_IKCONFIG_PROC=y
 CONFIG_LOG_BUF_SHIFT=14
 CONFIG_CGROUPS=y
-CONFIG_CGROUP_NS=y
 CONFIG_CGROUP_FREEZER=y
 CONFIG_CGROUP_DEVICE=y
 CONFIG_CGROUP_CPUACCT=y
arch/sh/configs/sdk7786_defconfig +0 -1
index dc4a2eb..9fdabe2 100644
@@ -12,7 +12,6 @@ CONFIG_IKCONFIG=y
 CONFIG_IKCONFIG_PROC=y
 CONFIG_CGROUPS=y
 CONFIG_CGROUP_DEBUG=y
-CONFIG_CGROUP_NS=y
 CONFIG_CGROUP_FREEZER=y
 CONFIG_CGROUP_DEVICE=y
 CONFIG_CPUSETS=y
arch/sh/configs/se7206_defconfig +0 -1
index a468ff2..72c3fad 100644
@@ -8,7 +8,6 @@ CONFIG_RCU_TRACE=y
 CONFIG_LOG_BUF_SHIFT=14
 CONFIG_CGROUPS=y
 CONFIG_CGROUP_DEBUG=y
-CONFIG_CGROUP_NS=y
 CONFIG_CGROUP_DEVICE=y
 CONFIG_CGROUP_CPUACCT=y
 CONFIG_RESOURCE_COUNTERS=y
arch/sh/configs/shx3_defconfig +0 -1
index 3f92d37..6bb4130 100644
@@ -9,7 +9,6 @@ CONFIG_IKCONFIG=y
 CONFIG_IKCONFIG_PROC=y
 CONFIG_LOG_BUF_SHIFT=14
 CONFIG_CGROUPS=y
-CONFIG_CGROUP_NS=y
 CONFIG_CGROUP_FREEZER=y
 CONFIG_CGROUP_DEVICE=y
 CONFIG_CGROUP_CPUACCT=y
arch/sh/configs/urquell_defconfig +0 -1
index 7b3daec..8bfa4d0 100644
@@ -9,7 +9,6 @@ CONFIG_IKCONFIG_PROC=y
 CONFIG_LOG_BUF_SHIFT=14
 CONFIG_CGROUPS=y
 CONFIG_CGROUP_DEBUG=y
-CONFIG_CGROUP_NS=y
 CONFIG_CGROUP_FREEZER=y
 CONFIG_CGROUP_DEVICE=y
 CONFIG_CPUSETS=y
arch/x86/configs/i386_defconfig +0 -1
index 6f98726..2bf1805 100644
@@ -10,7 +10,6 @@ CONFIG_TASK_IO_ACCOUNTING=y
 CONFIG_AUDIT=y
 CONFIG_LOG_BUF_SHIFT=18
 CONFIG_CGROUPS=y
-CONFIG_CGROUP_NS=y
 CONFIG_CGROUP_FREEZER=y
 CONFIG_CPUSETS=y
 CONFIG_CGROUP_CPUACCT=y
arch/x86/configs/x86_64_defconfig +0 -1
index ee01a9d..22a0dc8 100644
@@ -11,7 +11,6 @@ CONFIG_TASK_IO_ACCOUNTING=y
 CONFIG_AUDIT=y
 CONFIG_LOG_BUF_SHIFT=18
 CONFIG_CGROUPS=y
-CONFIG_CGROUP_NS=y
 CONFIG_CGROUP_FREEZER=y
 CONFIG_CPUSETS=y
 CONFIG_CGROUP_CPUACCT=y
include/linux/cgroup.h +0 -3
index ce104e3..d0509a3 100644
@@ -552,9 +552,6 @@ static inline struct cgroup* task_cgroup(struct task_struct *task,
 	return task_subsys_state(task, subsys_id)->cgroup;
 }
 
-int cgroup_clone(struct task_struct *tsk, struct cgroup_subsys *ss,
-							char *nodename);
-
 /* A cgroup_iter should be treated as an opaque object */
 struct cgroup_iter {
 	struct list_head *cg_link;
include/linux/cgroup_subsys.h +0 -6
index ccefff0..4ba5259 100644
@@ -19,12 +19,6 @@ SUBSYS(debug)
 
 /* */
 
-#ifdef CONFIG_CGROUP_NS
-SUBSYS(ns)
-#endif
-
-/* */
-
 #ifdef CONFIG_CGROUP_SCHED
 SUBSYS(cpu_cgroup)
 #endif
include/linux/nsproxy.h +0 -9
index 7b370c7..50d20ab 100644
@@ -81,13 +81,4 @@ static inline void get_nsproxy(struct nsproxy *ns)
 	atomic_inc(&ns->count);
 }
 
-#ifdef CONFIG_CGROUP_NS
-int ns_cgroup_clone(struct task_struct *tsk, struct pid *pid);
-#else
-static inline int ns_cgroup_clone(struct task_struct *tsk, struct pid *pid)
-{
-	return 0;
-}
-#endif
-
 #endif
init/Kconfig +0 -8
index 1379adc..7acdfb4 100644
@@ -582,14 +582,6 @@ config CGROUP_DEBUG
 
 	  Say N if unsure.
 
-config CGROUP_NS
-	bool "Namespace cgroup subsystem"
-	help
-	  Provides a simple namespace cgroup subsystem to
-	  provide hierarchical naming of sets of namespaces,
-	  for instance virtual servers and checkpoint/restart
-	  jobs.
-
 config CGROUP_FREEZER
 	bool "Freezer cgroup subsystem"
 	help
kernel/Makefile +0 -1
index 353d3fe..bd1b486 100644
@@ -62,7 +62,6 @@ obj-$(CONFIG_COMPAT) += compat.o
 obj-$(CONFIG_CGROUPS) += cgroup.o
 obj-$(CONFIG_CGROUP_FREEZER) += cgroup_freezer.o
 obj-$(CONFIG_CPUSETS) += cpuset.o
-obj-$(CONFIG_CGROUP_NS) += ns_cgroup.o
 obj-$(CONFIG_UTS_NS) += utsname.o
 obj-$(CONFIG_USER_NS) += user_namespace.o
 obj-$(CONFIG_PID_NS) += pid_namespace.o
kernel/cgroup.c +0 -116

122 lines not on this page · raw message

kernel/cpuset.c +3 -4
index 4349935..10f1835 100644
@@ -1828,10 +1828,9 @@ static int cpuset_populate(struct cgroup_subsys *ss, struct cgroup *cont)
 }
 
 /*
- * post_clone() is called at the end of cgroup_clone().
- * 'cgroup' was just created automatically as a result of
- * a cgroup_clone(), and the current task is about to
- * be moved into 'cgroup'.
+ * post_clone() is called during cgroup_create() when the
+ * clone_children mount argument was specified.  The cgroup
+ * can not yet have any tasks.
  *
  * Currently we refuse to set up the cgroup - thereby
  * refusing the task to be entered, and as a result refusing
kernel/fork.c +0 -6
index 25e4291..4326cbe 100644
@@ -1193,12 +1193,6 @@ static struct task_struct *copy_process(unsigned long clone_flags,
 	if (clone_flags & CLONE_THREAD)
 		p->tgid = current->tgid;
 
-	if (current->nsproxy != p->nsproxy) {
-		retval = ns_cgroup_clone(p, pid);
-		if (retval)
-			goto bad_fork_free_pid;
-	}
-
 	p->set_child_tid = (clone_flags & CLONE_CHILD_SETTID) ? child_tidptr : NULL;
 	/*
 	 * Clear TID on mm_release()?
kernel/ns_cgroup.c deleted +0 -118

118 lines not on this page · raw message

kernel/nsproxy.c +0 -4
index f74e6c0..014a90d 100644
@@ -198,10 +198,6 @@ int unshare_nsproxy_namespaces(unsigned long unshare_flags,
 		goto out;
 	}
 
-	err = ns_cgroup_clone(current, task_pid(current));
-	if (err)
-		put_nsproxy(*new_nsp);
-
 out:
 	return err;
 }
Signature · 1 line
1.7.1
#2 lore raw
In reply to a message not in the archive
Quoted 28 lines · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel Lezcano…

The ns_cgroup is an annoying cgroup at the namespace / cgroup frontier and leads to some problems:

* cgroup creation is out-of-control
* cgroup name can conflict when pids are looping
* it is not possible to have a single process handling a lot of namespaces without falling in a exponential creation time
* we may want to create a namespace without creating a cgroup

The ns_cgroup was replaced by a compatibility flag 'clone_children', where a newly created cgroup will copy the parent cgroup values. The userspace has to manually create a cgroup and add a task to the 'tasks' file.

This patch removes the ns_cgroup as suggested in the following thread:

https://lists.linux-foundation.org/pipermail/containers/2009-June/018616.html

The 'cgroup_clone' function is removed because it is no longer used.

Cc Eric W. Biederman <ebiederm-aS9lmoZGLiVWk0Htik3J/[email protected]>
Cc Jamal Hadi Salim <hadi-fAAogVwAN2Kw5LPnMra/[email protected]>
Quoted 3 lines

...

 22 files changed, 4 insertions(+), 287 deletions(-)

I didn't see that one coming.

This change is userspace-visible, is it not? What are the implications of this? There's some discussion in that nearly-two-year-old thread regarding making provision for back-compatibility but I'm not seeing such things in this patch?

maintainer
#4 lore raw
In reply to Daniel Lezcano
Quoted 28 lines · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel Lezcano <[email protected]>…

The ns_cgroup is an annoying cgroup at the namespace / cgroup frontier and leads to some problems:

* cgroup creation is out-of-control
* cgroup name can conflict when pids are looping
* it is not possible to have a single process handling a lot of namespaces without falling in a exponential creation time
* we may want to create a namespace without creating a cgroup

The ns_cgroup was replaced by a compatibility flag 'clone_children', where a newly created cgroup will copy the parent cgroup values. The userspace has to manually create a cgroup and add a task to the 'tasks' file.

This patch removes the ns_cgroup as suggested in the following thread:

https://lists.linux-foundation.org/pipermail/containers/2009-June/018616.html

The 'cgroup_clone' function is removed because it is no longer used.

Quoted 3 lines

...

 22 files changed, 4 insertions(+), 287 deletions(-)

I didn't see that one coming.

This change is userspace-visible, is it not? What are the implications of this? There's some discussion in that nearly-two-year-old thread regarding making provision for back-compatibility but I'm not seeing such things in this patch?

#3 lore raw
In reply to a message not in the archive
Quoted 1 line · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel Lezcano…

This patch removes the ns_cgroup as suggested in the following thread:

I had this patch queued up in September last year, but dropped it. Why did I do that?

maintainer
#5 lore raw
In reply to Daniel Lezcano
Quoted 1 line · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel Lezcano <[email protected]>…

This patch removes the ns_cgroup as suggested in the following thread:

I had this patch queued up in September last year, but dropped it. Why did I do that?

Acked-by Paul Menage
#6 lore raw
Quoted 7 lines · Andrew Morton
Quoted 1 line · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel Lezcano <[email protected]>…

This patch removes the ns_cgroup as suggested in the following thread:

I had this patch queued up in September last year, but dropped it. Why did I do that?

Because you wanted to wait for some time for users (if any) to notice this coming change.

Author: Daniel Lezcano <[email protected]>
Date:   Wed Oct 27 15:33:38 2010 -0700

cgroup: notify ns_cgroup deprecated

The ns_cgroup will be removed very soon. Let's warn, for this version, ns_cgroup is deprecated.

Make ns_cgroup and clone_children exclusive. If the clone_children is set and the ns_cgroup is mounted, let's fail with EINVAL when the ns_cgroup subsys is created (a printk will help the user to understand why the creation fails).

Update the feature remove schedule file with the deprecated ns_cgroup.

Acked-by Paul Menage
#17 lore raw
In reply to a message not in the archive
Quoted 7 lines · Andrew Morton
Quoted 1 line · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel Lezcano…

This patch removes the ns_cgroup as suggested in the following thread:

I had this patch queued up in September last year, but dropped it. Why did I do that?

Because you wanted to wait for some time for users (if any) to notice this coming change.

Author: Daniel Lezcano <[email protected]>
Date:   Wed Oct 27 15:33:38 2010 -0700

cgroup: notify ns_cgroup deprecated

The ns_cgroup will be removed very soon. Let's warn, for this version, ns_cgroup is deprecated.

Make ns_cgroup and clone_children exclusive. If the clone_children is set and the ns_cgroup is mounted, let's fail with EINVAL when the ns_cgroup subsys is created (a printk will help the user to understand why the creation fails).

Update the feature remove schedule file with the deprecated ns_cgroup.

#8 lore raw
In reply to a message not in the archive
Quoted 25 lines · On Thu, 27 Jan 2011 09:08:51 +0800 Li Zefan…
Quoted 7 lines · Andrew Morton
Quoted 1 line · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel Lezcano…

This patch removes the ns_cgroup as suggested in the following thread:

I had this patch queued up in September last year, but dropped it. Why did I do that?

Because you wanted to wait for some time for users (if any) to notice this coming change.

Author: Daniel Lezcano <[email protected]>
Date:   Wed Oct 27 15:33:38 2010 -0700

cgroup: notify ns_cgroup deprecated

The ns_cgroup will be removed very soon. Let's warn, for this version, ns_cgroup is deprecated.

Make ns_cgroup and clone_children exclusive. If the clone_children is set and the ns_cgroup is mounted, let's fail with EINVAL when the ns_cgroup subsys is created (a printk will help the user to understand why the creation fails).

Quoted 6 lines

Update the feature remove schedule file with the deprecated ns_cgroup.

ooh, that was clever of me.

Here is the text which was missing from the changelog:

This is a userspace-visible change. Commit 45531757b45c ("cgroup:
notify ns_cgroup deprecated") (merged into 2.6.27) caused the kernel to emit a printk warning users that the feature is planned for removal. Since that time we have heard from XXX users who were affected by this.

Please provide XXX.

How do we know that 2.6.37->2.6.38 is long enough? Will any major distros be released containing this warning in that timeframe? I doubt it.

maintainer
#9 lore raw
In reply to Li Zefan
Quoted 25 lines · On Thu, 27 Jan 2011 09:08:51 +0800 Li Zefan <[email protected]> wrote:
Quoted 7 lines · Andrew Morton
Quoted 1 line · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel Lezcano <[email protected]>…

This patch removes the ns_cgroup as suggested in the following thread:

I had this patch queued up in September last year, but dropped it. Why did I do that?

Because you wanted to wait for some time for users (if any) to notice this coming change.

Author: Daniel Lezcano <[email protected]>
Date:   Wed Oct 27 15:33:38 2010 -0700

cgroup: notify ns_cgroup deprecated

The ns_cgroup will be removed very soon. Let's warn, for this version, ns_cgroup is deprecated.

Make ns_cgroup and clone_children exclusive. If the clone_children is set and the ns_cgroup is mounted, let's fail with EINVAL when the ns_cgroup subsys is created (a printk will help the user to understand why the creation fails).

Quoted 6 lines

Update the feature remove schedule file with the deprecated ns_cgroup.

ooh, that was clever of me.

Here is the text which was missing from the changelog:

This is a userspace-visible change. Commit 45531757b45c ("cgroup:
notify ns_cgroup deprecated") (merged into 2.6.27) caused the kernel to emit a printk warning users that the feature is planned for removal. Since that time we have heard from XXX users who were affected by this.

Please provide XXX.

How do we know that 2.6.37->2.6.38 is long enough? Will any major distros be released containing this warning in that timeframe? I doubt it.

#11 lore raw
In reply to a message not in the archive
Quoted 35 lines · Andrew Morton
Quoted 23 lines · On Thu, 27 Jan 2011 09:08:51 +0800 Li Zefan<lizf-BthXqXjhjHXQFUHtdCDX3A@public.…
Quoted 6 lines · Andrew Morton
Quoted 1 line · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel…

This patch removes the ns_cgroup as suggested in the following thread:

I had this patch queued up in September last year, but dropped it. Why did I do that?

Because you wanted to wait for some time for users (if any) to notice this coming change.

Author: Daniel Lezcano<[email protected]>
Date:   Wed Oct 27 15:33:38 2010 -0700

cgroup: notify ns_cgroup deprecated

The ns_cgroup will be removed very soon. Let's warn, for this version, ns_cgroup is deprecated.

Make ns_cgroup and clone_children exclusive. If the clone_children is set and the ns_cgroup is mounted, let's fail with EINVAL when the ns_cgroup subsys is created (a printk will help the user to understand why the creation fails).

Quoted 6 lines

Update the feature remove schedule file with the deprecated ns_cgroup.

ooh, that was clever of me.

Here is the text which was missing from the changelog:

Quoted 7 lines

This is a userspace-visible change. Commit 45531757b45c ("cgroup:
notify ns_cgroup deprecated") (merged into 2.6.27) caused the kernel to emit a printk warning users that the feature is planned for removal. Since that time we have heard from XXX users who were affected by this.

Please provide XXX.

Ok, AFAIK nobody makes use of the ns_cgroup except the LXC userspace tools which I maintain and where
the backward compatibility with the ns_cgroup and the clone_children flag is already implemented.
Since today nobody seems to be affected by this.

I Cc'ed the libvirt mailing list.

Quoted 3 lines

How do we know that 2.6.37->2.6.38 is long enough? Will any major distros be released containing this warning in that timeframe? I doubt it.

Hmm, maybe it is too short but I don't think someone will complain about this feature removal.
Google chromium is using the namespaces, hence a lot of cgroup is created on the system. The vsftpd and some pam modules uses the namespaces too.
I won't be surprised if one of these applications fails with 'clone' returning EEXIST ...

#12 lore raw
In reply to Andrew Morton
Quoted 35 lines · Andrew Morton
Quoted 23 lines · On Thu, 27 Jan 2011 09:08:51 +0800 Li Zefan<[email protected]> wrote:
Quoted 6 lines · Andrew Morton
Quoted 1 line · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel Lezcano<[email protected]>…

This patch removes the ns_cgroup as suggested in the following thread:

I had this patch queued up in September last year, but dropped it. Why did I do that?

Because you wanted to wait for some time for users (if any) to notice this coming change.

Author: Daniel Lezcano<[email protected]>
Date:   Wed Oct 27 15:33:38 2010 -0700

cgroup: notify ns_cgroup deprecated

The ns_cgroup will be removed very soon. Let's warn, for this version, ns_cgroup is deprecated.

Make ns_cgroup and clone_children exclusive. If the clone_children is set and the ns_cgroup is mounted, let's fail with EINVAL when the ns_cgroup subsys is created (a printk will help the user to understand why the creation fails).

Quoted 6 lines

Update the feature remove schedule file with the deprecated ns_cgroup.

ooh, that was clever of me.

Here is the text which was missing from the changelog:

Quoted 7 lines

This is a userspace-visible change. Commit 45531757b45c ("cgroup:
notify ns_cgroup deprecated") (merged into 2.6.27) caused the kernel to emit a printk warning users that the feature is planned for removal. Since that time we have heard from XXX users who were affected by this.

Please provide XXX.

Ok, AFAIK nobody makes use of the ns_cgroup except the LXC userspace tools which I maintain and where the backward compatibility with the ns_cgroup and the clone_children flag is already implemented. Since today nobody seems to be affected by this.

I Cc'ed the libvirt mailing list.

Quoted 3 lines

How do we know that 2.6.37->2.6.38 is long enough? Will any major distros be released containing this warning in that timeframe? I doubt it.

Hmm, maybe it is too short but I don't think someone will complain about this feature removal.
Google chromium is using the namespaces, hence a lot of cgroup is created on the system. The vsftpd and some pam modules uses the namespaces too. I won't be surprised if one of these applications fails with 'clone' returning EEXIST ...

#14 lore raw
In reply to a message not in the archive
Quoted 44 lines · Daniel Lezcano
Quoted 35 lines · Andrew Morton
Quoted 23 lines · On Thu, 27 Jan 2011 09:08:51 +0800 Li Zefan<lizf-BthXqXjhjHXQFUHtdCDX3A@public.…
Quoted 6 lines · Andrew Morton
Quoted 1 line · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel…

This patch removes the ns_cgroup as suggested in the following thread:

I had this patch queued up in September last year, but dropped it. Why did I do that?

Because you wanted to wait for some time for users (if any) to notice this coming change.

Author: Daniel Lezcano<[email protected]>
Date:   Wed Oct 27 15:33:38 2010 -0700

cgroup: notify ns_cgroup deprecated

The ns_cgroup will be removed very soon. Let's warn, for this version, ns_cgroup is deprecated.

Make ns_cgroup and clone_children exclusive. If the clone_children is set and the ns_cgroup is mounted, let's fail with EINVAL when the ns_cgroup subsys is created (a printk will help the user to understand why the creation fails).

Quoted 6 lines

Update the feature remove schedule file with the deprecated ns_cgroup.

ooh, that was clever of me.

Here is the text which was missing from the changelog:

Quoted 7 lines

This is a userspace-visible change. Commit 45531757b45c ("cgroup:
notify ns_cgroup deprecated") (merged into 2.6.27) caused the kernel to emit a printk warning users that the feature is planned for removal. Since that time we have heard from XXX users who were affected by this.

Please provide XXX.

Quoted 7 lines

Ok, AFAIK nobody makes use of the ns_cgroup except the LXC userspace tools which I maintain and where
the backward compatibility with the ns_cgroup and the clone_children flag is already implemented.
Since today nobody seems to be affected by this.

I Cc'ed the libvirt mailing list.

Removing 'ns_cgroup' won't impact libvirt's container support in any negative way, so fine by me.

Regards,
Daniel

#15 lore raw
In reply to Daniel Lezcano
Quoted 44 lines · Daniel Lezcano
Quoted 35 lines · Andrew Morton
Quoted 23 lines · On Thu, 27 Jan 2011 09:08:51 +0800 Li Zefan<[email protected]> wrote:
Quoted 6 lines · Andrew Morton
Quoted 1 line · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel Lezcano<[email protected]>…

This patch removes the ns_cgroup as suggested in the following thread:

I had this patch queued up in September last year, but dropped it. Why did I do that?

Because you wanted to wait for some time for users (if any) to notice this coming change.

Author: Daniel Lezcano<[email protected]>
Date:   Wed Oct 27 15:33:38 2010 -0700

cgroup: notify ns_cgroup deprecated

The ns_cgroup will be removed very soon. Let's warn, for this version, ns_cgroup is deprecated.

Make ns_cgroup and clone_children exclusive. If the clone_children is set and the ns_cgroup is mounted, let's fail with EINVAL when the ns_cgroup subsys is created (a printk will help the user to understand why the creation fails).

Quoted 6 lines

Update the feature remove schedule file with the deprecated ns_cgroup.

ooh, that was clever of me.

Here is the text which was missing from the changelog:

Quoted 7 lines

This is a userspace-visible change. Commit 45531757b45c ("cgroup:
notify ns_cgroup deprecated") (merged into 2.6.27) caused the kernel to emit a printk warning users that the feature is planned for removal. Since that time we have heard from XXX users who were affected by this.

Please provide XXX.

Quoted 7 lines

Ok, AFAIK nobody makes use of the ns_cgroup except the LXC userspace tools which I maintain and where
the backward compatibility with the ns_cgroup and the clone_children flag is already implemented.
Since today nobody seems to be affected by this.

I Cc'ed the libvirt mailing list.

Removing 'ns_cgroup' won't impact libvirt's container support in any negative way, so fine by me.

Regards,
Daniel