On Wed, Jun 26, 2019 at 09:18:12PM +0800, txfh2007 via discuss wrote:
>     I have a question about ovs fdb entry size && aging time. I have found the
> max fdb entry size is hard coded in  mac_learning.c, that max_entries is 100k,
> the longest aging time is 3600s.
> 
>   But in my test environment on which pkt forwarding is based on OVS normal
> action, and my test center could generate about 200k flow simultaneously.  So
> the performance is effected by max entry size(there shoud be fdb entries
> evicted by new pkts), So can we enlarge the max_entries limitation, and what
> is the side effect?

It looks to me like the maximum is 1 million:

/* Sets the maximum number of entries in 'ml' to 'max_entries', adjusting it
 * to be within a reasonable range. */
void
mac_learning_set_max_entries(struct mac_learning *ml, size_t max_entries)
{
    ml->max_entries = (max_entries < 10 ? 10
                       : max_entries > 1000 * 1000 ? 1000 * 1000
                       : max_entries);
}
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to