Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-07-01 Thread Daniel Lezcano
On 07/01/2011 03:05 PM, Michael H. Warfield wrote: > On Fri, 2011-07-01 at 09:01 -0400, Michael H. Warfield wrote: >> On Fri, 2011-07-01 at 10:12 +0200, Daniel Lezcano wrote: >>> On 06/27/2011 03:53 PM, Michael H. Warfield wrote: Cool. I now have it running in 3 environments. Two are Fedora

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-07-01 Thread Michael H. Warfield
On Fri, 2011-07-01 at 09:01 -0400, Michael H. Warfield wrote: > On Fri, 2011-07-01 at 10:12 +0200, Daniel Lezcano wrote: > > On 06/27/2011 03:53 PM, Michael H. Warfield wrote: > > > Cool. I now have it running in 3 environments. Two are Fedora 12 (I > > > know, I know, it's on my todo list) i686

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-07-01 Thread Michael H. Warfield
On Fri, 2011-07-01 at 10:12 +0200, Daniel Lezcano wrote: > On 06/27/2011 03:53 PM, Michael H. Warfield wrote: > > Cool. I now have it running in 3 environments. Two are Fedora 12 (I > > know, I know, it's on my todo list) i686 systems with single cgroup > > mounts while the other is my Fedora 15 x

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-07-01 Thread Daniel Lezcano
On 06/27/2011 03:53 PM, Michael H. Warfield wrote: > Cool. I now have it running in 3 environments. Two are Fedora 12 (I > know, I know, it's on my todo list) i686 systems with single cgroup > mounts while the other is my Fedora 15 x86_64 platform. All are running > quite smoothly and lxc-info is

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-27 Thread Michael H. Warfield
On Sun, 2011-06-26 at 18:49 -0500, Serge E. Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > On Sun, 2011-06-26 at 14:00 -0500, Serge E. Hallyn wrote: > > > Quoting Michael H. Warfield (m...@wittsend.com): > > > > > > Thanks, Michael, good catch. > > > > > > > > Now wait a m

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Serge E. Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): > On Sun, 2011-06-26 at 14:00 -0500, Serge E. Hallyn wrote: > > Quoting Michael H. Warfield (m...@wittsend.com): > > > > Thanks, Michael, good catch. > > > > > > Now wait a minute. Is that a typo here: > > > > No it's not, but: > > > > > > char

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Michael H. Warfield
On Sun, 2011-06-26 at 14:00 -0500, Serge E. Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > Thanks, Michael, good catch. > > > > Now wait a minute. Is that a typo here: > > No it's not, but: > > > > char *s = index(retbuf, '.'); > > > > > > If you're doing, in effect, a

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Serge E. Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): Thanks, Michael, good catch. > > Now wait a minute. Is that a typo here: No it's not, but: > > char *s = index(retbuf, '.'); > > > > If you're doing, in effect, a dirname here should that be this: > > > > char *s = index(retbuf, '/'); > > > >

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Michael H. Warfield
On Sun, 2011-06-26 at 13:56 -0400, Michael H. Warfield wrote: > Looking at the sources and Serge's patch... > > On Sun, 2011-06-26 at 13:33 -0400, Michael H. Warfield wrote: > > On Sun, 2011-06-26 at 18:27 +0200, Daniel Lezcano wrote: > > > On 06/26/2011 05:52 PM, Michael H. Warfield wrote: > >

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Michael H. Warfield
Looking at the sources and Serge's patch... On Sun, 2011-06-26 at 13:33 -0400, Michael H. Warfield wrote: > On Sun, 2011-06-26 at 18:27 +0200, Daniel Lezcano wrote: > > On 06/26/2011 05:52 PM, Michael H. Warfield wrote: > > > On Sun, 2011-06-26 at 17:27 +0200, Daniel Lezcano wrote: > > >> On 06

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Michael H. Warfield
On Sun, 2011-06-26 at 18:27 +0200, Daniel Lezcano wrote: > On 06/26/2011 05:52 PM, Michael H. Warfield wrote: > > On Sun, 2011-06-26 at 17:27 +0200, Daniel Lezcano wrote: > >> On 06/26/2011 05:06 PM, Serge E. Hallyn wrote: > >>> Quoting Michael H. Warfield (m...@wittsend.com): > > cd /sys/fs/

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Daniel Lezcano
On 06/26/2011 05:52 PM, Michael H. Warfield wrote: > On Sun, 2011-06-26 at 17:27 +0200, Daniel Lezcano wrote: >> On 06/26/2011 05:06 PM, Serge E. Hallyn wrote: >>> Quoting Michael H. Warfield (m...@wittsend.com): > cd /sys/fs/cgroup >for d in `/bin/ls`; do > echo 1 > $d/cgrou

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Michael H. Warfield
On Sun, 2011-06-26 at 17:27 +0200, Daniel Lezcano wrote: > On 06/26/2011 05:06 PM, Serge E. Hallyn wrote: > > Quoting Michael H. Warfield (m...@wittsend.com): > >>> cd /sys/fs/cgroup > >>>for d in `/bin/ls`; do > >>> echo 1 > $d/cgroup.clone_children > >>>done > >> > >> Doing this st

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Michael H. Warfield
On Sun, 2011-06-26 at 10:06 -0500, Serge E. Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > > cd /sys/fs/cgroup > > >for d in `/bin/ls`; do > > > echo 1 > $d/cgroup.clone_children > > >done > > > > Doing this step alone broke lxc totally for me, with or without

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Daniel Lezcano
On 06/26/2011 05:06 PM, Serge E. Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): >>> cd /sys/fs/cgroup >>>for d in `/bin/ls`; do >>> echo 1 > $d/cgroup.clone_children >>>done >> >> Doing this step alone broke lxc totally for me, with or without the >> patch below. Th

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Serge E. Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): > > cd /sys/fs/cgroup > >for d in `/bin/ls`; do > > echo 1 > $d/cgroup.clone_children > >done > > Doing this step alone broke lxc totally for me, with or without the > patch below. This was on Fedora 15 testing with lxc 0.7.4.2 as wel

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-25 Thread Daniel Lezcano
On 06/25/2011 08:19 PM, Michael H. Warfield wrote: > On Sat, 2011-06-25 at 20:05 +0200, Daniel Lezcano wrote: >> On 06/24/2011 07:54 PM, Serge Hallyn wrote: >>> I.e. with systemd or libcgroup. >>> >>> To do this, instead of looking for one cgroup called 'lxc' or >>> otherwise taking the first cgro

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-25 Thread Michael H. Warfield
On Sat, 2011-06-25 at 20:05 +0200, Daniel Lezcano wrote: > On 06/24/2011 07:54 PM, Serge Hallyn wrote: > > I.e. with systemd or libcgroup. > > > > To do this, instead of looking for one cgroup called 'lxc' or > > otherwise taking the first cgroup we find, we actually create a > > container in ever

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-25 Thread Daniel Lezcano
On 06/24/2011 07:54 PM, Serge Hallyn wrote: > I.e. with systemd or libcgroup. > > To do this, instead of looking for one cgroup called 'lxc' or > otherwise taking the first cgroup we find, we actually create a > container in every mounted cgroup fs. Right now it's done under the > root of each fs.

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-25 Thread Michael H. Warfield
Serge, On Fri, 2011-06-24 at 12:54 -0500, Serge Hallyn wrote: > I.e. with systemd or libcgroup. > > To do this, instead of looking for one cgroup called 'lxc' or > otherwise taking the first cgroup we find, we actually create a > container in every mounted cgroup fs. Right now it's done under t

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-24 Thread Michael H. Warfield
On Fri, 2011-06-24 at 12:54 -0500, Serge Hallyn wrote: > I.e. with systemd or libcgroup. > To do this, instead of looking for one cgroup called 'lxc' or > otherwise taking the first cgroup we find, we actually create a > container in every mounted cgroup fs. Right now it's done under the > root

[Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-24 Thread Serge Hallyn
I.e. with systemd or libcgroup. To do this, instead of looking for one cgroup called 'lxc' or otherwise taking the first cgroup we find, we actually create a container in every mounted cgroup fs. Right now it's done under the root of each fs. We may want to put that under lxc, or, better yet, ma