lxc-ls --fancy taking a long time

Serge Hallyn serge.hallyn at ubuntu.com
Mon Jun 16 14:54:28 UTC 2014


Quoting Andreas Hasenack (andreas at canonical.com):
> Hi,
> 
> >
> > I just tried this here now.  I used 100 overlayfs clones, started them
> > all, and did
> >
> > time sudo lxc-ls -P /mnt/lxc -f
> >
> > real    0m3.448s
> > user    0m0.397s
> > sys     0m0.594s
> >
> > Now maybe this has to do with the types of containers you are using.  Can
> > you try the following and see if you get the results I do?
> >
> > sudo lxc-create -t download -n c-1 -- -d ubuntu -r trusty -a amd64
> > for i in `seq 1 100`; do
> >         sudo lxc-clone -s -o c-1 -n clone-$i
> > done
> > for i in `seq 1 100`; do
> >         sudo lxc-start -n clone-$i -d
> > done
> > time sudo lxc-ls -f
> >
> >
> Sorry for taking this long to get back to you, my mailing list filter
> needed some adjusting.
> 
> I did the steps above, and:
> 
> # time lxc-ls --fancy
> (...)
> real    0m3.926s
> user    0m0.531s
> sys    0m0.829s
> 
> All 100 containers are running.
> 
> That's very acceptable. Looks like it's how the containers were created.

Can you whip up a brief script to show how, from a fresh cloud
instance, you can recreate the pathological environment?




More information about the ubuntu-server mailing list