Re: [lxc-devel] Change rootfs pinning mechnism

2013-09-16 Thread Jäkel , Guido
Serge: > Will it use the same name every time? Will it eventually go away? I don’t' know but I expect it will get some ID which represents the file reference on the NFS server. And it "disappear" (, i.e. it will be deleted in the normal way), if the filehandle is closed. Other NFS clients will

[lxc-devel] traffic scheduling from linux containers

2013-09-16 Thread Didi
Hello All, I have designed an algorithm of how to schedule different traffic from three linux containers to be transmitted to one receiver. I need help of how and where to implement it in linux containers. Should I modify the cgroups? if not where else should I go to implement my algorithm. Thank

Re: [lxc-devel] traffic scheduling from linux containers

2013-09-16 Thread Serge Hallyn
Quoting Didi (siyana...@gmail.com): > Hello All, > > I have designed an algorithm of how to schedule different traffic from three > linux containers to be transmitted to one receiver. I need help of how and > where to implement it in linux containers. Should I modify the cgroups? if > not where el

Re: [lxc-devel] [Lxc-users] Working LXC templates?

2013-09-16 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): > So, all of this has led Serge to list me on the roster for the > LinuxPlumbers conference as the LXC "systemd expert". I'll get even > with him later next week for that one... Lol! Buy you a beer thu night? :) -serge --

Re: [lxc-devel] [PATCH] Add get_interfaces to the API - v2

2013-09-16 Thread Stéphane Graber
On Mon, Sep 16, 2013 at 02:54:44PM -0400, S.Çağlar Onur wrote: > On Mon, Sep 16, 2013 at 2:39 PM, Stéphane Graber wrote: > > > On Mon, Sep 16, 2013 at 02:26:47PM -0400, S.Çağlar Onur wrote: > > > get_ips accepts an interface name as a parameter but there was no > > > way to get the interfaces name

Re: [lxc-devel] [PATCH] Add get_interfaces to the API - v2

2013-09-16 Thread S . Çağlar Onur
Hi Stéphane, On Mon, Sep 16, 2013 at 3:04 PM, Stéphane Graber wrote: > On Mon, Sep 16, 2013 at 02:54:44PM -0400, S.Çağlar Onur wrote: > > On Mon, Sep 16, 2013 at 2:39 PM, Stéphane Graber >wrote: > > > > > On Mon, Sep 16, 2013 at 02:26:47PM -0400, S.Çağlar Onur wrote: > > > > get_ips accepts an i

[lxc-devel] [PATCH] add arguments with getopt to concurrent tester

