[ovs-dev] [PATCH 2/2] ovsdb: Add per transaction commit instruction counter

Ben Pfaff blp at nicira.com
Sun Jun 7 18:11:44 UTC 2015


On Mon, Jun 01, 2015 at 03:34:52PM -0700, Andy Zhou wrote:
> Measure user space only instruction counters for commit each
> transaction. This measurement is mainly useful for
> tuning OVSDB internal implementation, such as how OVSDB scales over
> number of client connections.
> 
> A simple usage example:
> 
> ovs-appctl -t ovsdb-server ovsdb-server/perf-counters-clear
> ovs-vsctl add-port br0 p3
> ovs-appctl -t ovsdb-server ovsdb-server/perf-counters-show
> ovsdb_txn_commit            2      906922 453461.0
> 
> The commands above show that the 'add-port br p3' command caused ovsdb
> to execute 2 transactions. Each transaction takes 453461 instructions,
> total 906922 instructions. The number will vary based on number of
> ovsdb clients connected.
> 
> Signed-off-by: Andy Zhou <azhou at nicira.com>

Acked-by: Ben Pfaff <blp at nicira.com>



More information about the dev mailing list