From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0067.outbound.protection.outlook.com [157.56.110.67]) by dpdk.org (Postfix) with ESMTP id AD3DCC5BC for ; Fri, 29 Jan 2016 08:46:23 +0100 (CET) Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain.localdomain (122.167.54.52) by BY1PR0701MB1723.namprd07.prod.outlook.com (10.162.111.142) with Microsoft SMTP Server (TLS) id 15.1.390.13; Fri, 29 Jan 2016 07:46:19 +0000 From: Jerin Jacob To: Date: Fri, 29 Jan 2016 13:15:51 +0530 Message-ID: <1454053555-28850-1-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1450067576-18803-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1450067576-18803-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [122.167.54.52] X-ClientProxiedBy: BM1PR01CA0030.INDPRD01.PROD.OUTLOOK.COM (25.163.198.165) To BY1PR0701MB1723.namprd07.prod.outlook.com (25.162.111.142) X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 2:ITAjXLA8IpLfNhLF708ox/WjkDPGIQaCuBQgSE4Cya3m0Hsuph9OtYhxGXVsWt64VEPrm2qDF+4ShhWKc9EVe6vQa5cXw+QL3kOL0ha2MYhGa66R/c3kgQsiHLDEP83BVWyD+gVAd8jMBWH2jpOp4w==; 3:qCNzBlTNgJpr5QGkB+3QbWF24wodzE1XOO1bFOzweju7zL196KpqKB4bdEjWsCtnnarROlCgah9TQ6AS2UIK/fhwB6fglXulTxcRHKPpeBUvrsOHVIGCDu/sTDYpoiqX; 25:f9AfAdmAnPb/ZesLlDoZOLGA3kvZtDOReOYlnWkADdrtWJjGl2TSnUiAVdFW1fewG1vfJVgqCkSyyXZNx5WuWzY86Zd8Xh78GaI3UrUQAIkpn1r6nkXZsY9gJERQzGFnwe+TCFsyIzcGwJsifYp4cWmFbSqM7dYMqYbZIwvoJdnOsdGO1hm9FPHuYaljJifDRZLR9uvujvQGFqXCt4OvMo1hN2NzR2hvkiht/rdKBf0f2QAB6h/DUHMWoPI9H3t7 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0701MB1723; X-MS-Office365-Filtering-Correlation-Id: 33c669e2-7c0e-4cb5-cc1d-08d328804811 X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 20:8BDrWs0bhVcQfwqDttl6JgkSkB5RFCYRttw8uweQAE4fGx1c9Hf7hzt3rUqcReB6hSV2j80RaSSV5o9jnqsBMM2Qk2nt4ClCozFGIzBkMsHbRELzxH9Seghkn6lwCw56lQYOey2c9nKRVNHIjLrz2tidnd7w80j22DlaR1MCkACnZOXeN3JoCOBi8B+nXZITvur2k+FOFv6r8x0cXMO+xyyWxoqeUZg1x/0OG2aPNQbI229QUgJmDWFG0lQdnivv1UC+/xssBQu3Ti8avQYLx6bSFRTwdYCcvXXoEPEqYJlgX62LcNWMP4zJqajDtxr9jnx0u1i5MBYOSIxEUQND2S9YNKNWTHMdG+eM3kE6+i0wOo2vVEyr5qNUsxhfvj97RQwVAAtjNTpTFJNSdiX4neB1QKth0FhVGyOt3tKu1GRfJfch+zaUIMuQsIHEc82yi8lKTyitHP7X6c4fgbqcZjj7I69ngBcOTwl2eJ6PwWFefyZFVKdUswrMTQTO5Cx7jeBF4DicHRuU6oYiBLp7FBlpZ04NBuHd6BgWoTPoQop4jhwKURCwzctZRhJTA6pm+EoJZBp/lBBNTANmax7LdBa2LDQmxo8pOhe4LJm7Llk= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:BY1PR0701MB1723; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1723; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 4:ZhJOepyqnW8cMxeschxC3cstrifNLQ3HHKLaEYMNhpeRs56Axqrg2QBzgXVQ9eAfbHRIRtP/psURt1qO54KqfCqtNJQ+j/xAc0aQblcB3cAdP0ceQPC4SOnbRcgOnapkS9O4SBEisABdcZv9/fTJVmN3gRAA5VTCjSj2oOMwN1kSOYt7VIroltkr6vbjJYvSTcsz8usTx8urVffv7GBoUWQ6grDmAM9rQ0AlpbbB6hZwNNl4M3Fi+tWindEGoxCT9G/a7g3mJXpeagXduvmpLOssg4zIIMcDDlD6r4qQ7q/MT8g9YYJ0KE13sKaxosesB/rlBNFDL/QJANUctyL/LOykDWs/YHE6wMChUYjYFF1nVdUz6KQuAT3f6tbLTFsj X-Forefront-PRVS: 083691450C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(50226001)(5008740100001)(122386002)(40100003)(1096002)(3470700001)(92566002)(33646002)(3846002)(586003)(48376002)(4326007)(6116002)(42186005)(2906002)(76176999)(19580405001)(107886002)(19580395003)(4001430100002)(110136002)(36756003)(47776003)(2351001)(87976001)(50466002)(5001960100002)(5003940100001)(189998001)(229853001)(2950100001)(77096005)(66066001)(5004730100002)(50986999)(86362001)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1723; H:localhost.localdomain.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1723; 23:NHgther40ZiEagVHwGp/kyMBYyNLiuqXhe0g7ql?= =?us-ascii?Q?OPWK27mMKYXQPY10mrwMQLyaiXj3Ds6KXX25YCLfmpD8tny4Xz5g3W73IGA8?= =?us-ascii?Q?kHU9dscgpXDrhkQlpmnHOPctAnEogO4G/EeIM4YyPCQuyBh9rk92TawzQJGE?= =?us-ascii?Q?mxaOotHvcb6GtLxNVG3tx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?= =?us-ascii?Q?opQAWmkE=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 5:sMimlmG5X/Q1PiGKTweqR+HaQ/fWRMkD2Xgs6YgZUguaQU4YKAvDUVP+qF1YNYFHqmKplM55dZbCvuBa98PXPC/cpVILEny3CdkN6W3eIVH65IVJLBnSgHpwk0Lje/7/o0Z37+aTC746KmRCiruPVA==; 24:opjLoEQDdqm2j9LkGR4XtwEGiZ/mkDQnxmobLs5rWOImsta7KeSKFSNjrLPiTvoK3pPiERnMy05UqAoWBOWp4U24TbqckTBYlLYNslvJKe4= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2016 07:46:19.4734 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1723 Cc: viktorin@rehivetech.com Subject: [dpdk-dev] [PATCH v4 0/4] fix performance/cache resource issues with 128-byte cache line targets X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jan 2016 07:46:24 -0000 This patchset fixes performance/cache resource issues with 128-byte cache line targets found in mbuf and bitmap DPDK libraries Currently, we have two DPDK targets(ThunderX and ppc_64) which are based on 128-bytes cache line size target. This patchset doesn't introduce any performance degradation for 64-bytes cache line size targets. v1..v2 - Introduced new cache macro definitions as Suggested by Konstantin - Reduced the cache alignment requirement for 128-byte cache targets in slow-path data structures to save the memory - Verified x86(a 64byte cacheline target) does not have any impact on these changes by verifying the md5sum of app/test,app/testpmd, app/testacl binaries with or without this patch set v2..v3 revert the cache alignment of rte_ring_debug_stats, rte_mempool_debug_stats structures v3..v4 replaced RTE_CACHE_MIN_LINE_SIZE with RTE_CACHE_LINE_MIN_SIZE as suggested by olivier.matz@6wind.com For clean git am, "config: cleanup existing RTE_CACHE_LINE_SIZE selection scheme" patch needs to apply first Jerin Jacob (4): eal: Introduce new cache line macro definitions mbuf: fix performance/cache resource issue with 128-byte cache line targets bitmap: optimize for 128-bytes cache line targets cache/slow-path: reduce cache align requirement for 128-byte cache targets app/test/test_mbuf.c | 2 +- lib/librte_eal/common/include/rte_memory.h | 16 ++++++++++++++++ .../linuxapp/eal/include/exec-env/rte_kni_common.h | 4 +++- lib/librte_ether/rte_ethdev.h | 4 ++-- lib/librte_mbuf/rte_mbuf.h | 2 +- lib/librte_sched/rte_bitmap.h | 10 +++++----- 6 files changed, 28 insertions(+), 10 deletions(-) -- 2.1.0