Re: [Lxc-users] Containers slow to start after 1600

2013-03-22 Thread Eric W. Biederman
Benoit Lourdelet writes: > Hello, > > I tried multiple kernels with similar results. > > I ran the following on 3.8.2 > > $ cat > test-script.sh << 'EOF' > #!/bin/bash > for i in $(seq 1 2000) ; do > ip link add a$i type veth peer name b$i > done > EOF > > $ perf record -a test-script.sh >

Re: [Lxc-users] Containers slow to start after 1600

2013-03-22 Thread Benoit Lourdelet
Hello, I tried multiple kernels with similar results. I ran the following on 3.8.2 $ cat > test-script.sh << 'EOF' #!/bin/bash for i in $(seq 1 2000) ; do ip link add a$i type veth peer name b$i done EOF $ perf record -a test-script.sh $ perf report # event : name = cycles, type = 0,

Re: [Lxc-users] Containers slow to start after 1600

2013-03-20 Thread Eric W. Biederman
Benoit Lourdelet writes: > Hello, > > The measurement has been done with kernel 3.8.2. > > Linux ieng-serv06 3.7.9 #3 SMP Wed Feb 27 02:38:58 PST 2013 x86_64 x86_64 > x86_64 GNU/Linux Two different kernel versions? > What information would you like to see on the kernel ? The question is where

Re: [Lxc-users] Containers slow to start after 1600

2013-03-20 Thread Benoit Lourdelet
Hello, The measurement has been done with kernel 3.8.2. Linux ieng-serv06 3.7.9 #3 SMP Wed Feb 27 02:38:58 PST 2013 x86_64 x86_64 x86_64 GNU/Linux What information would you like to see on the kernel ? Regards Benoit On 20/03/2013 01:29, "Eric W. Biederman" wrote: >Serge Hallyn writes: >

Re: [Lxc-users] Containers slow to start after 1600

2013-03-20 Thread Eric W. Biederman
Serge Hallyn writes: > Hi, > > Benoit was kind enough to follow up on some scalability issues with > larger (but not huge imo) numbers of containers. Running a script > to simply time the creation of veth pairs on a rather large (iiuc) > machine, he got the following numbers (time is for creatio

Re: [Lxc-users] Containers slow to start after 1600

2013-03-19 Thread Serge Hallyn
Hi, Benoit was kind enough to follow up on some scalability issues with larger (but not huge imo) numbers of containers. Running a script to simply time the creation of veth pairs on a rather large (iiuc) machine, he got the following numbers (time is for creation of the full number, not latest i

Re: [Lxc-users] Containers slow to start after 1600

2013-03-19 Thread Benoit Lourdelet
Hello Serge, The time is to create all 5000, not just the last 1000. Benoit On 19/03/2013 19:28, "Serge Hallyn" wrote: >Quoting Benoit Lourdelet (blour...@juniper.net): >> Hello Serge, >> >> I put together a small table, running your script for various values : >> >> Time are in seconds, >>

Re: [Lxc-users] Containers slow to start after 1600

2013-03-19 Thread Serge Hallyn
Quoting Benoit Lourdelet (blour...@juniper.net): > Hello Serge, > > I put together a small table, running your script for various values : > > Time are in seconds, > > Number of veth, time to create, time to delete: > > 500 18 26 > > 1000 57 70 > > 2000 193 250 > > 3000 435 510 > > 4000 7

Re: [Lxc-users] Containers slow to start after 1600

2013-03-19 Thread Benoit Lourdelet
Hello Serge, I put together a small table, running your script for various values : Time are in seconds, Number of veth, time to create, time to delete: 500 18 26 1000 57 70 2000 193 250 3000 435 510 4000 752 824 5000 1123 1185 Obviously it is far from being linear. Regards Benoit

Re: [Lxc-users] Containers slow to start after 1600

2013-03-18 Thread Serge Hallyn
Quoting Benoit Lourdelet (blour...@juniper.net): > Hello, > > > Inline after BL>> > > > Quoting Benoit Lourdelet (blour...@juniper.net): > >Hello Serge, > >I am running on a 256MB RAM host, with plenty of free memory. > > G? :) > > >I issue echo t > /proc/sysrq-trigger when containers was

Re: [Lxc-users] Containers slow to start after 1600

2013-03-18 Thread Benoit Lourdelet
Hello, Inline after BL>> Quoting Benoit Lourdelet (blour...@juniper.net): >Hello Serge, >I am running on a 256MB RAM host, with plenty of free memory. G? :) >I issue echo t > /proc/sysrq-trigger when containers was taking 30s to >start , it gave the following. Nothing that caught my attent

Re: [Lxc-users] Containers slow to start after 1600

2013-03-12 Thread Serge Hallyn
Quoting Benoit Lourdelet (blour...@juniper.net): > Hello Serge, > > > I am running on a 256MB RAM host, with plenty of free memory. G? :) > I issue echo t > /proc/sysrq-trigger when containers was taking 30s to > start , it gave the following. Nothing that caught my attention. Hm. Thanks.

Re: [Lxc-users] Containers slow to start after 1600

2013-03-12 Thread Benoit Lourdelet
Hello Serge, I am running on a 256MB RAM host, with plenty of free memory. I issue echo t > /proc/sysrq-trigger when containers was taking 30s to start , it gave the following. Nothing that caught my attention. this block is repeated of each running container: [46825.718046] rt_rq[31]:/lxc/l

Re: [Lxc-users] Containers slow to start after 1600

2013-03-11 Thread Serge Hallyn
Quoting Benoit Lourdelet (blour...@juniper.net): > Hello, > > I am running LXC 0.8.0 kernel 3.7.9 and try to start more than 1000 small > containers : around 10MB of RAM per containers. > > Starting around the first 1600 happens smoothy - I have a 32 virtual core > machine - but then everything