[ovs-dev] [PATCH v2 0/2] Add performance measurement library

Mark Michelson mmichels at redhat.com
Fri Jan 12 22:57:58 UTC 2018


This set of commits adds a new library for OVS that allows for measuring
the performance of operations in OVS and compiling statistics from these
measurements.

For developers, this can provide a measurement of something that is
either finer or coarser-grained than what is easily measured with a
profiler.

v1 -> v2:
In version 1, there was a patch included that would save statistics to
the OVS database. Based on feedback from that, I decided to forgo
database support for the time being. If database support were to be
added, using a time series database rather than the OVS database would
be the way to go.

Removal of the database patch had a snowball effect that has reduced the
overall size of the patchset.

Mark Michelson (2):
  Add performance measuring API
  Measure performance of ovn-controller loop.

 lib/automake.mk                 |   2 +
 lib/performance.c               | 387 ++++++++++++++++++++++++++++++++++++++++
 lib/performance.h               |  58 ++++++
 ovn/controller/ovn-controller.c |  17 ++
 4 files changed, 464 insertions(+)
 create mode 100644 lib/performance.c
 create mode 100644 lib/performance.h

-- 
2.13.5



More information about the dev mailing list