2013-09-16 Thread Dwight Engen
- add ability to run for multiple iterations - can also run non-threaded for comparison to threaded case Signed-off-by: Dwight Engen --- Hi Guys, Serge I hope you don't mind I changed this to use getopt since there are a couple of things I'm using it for at the moment (ie. fixing up the fd leaks

Re: [lxc-devel] [PATCH] make process_lock return void

2013-09-16 Thread Dwight Engen
On Mon, 16 Sep 2013 15:59:45 -0400 Stéphane Graber wrote: > On Mon, Sep 16, 2013 at 02:58:51PM -0500, Serge Hallyn wrote: > > Quoting Serge Hallyn (serge.hal...@ubuntu.com): > > > pthread_mutex_lock() will only return an error if it was set to > > > PTHREAD_MUTEX_ERRORCHECK and we are recursively

[lxc-devel] [PATCH] .gitignore generated Japanese manpages

2013-09-16 Thread Dwight Engen
Signed-off-by: Dwight Engen --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 0061609..84c060f 100644 --- a/.gitignore +++ b/.gitignore @@ -105,6 +105,9 @@ config/lt*.m4 doc/*.1 doc/*.5 doc/*.7 +doc/ja/*.1 +doc/ja/*.5 +doc/ja/*.7 doc/legacy/*.

[lxc-devel] [lxc/lxc] 72899b: .gitignore generated Japanese manpages

2013-09-16 Thread GitHub
Branch: refs/heads/staging Home: https://github.com/lxc/lxc Commit: 72899b34f167e859edfd3b1c60a97ccf41a48cff https://github.com/lxc/lxc/commit/72899b34f167e859edfd3b1c60a97ccf41a48cff Author: Dwight Engen Date: 2013-09-16 (Mon, 16 Sep 2013) Changed paths: M .gitignore

[lxc-devel] [PATCH] Add get_interfaces to the API - v2

2013-09-16 Thread S . Çağlar Onur
get_ips accepts an interface name as a parameter but there was no way to get the interfaces names from the container. This patch introduces a new get_interfaces call to the API so that users can obtain the name of the interfaces. Signed-off-by: S.Çağlar Onur --- src/lxc/lxccontainer.c | 117

[lxc-devel] [PATCH] make process_lock return void

2013-09-16 Thread Serge Hallyn
pthread_mutex_lock() will only return an error if it was set to PTHREAD_MUTEX_ERRORCHECK and we are recursively calling it (and would otherwise have deadlocked). If that's the case then log a message for future debugging and exit. Trying to "recover" at that point is madness. Signed-off-by: Serg

Re: [lxc-devel] [PATCH] tests: Introduce lxc-test-concurrent for testing basic actions concurrently

2013-09-16 Thread Serge Hallyn
So, the basic lxc-test-concurrent now passes for me with both busybox and ubuntu templates. That's because the daemonized starts are mutexed from each other just fine. However, I expect to see problems if we did start in parallel with things like wait. (I'll play around) -serge ---

Re: [lxc-devel] [PATCH] .gitignore generated Japanese manpages

2013-09-16 Thread Stéphane Graber
On Mon, Sep 16, 2013 at 04:25:38PM -0400, Dwight Engen wrote: > Signed-off-by: Dwight Engen Acked-by: Stéphane Graber > --- > .gitignore | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/.gitignore b/.gitignore > index 0061609..84c060f 100644 > --- a/.gitignore > +++ b/.gitignore >

Re: [lxc-devel] [PATCH] Add get_interfaces to the API - v2

2013-09-16 Thread Stéphane Graber
On Mon, Sep 16, 2013 at 02:26:47PM -0400, S.Çağlar Onur wrote: > get_ips accepts an interface name as a parameter but there was no > way to get the interfaces names from the container. This patch > introduces a new get_interfaces call to the API so that users > can obtain the name of the interfaces

[lxc-devel] [lxc/lxc] beb6d9: add arguments with getopt to concurrent tester

2013-09-16 Thread GitHub
Branch: refs/heads/staging Home: https://github.com/lxc/lxc Commit: beb6d93ee2b449ae2ea53125be2f198d15d8f8e8 https://github.com/lxc/lxc/commit/beb6d93ee2b449ae2ea53125be2f198d15d8f8e8 Author: Dwight Engen Date: 2013-09-16 (Mon, 16 Sep 2013) Changed paths: M src/tests/con

[lxc-devel] [lxc/lxc] 4d7bcf: ubuntu templates: make pstore fstab entry optional

2013-09-16 Thread GitHub
Branch: refs/heads/staging Home: https://github.com/lxc/lxc Commit: 4d7bcfb638c5c4907e8539aa09d41bb1de08a097 https://github.com/lxc/lxc/commit/4d7bcfb638c5c4907e8539aa09d41bb1de08a097 Author: Serge Hallyn Date: 2013-09-16 (Mon, 16 Sep 2013) Changed paths: M templates/lxc

Re: [lxc-devel] [PATCH] make process_lock return void

2013-09-16 Thread Stéphane Graber
On Mon, Sep 16, 2013 at 02:58:51PM -0500, Serge Hallyn wrote: > Quoting Serge Hallyn (serge.hal...@ubuntu.com): > > pthread_mutex_lock() will only return an error if it was set to > > PTHREAD_MUTEX_ERRORCHECK and we are recursively calling it (and > > would otherwise have deadlocked). If that's th

Re: [lxc-devel] [PATCH] make process_lock return void

2013-09-16 Thread Serge Hallyn
Quoting Serge Hallyn (serge.hal...@ubuntu.com): > pthread_mutex_lock() will only return an error if it was set to > PTHREAD_MUTEX_ERRORCHECK and we are recursively calling it (and > would otherwise have deadlocked). If that's the case then log a > message for future debugging and exit. Trying to

[lxc-devel] [PATCH RFC] split up use of process_lock, and make process_lock return void

2013-09-16 Thread Serge Hallyn
pthread_mutex_lock() will only return an error if it was set to PTHREAD_MUTEX_ERRORCHECK and we are recursively calling it (and would otherwise have deadlocked). If that's the case then log a message for future debugging and exit. Trying to "recover" is nonsense at that point. process_lock() was

Re: [lxc-devel] [Lxc-users] Working LXC templates? EUREAKA! I think I've got it!

2013-09-16 Thread Tony Su
Michael, Considering your substantial existing work, if you'd post on github, I'd we willing to fork and contribute in that manner (of course, also opens up ways for others to contribute). I'd create the original repo myself except that your work should be credited by you (and contributions manage

Re: [lxc-devel] [PATCH] Add get_interfaces to the API - v2

2013-09-16 Thread S . Çağlar Onur
On Mon, Sep 16, 2013 at 2:39 PM, Stéphane Graber wrote: > On Mon, Sep 16, 2013 at 02:26:47PM -0400, S.Çağlar Onur wrote: > > get_ips accepts an interface name as a parameter but there was no > > way to get the interfaces names from the container. This patch > > introduces a new get_interfaces call

[lxc-devel] [PATCH] Add get_interfaces to the API - v3

2013-09-16 Thread S . Çağlar Onur
get_ips accepts an interface name as a parameter but there was no way to get the interfaces names from the container. This patch introduces a new get_interfaces call to the API so that users can obtain the name of the interfaces. Support for python bindings also introduced as a part of this versio

[lxc-devel] [PATCH] cleanup fds, memory in lxc_cgroup_load_meta2()

2013-09-16 Thread Dwight Engen
There are fd leaks in lxc_cgroup_load_meta2() in particular in the success case. This change attempts to ensure resources are free'd/close'd, but it is possible there are still some error cases where leaks occur. Signed-off-by: Dwight Engen --- Hi Christian, These changes fix problems I was seei

[lxc-devel] [PATCH] fix some larger memory leaks in cgroup code

2013-09-16 Thread Dwight Engen
Don't worry about saved_errno since none of the *_free routines will set it Signed-off-by: Dwight Engen --- src/lxc/cgroup.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c index 101998b..bf7a2a2 100644 --- a/src/lxc/cgr

Re: [lxc-devel] [PATCH] add arguments with getopt to concurrent tester

2013-09-16 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > - add ability to run for multiple iterations > - can also run non-threaded for comparison to threaded case > > Signed-off-by: Dwight Engen Acked-by: Serge E. Hallyn > --- > Hi Guys, > > Serge I hope you don't mind I changed this to use getopt

[lxc-devel] Linux Plumbers 2013 - Container mini-summit, (hopefully) final schedule

2013-09-16 Thread Stéphane Graber
Hey everyone, So I just went through everything the other track leads accepted over the past couple of weeks and split the remaining time as well as (unfortunately) reduced some of the current time allocation for some of the talks. Basically anyone who didn't directly ask for more, now got a 15mi

Re: [lxc-devel] [PATCH] cleanup fds, memory in lxc_cgroup_load_meta2()

2013-09-16 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > There are fd leaks in lxc_cgroup_load_meta2() in particular in the success > case. This change attempts to ensure resources are free'd/close'd, but it > is possible there are still some error cases where leaks occur. > > Signed-off-by: Dwight Engen

Re: [lxc-devel] [PATCH] lxc-create: conside create succeed when container is already created

2013-09-16 Thread Serge Hallyn
Quoting Qiang Huang (h.huangqi...@huawei.com): > On 2013/9/16 12:23, Stéphane Graber wrote: > > On Mon, Sep 16, 2013 at 11:37:02AM +0800, Qiang Huang wrote: > >> Sometimes we use: > >> lxc-create -n xxx -f config > >> to copy config to the default lxcpath with the rootfs already > >> exist. > >> Bu

Re: [lxc-devel] [PATCH] lxc-create: conside create succeed when container is already created

2013-09-16 Thread Qiang Huang
On 2013/9/17 11:27, Serge Hallyn wrote: > Quoting Qiang Huang (h.huangqi...@huawei.com): >> On 2013/9/16 12:23, Stéphane Graber wrote: >>> On Mon, Sep 16, 2013 at 11:37:02AM +0800, Qiang Huang wrote: Sometimes we use: lxc-create -n xxx -f config to copy config to the default lxcpath