[ovs-dev] [PATCH] dpif-netdev: Increase the number of EMC entries

Daniele Di Proietto diproiettod at vmware.com
Thu May 21 15:38:38 UTC 2015


I totally agree with the suggested change.  Should the need arise,
we could make it configurable later.

Acked-by: Daniele Di Proietto <diproiettod at vmware.com>

On 13/05/2015 14:54, "Ciara Loftus" <ciara.loftus at intel.com> wrote:

>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 at intel.com>
>---
> lib/dpif-netdev.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
>index f1d65f5..a4d96a4 100644
>--- a/lib/dpif-netdev.c
>+++ b/lib/dpif-netdev.c
>@@ -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
>-- 
>1.9.3
>
>_______________________________________________
>dev mailing list
>dev at openvswitch.org
>https://urldefense.proofpoint.com/v2/url?u=http-3A__openvswitch.org_mailma
>n_listinfo_dev&d=AwIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=Sm
>B5nZacmXNq0gKCC1s_Cw5yUNjxgD4v5kJqZ2uWLlE&m=Sjcnkom-NdIdD-22CcGwMQ0kj7s8aI
>Cl4WDPSR87PoQ&s=fOV8WjV_F7OCr6YpmT2u-nFVI3Da5d_pOiCVriYTWaE&e= 




More information about the dev mailing list