[ovs-dev] Max number of bridges and hardcoded limits

Ben Pfaff blp at nicira.com
Mon Jan 5 22:28:00 UTC 2015


On Mon, Jan 05, 2015 at 11:56:14AM +0200, Babis Kaidos wrote:
> Hello,
> 
> I am using OVS 2.3.0 as the switching mechanism for topologies deployed by mininet. I am creating some stress tests for my application and I was trying to find how many bridges my testing setup could support. I got up to 4112 bridges created with mininet (through ovs-vsctl, I think that's what mininet uses). At this point ovs-vswitchd is producing a core dump at lib/ovs-thread.c in function ovsthread_key_create():
> 
> if (key->index >= MAX_KEYS) {
>        abort();
> }
> 
> MAX_KEYS is defined as L1_SIZE * L2_SIZE, so I changed L1_SIZE and L2_SIZE from 1024 to 2048. This way I can reach the number of switches I need. But I'm worried that I may face other problems along the way because I don't understand how these values were chosen. So, is there a reason for this value of 1024 or was it chosen as an "arbitrary larger" value?

These are just large numbers.  You can increase them; that's fine.



More information about the dev mailing list