[ovs-discuss] is there any solution for ovsdb-server's high CPU consumption when concurrent accessing with ovs-vsctl ?

Liuyongqiang (A) liu.liuyongqiang at huawei.com
Fri Dec 11 03:26:20 UTC 2015


Hi all,  I found that the ovsdb-server' CPU consumption is very high when I test concurrent accessing, I'm not sure that is the performance issue.

This is my test script

network_count=$1


function add_ovs_port()
{
    i=$1
    ovs-vsctl --timeout=120 -- --may-exist add-br ply-$i -- set-fail-mode ply-$i secure
    ovs-vsctl --timeout=120 set Port ply-$i tag=4095
    ovs-vsctl --timeout=120 -- --if-exists del-port qvm-$i -- add-port ply-$i qvm-$i -- set Interface qvm-$i external-ids:iface-id=$i external-ids:iface-status=active external-ids:vm-uuid=5bbeb51b-$i type=internal
    ovs-vsctl --timeout=120 -- --may-exist add-port ply-$i pvi-$i -- set Interface pvi-$i type=patch options:peer=pvo-$i
    ovs-vsctl --timeout=120 -- --may-exist add-port br-int pvo-$i -- set Interface pvo-$i type=patch options:peer=pvi-$i external-ids:iface-id=b7f7e38b-$i external-ids:iface-status=active  external-ids:vm-uuid=5bbeb51b-$i
    ovs-vsctl --timeout=120 set Interface pvo-$i other_config:net_uuid=4420dc52-$i other_config:network_type=vxlan other_config:physical_network=None other_config:segmentation_id=10000
    ovs-vsctl --timeout=120 set Port pvo-$i tag=1

}


for((j=0;j<$network_count;j++)); do

    add_ovs_port 1-$j &
    add_ovs_port 2-$j &
    add_ovs_port 3-$j &
    add_ovs_port 4-$j &
    add_ovs_port 5-$j &

done

CPU consumption
[cid:image001.png at 01D13406.BFF508D0]


Perf record
[cid:image002.png at 01D13406.BFF508D0]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20151211/2628a372/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 58135 bytes
Desc: image001.png
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20151211/2628a372/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 70107 bytes
Desc: image002.png
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20151211/2628a372/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2015-12-11_11-24-07.png
Type: image/png
Size: 65605 bytes
Desc: 2015-12-11_11-24-07.png
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20151211/2628a372/attachment-0008.png>


More information about the discuss mailing list