* [dpdk-dev] [PATCH] test/ring_perf: fix error statistics in bulk enq/dequeue
@ 2020-06-08 5:58 Feifei Wang
2020-06-09 11:25 ` Ananyev, Konstantin
0 siblings, 1 reply; 3+ messages in thread
From: Feifei Wang @ 2020-06-08 5:58 UTC (permalink / raw)
To: Honnappa Nagarahalli, Konstantin Ananyev, Ola Liljedahl,
Joyce Kong, Gavin Hu, Ruifeng Wang
Cc: dev, nd, Feifei Wang, stable
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@dpdk.org
Signed-off-by: Feifei Wang <feifei.wang2@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Phil Yang <phil.yang@arm.com>
---
app/test/test_ring_perf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/app/test/test_ring_perf.c b/app/test/test_ring_perf.c
index ee21faf71..ac9bf5608 100644
--- a/app/test/test_ring_perf.c
+++ b/app/test/test_ring_perf.c
@@ -380,7 +380,7 @@ load_loop_fn_16B(void *p)
static int
run_on_all_cores(struct rte_ring *r, const int esize)
{
- uint64_t total = 0;
+ uint64_t total;
struct thread_params param;
lcore_function_t *lcore_f;
unsigned int i, c;
@@ -392,6 +392,7 @@ run_on_all_cores(struct rte_ring *r, const int esize)
memset(¶m, 0, sizeof(struct thread_params));
for (i = 0; i < RTE_DIM(bulk_sizes); i++) {
+ total = 0;
printf("\nBulk enq/dequeue count on size %u\n", bulk_sizes[i]);
param.size = bulk_sizes[i];
param.r = r;
--
2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] test/ring_perf: fix error statistics in bulk enq/dequeue
2020-06-08 5:58 [dpdk-dev] [PATCH] test/ring_perf: fix error statistics in bulk enq/dequeue Feifei Wang
@ 2020-06-09 11:25 ` Ananyev, Konstantin
2020-07-01 8:42 ` [dpdk-dev] [dpdk-stable] " David Marchand
0 siblings, 1 reply; 3+ messages in thread
From: Ananyev, Konstantin @ 2020-06-09 11:25 UTC (permalink / raw)
To: Feifei Wang, Honnappa Nagarahalli, Ola Liljedahl, Joyce Kong,
Gavin Hu, Ruifeng Wang
Cc: dev, nd, stable
>
> 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@dpdk.org
>
> Signed-off-by: Feifei Wang <feifei.wang2@arm.com>
> Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
> Reviewed-by: Phil Yang <phil.yang@arm.com>
> ---
> app/test/test_ring_perf.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/app/test/test_ring_perf.c b/app/test/test_ring_perf.c
> index ee21faf71..ac9bf5608 100644
> --- a/app/test/test_ring_perf.c
> +++ b/app/test/test_ring_perf.c
> @@ -380,7 +380,7 @@ load_loop_fn_16B(void *p)
> static int
> run_on_all_cores(struct rte_ring *r, const int esize)
> {
> - uint64_t total = 0;
> + uint64_t total;
> struct thread_params param;
> lcore_function_t *lcore_f;
> unsigned int i, c;
> @@ -392,6 +392,7 @@ run_on_all_cores(struct rte_ring *r, const int esize)
>
> memset(¶m, 0, sizeof(struct thread_params));
> for (i = 0; i < RTE_DIM(bulk_sizes); i++) {
> + total = 0;
> printf("\nBulk enq/dequeue count on size %u\n", bulk_sizes[i]);
> param.size = bulk_sizes[i];
> param.r = r;
> --
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
> 2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [dpdk-stable] [PATCH] test/ring_perf: fix error statistics in bulk enq/dequeue
2020-06-09 11:25 ` Ananyev, Konstantin
@ 2020-07-01 8:42 ` David Marchand
0 siblings, 0 replies; 3+ messages in thread
From: David Marchand @ 2020-07-01 8:42 UTC (permalink / raw)
To: Ananyev, Konstantin
Cc: Feifei Wang, Honnappa Nagarahalli, Ola Liljedahl, Joyce Kong,
Gavin Hu, Ruifeng Wang, dev, nd, stable
On Tue, Jun 9, 2020 at 1:25 PM Ananyev, Konstantin
<konstantin.ananyev@intel.com> 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@dpdk.org
> >
> > Signed-off-by: Feifei Wang <feifei.wang2@arm.com>
> > Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
> > Reviewed-by: Phil Yang <phil.yang@arm.com>
> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Applied, thanks.
--
David Marchand
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-07-01 8:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-08 5:58 [dpdk-dev] [PATCH] test/ring_perf: fix error statistics in bulk enq/dequeue Feifei Wang
2020-06-09 11:25 ` Ananyev, Konstantin
2020-07-01 8:42 ` [dpdk-dev] [dpdk-stable] " David Marchand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).