[dpdk-dev] [PATCH 1/5] app/testpmd: clock gettime call in throughput calculation

Ali Alnubani alialnu at mellanox.com
Tue Jun 23 15:33:29 CEST 2020


> -----Original Message-----
> From: Honnappa Nagarahalli <honnappa.nagarahalli at arm.com>
> Sent: Wednesday, June 17, 2020 5:43 PM
> To: dev at dpdk.org; honnappa.nagarahalli at arm.com; Ali Alnubani
> <alialnu at mellanox.com>; orgerlitz at mellanox.com; wenzhuo.lu at intel.com;
> beilei.xing at intel.com; bernard.iremonger at intel.com
> Cc: hemant.agrawal at nxp.com; jerinj at marvell.com; Slava Ovsiienko
> <viacheslavo at mellanox.com>; Thomas Monjalon <thomas at monjalon.net>;
> ruifeng.wang at arm.com; phil.yang at arm.com; nd at arm.com;
> zhihong.wang at intel.com; stable at dpdk.org
> Subject: [PATCH 1/5] app/testpmd: clock gettime call in throughput
> calculation
> 
> The throughput calculation requires a counter that measures passing of time.
> The PMU cycle counter does not do that. This results in incorrect throughput
> numbers when RTE_ARM_EAL_RDTSC_USE_PMU is enabled. 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>

Tested-by: Ali Alnubani <alialnu at mellanox.com>


More information about the dev mailing list