[dpdk-dev] [PATCH] test/ring_perf: fix error statistics in bulk enq/dequeue

Olivier Matz olivier.matz at 6wind.com
Mon Jul 13 17:22:56 CEST 2020


On Mon, Jun 08, 2020 at 01:49:38PM +0800, Feifei Wang wrote:
> In size 32 bulk ring enq/dequeue performance test, the "Total count"
> statistics is incorrect. For example, running the test on lcore 25 and
> lcore 26, the output is as follows:
> 
> The test command:
> $sudo ./arm64-armv8a-linuxapp-gcc/app/test -l 25-26
> RTE>>ring_perf_autotest
> 
> Bulk enq/dequeue count on size 32
> Core [25] count = 288268
> Core [26] count = 288281
> Total count (size: 32): 1066323
> 
> Fixed it by reset the counter at the beginning of each loop. The
> revised output is as follows:
> 
> Bulk enq/dequeue count on size 32
> Core [25] count = 285643
> Core [26] count = 285688
> Total count (size: 32): 571331
> 
> Fixes: 759cf9b5632c ("test/ring: enhance mp/mc coverage")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Feifei Wang <feifei.wang2 at arm.com>
> Reviewed-by: Ruifeng Wang <ruifeng.wang at arm.com>
> Reviewed-by: Phil Yang <phil.yang at arm.com>

Reviewed-by: Olivier Matz <olivier.matz at 6wind.com>


More information about the dev mailing list