[libvirt] [PATCH v2 1/4] virNetDevOpenvswitchInterfaceStats: Optimize for speed

Ján Tomko jtomko at redhat.com
Tue Jul 16 11:14:02 UTC 2019


On Tue, Jul 16, 2019 at 10:54:33AM +0200, Michal Privoznik wrote:
>We run 'ovs-vsctl' nine times (first to find if interface is
>there and then eight times = for each stats member separately).
>This is very inefficient. I've found a way to run it once and
>with a bit of help from virJSON module we can parse out stats
>we need.
>
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> src/util/virnetdevopenvswitch.c | 111 +++++++++++++++++++++-----------
> 1 file changed, 74 insertions(+), 37 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190716/b66884a4/attachment-0001.sig>


More information about the libvir-list mailing list