[lxc-devel] Cleanup of .hold files

2013-05-13 Thread Brent Tubbs
Hi, I see in conf.c that a .hold file is automatically created whenever you use a directory as the rootfs. I'm seeing those start to accumulate on the filesystem. Is it my job to clean them up, or should there be code in LXC deleting them when the container shuts down? Thanks, Brent Brent T

[lxc-devel] [RFC PATCH 0/1] allow setting cgroup items before the cgroup is entered

2013-05-13 Thread Dwight Engen
Hi, I tried to put lxc.cgroup.memory.kmem.limit_in_bytes = 4194304 in a config file to test forkbomb prevention. The problem with this is that kmem.limit_in_bytes (per the kernel documentation) "cannot be set if the cgroup have children, or if there are already tasks in the cgroup". Currently, lxc

[lxc-devel] [RFC PATCH 1/1] allow setting cgroup items before the cgroup is entered

2013-05-13 Thread Dwight Engen
Signed-off-by: Dwight Engen --- src/lxc/conf.c | 37 - src/lxc/conf.h | 2 ++ src/lxc/start.c | 5 + 3 files changed, 39 insertions(+), 5 deletions(-) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 746a2db..6a9b493 100644 --- a/src/lxc/conf.c +++ b

Re: [lxc-devel] [PATCH] serialize multiple threads doing lxcapi_start()

2013-05-13 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > The problem is that the fd table is shared between threads and if a thread > forks() while another thread has an open fd to the monitor, the duped fd > in the fork()ed child will not get closed, thus causing monitord to stay > around since it thinks

[lxc-devel] [PATCH] serialize multiple threads doing lxcapi_start()

2013-05-13 Thread Dwight Engen
The problem is that the fd table is shared between threads and if a thread forks() while another thread has an open fd to the monitor, the duped fd in the fork()ed child will not get closed, thus causing monitord to stay around since it thinks it still has a client. This only happened when calling

Re: [lxc-devel] lxc-execute and lxc-ls

2013-05-13 Thread Serge Hallyn
Quoting Purcareata Bogdan-B43198 (b43...@freescale.com): > Hello, > > Should lxc-ls list containers created with lxc-execute as well? > > E.g. when running "lxc-execute -n ctx1 /bin/bash", you may run "lxc-info -n > ctx1" and it will output > > state: RUNNING > pid: 4063 > > but when is

[lxc-devel] lxc-execute and lxc-ls

2013-05-13 Thread Purcareata Bogdan-B43198
Hello, Should lxc-ls list containers created with lxc-execute as well? E.g. when running "lxc-execute -n ctx1 /bin/bash", you may run "lxc-info -n ctx1" and it will output state: RUNNING pid: 4063 but when issuing "lxc-ls", nothing will be printed. Is this normal? I noticed that the co

[lxc-devel] lxc-ls and lxc-execute

2013-05-13 Thread Purcareata Bogdan-B43198
Hello, Should lxc-ls list containers created with lxc-execute as well? E.g. when running "lxc-execute -n ctx1 /bin/bash", you may run "lxc-info -n ctx1" and it will output state: RUNNING pid: 4063 but when issuing "lxc-ls", nothing will be printed. Is this normal? I noticed that the co