[ovs-discuss] 2000 Ports - things aren't working as expected
Ben Pfaff
blp at nicira.com
Mon Jan 12 16:27:43 UTC 2015
On Mon, Jan 12, 2015 at 08:20:08AM -0800, Ben Pfaff wrote:
> On Mon, Jan 12, 2015 at 11:23:40AM +1100, Troy Lea wrote:
> > I've installed Open vSwitch on Ubuntu 14.04.1 and have tested it successfully. I've been able to create switches with up to 1000 ports and I can poll them via SNMP using MRTG.
> >
> > I've been creating these ports with a simple "for 1..1000 bash script".
> >
> > However it does seem though once I start creating more than 800 ports there is an impact on the Ubuntu system. This is noticeable in the time it takes to create each port when the script runs. It's like every port causes the system to take a little longer, kind of exponential.
> >
> > Creating 500 ports takes about 5 minutes.
>
> You'll get better performance if you add more than one port in a single
> ovs-vsctl execution.
For example:
ovs-vsctl add-br br0
cmds=; for i in {1..5000}; do cmds+=" -- add-port br0 p$i"; done
time ovs-vsctl $cmds
takes about 7 seconds.
More information about the discuss
mailing list