[dpdk-stable] [PATCH v3 1/3] app/testpmd: clock gettime call in throughput calculation

Ferruh Yigit ferruh.yigit at intel.com
Tue Jul 7 19:47:21 CEST 2020


On 7/7/2020 12:32 AM, Honnappa Nagarahalli wrote:
> The throughput calculation requires a counter that measures
> passing of time. However, the kernel saves and restores the PMU
> state when a thread is unscheduled and scheduled. This ensures
> that the PMU cycles are not counted towards a thread that is
> not scheduled. Hence, when RTE_ARM_EAL_RDTSC_USE_PMU is enabled,
> the PMU cycles do not represent the passing of time.
> This results in incorrect calculation of throughput numbers.
> Use clock_gettime system call to calculate the time passed since
> last call.
> 
> Bugzilla ID: 450
> Fixes: 0e106980301d ("app/testpmd: show throughput in port stats")
> Cc: zhihong.wang at intel.com
> Cc: stable at dpdk.org
> 
> Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli at arm.com>
> Reviewed-by: Phil Yang <phil.yang at arm.com>
> Reviewed-by: Ruifeng Wang <ruifeng.wang at arm.com>
> Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>
> Tested-by: Phil Yang <phil.yang at arm.com>
> Tested-by: Ali Alnubani <alialnu at mellanox.com>

Series applied to dpdk-next-net/master, thanks.


More information about the stable mailing list