lxc-ls --fancy taking a long time

Serge Hallyn serge.hallyn at ubuntu.com
Wed May 28 18:44:17 UTC 2014


Quoting Andreas Hasenack (andreas at canonical.com):
> On Tue, May 27, 2014 at 2:22 PM, Serge Hallyn <serge.hallyn at ubuntu.com>wrote:
> 
> > Quoting Andreas Hasenack (andreas at canonical.com):
> > > Hi,
> > >
> > > for an experiment I'm trying to deploy 100 containers on a machine. I
> > used
> > > the "ubuntu" charm and basically did a for loop with juju add-unit ubuntu
> > > --to lxc:1
> > >
> > > I had to adjust some ulimit limits, but so far, so good.
> > >
> > > It's taking more time than I expected to deploy this, but what really
> > > caught my attention is how long lxc-ls --fancy takes to complete:
> > >
> > > # time lxc-ls --fancy | grep juju-machine-1|wc -l
> > > 91
> > >
> > > real    1m36.950s
> >
> > the --fancy does add a lot of work, but this seems slower than it ought
> > to be.  Are the containers running while you are doing this?  Is it
> > faster if they happen to all be stopped or all started?
> >
> 
> 
> They were running, but doing nothing.

Right my thought wasn't that the system was busy due to containers, but
rather that if the container is running, then lxc-ls --fancy will attach
to every container one-by-one to get some information like ip address.

> It was just a deployment of the
> "ubuntu" charm. Didn't try with them all stopped, and right now I don't
> have that system up anymore.

Ok, thanks.  If Stéphane doesn't have any ideas offhand then I will try
to reproduce this by hand.

Thanks for the information.

-serge




More information about the ubuntu-server mailing list