On Mon, Sep 28, 2015 at 05:27:15PM -0400, Laine Stump wrote:
> Previously, netcf would call aug_load() at the start of each public
> API call, and rely on augeas quickly determining if the files needed
> to be reread based on checking the mtime of all files. With a large
> number of files (i.e. several hundred ifcfg files) just checking the
> mtime of all files ends up taking quite a long time; enough to turn a
> simple "virsh iface-list" of 300 bridges + 300 vlans into a 22 second
> ordeal.
> 
> With this patch applied, netcf will only call aug_load() at most once
> every second, resulting in runtime for virsh iface-list going down to
> < 1 second.
> 
> The trade-off is that the results of a netcf API call could be up to 1
> second out of date (but only due to changes in the config external to
> netcf). Since ifcfg files change very infrequently, this is likely
> acceptable.
> ---
>  src/dutil_linux.c | 8 +++++++-
>  src/dutil_linux.h | 1 +
>  2 files changed, 8 insertions(+), 1 deletion(-)

ACK


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|
_______________________________________________
netcf-devel mailing list
netcf-devel@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/netcf-devel

Reply via email to