From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C3C0CA0540; Mon, 13 Jul 2020 17:22:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6C5AB1D56F; Mon, 13 Jul 2020 17:22:59 +0200 (CEST) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by dpdk.org (Postfix) with ESMTP id D91F71D56F for ; Mon, 13 Jul 2020 17:22:57 +0200 (CEST) Received: by mail-wm1-f68.google.com with SMTP id g75so13693639wme.5 for ; Mon, 13 Jul 2020 08:22:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=QoqzXiwXAQrU43Ny0VNQqTvoHPQxkZ/RUCS1p1l575s=; b=GspMtDJTIoETpu6f1x9EQ+yjfDtXD4IibGYxdQuBYEWwMPE1ISL7u47imF70wSPRpA 2FpMGmU8B/A8A8F5uT7RsgPh8dyM/4EBPc3kl8qG51bGcTnyHqHcRAV0TM/HY/rhF+RJ FVB6OZ+rqhCb6S0DzaljnPXUnVjcMSGRePykB+RUDwlVNaFoogwtYLi4c5qob870gTC+ j7/8VopDpYlL+nSQpK3+Us/xjhECUI5Cp/a17I95hCT7CVyLg7CdXzn3963SYeAT5ph2 VUMJAULBQcL4zxQvXuiRpjU2lmgBLKW5lXYWYP0bDYChsV+fF0Iu//f9+zPXc+W41/YO zg9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=QoqzXiwXAQrU43Ny0VNQqTvoHPQxkZ/RUCS1p1l575s=; b=YUh0QO6kQbs3dvekbKNzbQrViqWlcS2/8XGufDQJLkwqU8DscYK3M9i1Jd+iswYn8J N4WKWYaQjcQswJYHg5iZ4g/NBbMkL1uFxxh78IYPKedSqEtgIS62+83+H0ndhNq16sE3 pi6szbvC/EBLrgYH8ixTuW+j+HLamag+6rMwri9oPGRd98XFXzGGJq4qVch/wl5WTMcZ eI3L0409yjg4MQh8lWvy3MGcuukQU6+RZy+O94FEVo+aSe4QIVZ+LkzZ3W5seymKHYJJ sR1jnjK0XmmjddAGdAc7tYfWGFKfFZrdxG5HzadB6BTvyupYD2G7iPJ5TLSPOjlcJKJb VVBg== X-Gm-Message-State: AOAM533E6kU6q9KX+gFrAFVbkJOMXaqblGgv2pHD4IEeGJLW7YpsfnZD fW1jpyCXGHy/vd7b/3fTlhHB9w== X-Google-Smtp-Source: ABdhPJwdraDynP15dpWAu7Zdg/LyB58focR7RvUU4gAoprVAKC1r2iVDK7DDimqVaLO1Xwdj2VgksA== X-Received: by 2002:a7b:cbcb:: with SMTP id n11mr384696wmi.99.1594653777674; Mon, 13 Jul 2020 08:22:57 -0700 (PDT) Received: from 6wind.com (2a01cb0c0005a600345636f7e65ed1a0.ipv6.abo.wanadoo.fr. [2a01:cb0c:5:a600:3456:36f7:e65e:d1a0]) by smtp.gmail.com with ESMTPSA id k20sm23028503wmi.27.2020.07.13.08.22.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 08:22:57 -0700 (PDT) Date: Mon, 13 Jul 2020 17:22:56 +0200 From: Olivier Matz To: Feifei Wang Cc: Honnappa Nagarahalli , Konstantin Ananyev , Ruifeng Wang , Ola Liljedahl , Dharmik Thakkar , dev@dpdk.org, nd@arm.com, stable@dpdk.org Message-ID: <20200713152256.GS5869@platinum> References: <20200608054938.46599-1-feifei.wang2@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200608054938.46599-1-feifei.wang2@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [dpdk-dev] [PATCH] test/ring_perf: fix error statistics in bulk enq/dequeue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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@dpdk.org > > Signed-off-by: Feifei Wang > Reviewed-by: Ruifeng Wang > Reviewed-by: Phil Yang Reviewed-by: Olivier Matz