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 74E1BA318B for ; Fri, 18 Oct 2019 01:17:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DDAC31D3F0; Fri, 18 Oct 2019 01:17:40 +0200 (CEST) Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by dpdk.org (Postfix) with ESMTP id C8F8C1D380 for ; Fri, 18 Oct 2019 01:17:39 +0200 (CEST) Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x9HNCvcW091333; Thu, 17 Oct 2019 19:17:31 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 2vq0hkjc0w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 17 Oct 2019 19:17:31 -0400 Received: from m0098409.ppops.net (m0098409.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.27/8.16.0.27) with SMTP id x9HNCwqh091391; Thu, 17 Oct 2019 19:17:31 -0400 Received: from ppma05wdc.us.ibm.com (1b.90.2fa9.ip4.static.sl-reverse.com [169.47.144.27]) by mx0a-001b2d01.pphosted.com with ESMTP id 2vq0hkjc0f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 17 Oct 2019 19:17:31 -0400 Received: from pps.filterd (ppma05wdc.us.ibm.com [127.0.0.1]) by ppma05wdc.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id x9HNH8NP031953; Thu, 17 Oct 2019 23:17:29 GMT Received: from b01cxnp22033.gho.pok.ibm.com (b01cxnp22033.gho.pok.ibm.com [9.57.198.23]) by ppma05wdc.us.ibm.com with ESMTP id 2vq0bqrkbv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 17 Oct 2019 23:17:29 +0000 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x9HNHT7T46137688 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 17 Oct 2019 23:17:29 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 79C4EB2064; Thu, 17 Oct 2019 23:17:29 +0000 (GMT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 036C7B205F; Thu, 17 Oct 2019 23:17:27 +0000 (GMT) Received: from davids-mbp.usor.ibm.com (unknown [9.70.85.35]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Thu, 17 Oct 2019 23:17:27 +0000 (GMT) To: Honnappa Nagarahalli , "Ananyev, Konstantin" , "olivier.matz@6wind.com" , "sthemmin@microsoft.com" , "jerinj@marvell.com" , "Richardson, Bruce" , "david.marchand@redhat.com" , "pbhagavatula@marvell.com" Cc: "dev@dpdk.org" , Dharmik Thakkar , "Ruifeng Wang (Arm Technology China)" , "Gavin Hu (Arm Technology China)" , "stephen@networkplumber.org" , nd References: <20190906190510.11146-1-honnappa.nagarahalli@arm.com> <20191009024709.38144-1-honnappa.nagarahalli@arm.com> <20191009024709.38144-2-honnappa.nagarahalli@arm.com> <2601191342CEEE43887BDE71AB97725801A8C68545@IRSMSX104.ger.corp.intel.com> <2601191342CEEE43887BDE71AB97725801A8C68A99@IRSMSX104.ger.corp.intel.com> <2601191342CEEE43887BDE71AB97725801A8C6A2DA@IRSMSX104.ger.corp.intel.com> From: David Christensen Message-ID: <7df09c22-5b8b-77d8-1e8a-a2714e732036@linux.vnet.ibm.com> Date: Thu, 17 Oct 2019 16:17:27 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-10-17_07:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910170205 Subject: Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size 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" >>> I tried this. On x86 (Xeon(R) Gold 6132 CPU @ 2.60GHz), the results are as >> follows. The numbers in brackets are with the code on master. >>> gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 >>> >>> RTE>>ring_perf_elem_autotest >>> ### Testing single element and burst enq/deq ### SP/SC single >>> enq/dequeue: 5 MP/MC single enq/dequeue: 40 (35) SP/SC burst >>> enq/dequeue (size: 8): 2 MP/MC burst enq/dequeue (size: 8): 6 SP/SC >>> burst enq/dequeue (size: 32): 1 (2) MP/MC burst enq/dequeue (size: >>> 32): 2 >>> >>> ### Testing empty dequeue ### >>> SC empty dequeue: 2.11 >>> MC empty dequeue: 1.41 (2.11) >>> >>> ### Testing using a single lcore ### >>> SP/SC bulk enq/dequeue (size: 8): 2.15 (2.86) MP/MC bulk enq/dequeue >>> (size: 8): 6.35 (6.91) SP/SC bulk enq/dequeue (size: 32): 1.35 (2.06) >>> MP/MC bulk enq/dequeue (size: 32): 2.38 (2.95) >>> >>> ### Testing using two physical cores ### SP/SC bulk enq/dequeue (size: >>> 8): 73.81 (15.33) MP/MC bulk enq/dequeue (size: 8): 75.10 (71.27) >>> SP/SC bulk enq/dequeue (size: 32): 21.14 (9.58) MP/MC bulk enq/dequeue >>> (size: 32): 25.74 (20.91) >>> >>> ### Testing using two NUMA nodes ### >>> SP/SC bulk enq/dequeue (size: 8): 164.32 (50.66) MP/MC bulk >>> enq/dequeue (size: 8): 176.02 (173.43) SP/SC bulk enq/dequeue (size: >>> 32): 50.78 (23) MP/MC bulk enq/dequeue (size: 32): 63.17 (46.74) >>> >>> On one of the Arm platform >>> MP/MC bulk enq/dequeue (size: 32): 0.37 (0.33) (~12% hit, the rest are >>> ok) Tried this on a Power9 platform (3.6GHz), with two numa nodes and 16 cores/node (SMT=4). Applied all 3 patches in v5, test results are as follows: RTE>>ring_perf_elem_autotest ### Testing single element and burst enq/deq ### SP/SC single enq/dequeue: 42 MP/MC single enq/dequeue: 59 SP/SC burst enq/dequeue (size: 8): 5 MP/MC burst enq/dequeue (size: 8): 7 SP/SC burst enq/dequeue (size: 32): 2 MP/MC burst enq/dequeue (size: 32): 2 ### Testing empty dequeue ### SC empty dequeue: 7.81 MC empty dequeue: 7.81 ### Testing using a single lcore ### SP/SC bulk enq/dequeue (size: 8): 5.76 MP/MC bulk enq/dequeue (size: 8): 7.66 SP/SC bulk enq/dequeue (size: 32): 2.10 MP/MC bulk enq/dequeue (size: 32): 2.57 ### Testing using two hyperthreads ### SP/SC bulk enq/dequeue (size: 8): 13.13 MP/MC bulk enq/dequeue (size: 8): 13.98 SP/SC bulk enq/dequeue (size: 32): 3.41 MP/MC bulk enq/dequeue (size: 32): 4.45 ### Testing using two physical cores ### SP/SC bulk enq/dequeue (size: 8): 11.00 MP/MC bulk enq/dequeue (size: 8): 10.95 SP/SC bulk enq/dequeue (size: 32): 3.08 MP/MC bulk enq/dequeue (size: 32): 3.40 ### Testing using two NUMA nodes ### SP/SC bulk enq/dequeue (size: 8): 63.41 MP/MC bulk enq/dequeue (size: 8): 62.70 SP/SC bulk enq/dequeue (size: 32): 15.39 MP/MC bulk enq/dequeue (size: 32): 22.96 Dave