From: Mark Kavanagh Date: Tue, 9 Jun 2015 14:49:18 +0000 (-0700) Subject: dpif-netdev: log port/core affinity X-Git-Tag: v2.4.0~65 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fovs.git;a=commitdiff_plain;h=2322af3d415e5149af696193a12a2866f3fd0dff dpif-netdev: log port/core affinity When using multiple PMDs and numerous ports, a performance gain may be achieved in some use cases by pinning a PMD/port to a particular (set of) core(s). This patch provides a summary of the switch's port/core affinities each time that the status of the switch's ports is modified. Based on this information, a user may determine what affinity modifications are required to optimise performance for their particular use case. Signed-off-by: Mark Kavanagh Signed-off-by: Wojciech Andralojc Acked-by: Flavio Leitner Acked-by: Pravin B Shelar --- diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index f13169c14..f4033e46f 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -2664,6 +2664,11 @@ reload: emc_cache_init(&pmd->flow_cache); poll_cnt = pmd_load_queues(pmd, &poll_list, poll_cnt); + /* List port/core affinity */ + for (i = 0; i < poll_cnt; i++) { + VLOG_INFO("Core %d processing port \'%s\'\n", pmd->core_id, netdev_get_name(poll_list[i].port->netdev)); + } + /* Signal here to make sure the pmd finishes * reloading the updated configuration. */ dp_netdev_pmd_reload_done(pmd);