[lxc-devel] [PATCH v2 0/4] add statistics to lxc-info
Serge Hallyn
serge.hallyn at ubuntu.com
Wed Nov 6 14:18:17 UTC 2013
Quoting Dwight Engen (dwight.engen at oracle.com):
> Hi Stéphane,
>
> I was able to add the ***containers output fairly in a fairly
> straightforward manner. I also split out the patch into more discrete
> logical changes, adding/refactoring the list.c test and fixing a leak in
> list_active_containers() along the way. Serge, hopefully you don't mind
> I renamed a couple of variables in there that were confusing me :)
>
> Out of curiosity, I'm wondering why we chose to use an array instead of
> a list? I suppose its easier for the caller and it does make it easy
> to use qsort, but OTOH I guess we could've done sorted inserts into a
> list as well. I was thinking about realloc() with a large number of
> containers being eventually slow, but I guess its only a bunch of
> pointers so it won't ever be all that large of a chunk for realloc to
> move. Anyway, its working fine right now.
I've got no attachment to the code :) If you think it'll be better
as lists that's fine with me.
More information about the lxc-devel
mailing list