mirror of
https://github.com/openvswitch/ovs
synced 2025-10-21 14:49:41 +00:00
dpif-netdev: Increase the number of EMC entries
Prior to this commit, the number of possible entries in the Exact Match Cache stood at 1024 per thread exacting to 0.18Mb. A typical server system will have 2.5Mb cache per core meaning a larger EMC will comfortably fit in. This patch increases the number of entries to 8192 per thread (1.4Mb) which in turn yields improved throughput when processing multiple flows of traffic. Signed-off-by: Ciara Loftus <ciara.loftus@intel.com> Signed-off-by: Ethan Jackson <ethan@nicira.com> Acked-by: Daniele Di Proietto <diproiettod@vmware.com> Acked-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
committed by
Ethan Jackson
parent
1190bedaea
commit
fc82e877ef
@@ -117,7 +117,7 @@ struct netdev_flow_key {
|
||||
* If dp_netdev_input is not called from a pmd thread, a mutex is used.
|
||||
*/
|
||||
|
||||
#define EM_FLOW_HASH_SHIFT 10
|
||||
#define EM_FLOW_HASH_SHIFT 13
|
||||
#define EM_FLOW_HASH_ENTRIES (1u << EM_FLOW_HASH_SHIFT)
|
||||
#define EM_FLOW_HASH_MASK (EM_FLOW_HASH_ENTRIES - 1)
|
||||
#define EM_FLOW_HASH_SEGS 2
|
||||
|
Reference in New Issue
Block a user