From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0100.outbound.protection.outlook.com [65.55.169.100]) by dpdk.org (Postfix) with ESMTP id 14D7458D4 for ; Mon, 14 Dec 2015 05:33:46 +0100 (CET) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@caviumnetworks.com; Received: from localhost.localdomain.localdomain (122.167.202.21) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) with Microsoft SMTP Server (TLS) id 15.1.337.19; Mon, 14 Dec 2015 04:33:41 +0000 From: Jerin Jacob To: Date: Mon, 14 Dec 2015 10:02:52 +0530 Message-ID: <1450067576-18803-1-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1449765378-29563-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1449765378-29563-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [122.167.202.21] X-ClientProxiedBy: MA1PR01CA0009.INDPRD01.PROD.OUTLOOK.COM (25.164.117.16) To BLUPR0701MB1714.namprd07.prod.outlook.com (25.163.85.140) X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 2:KWtQ4e6lWRQTaE1wybDd7dN9vu2ltfw2ECNVb2+SKTdx+sAT9aluaFQG1zHQLDEvijoyEzj1AnPY5+1gwQD2eONSnHlrpocBbAj8pigqX4YIrTlBeP+g4y9LnAyGxvZj05p7I2pR4hUXWmT2bxSCxQ==; 3:zA9QSwG3Ip/vGhYjj42w3rNC9mds84xi2Slle0uAhqhrivvlyuXxhUVTUrR1z1qeHg+/pojZtluHvVDhQXJGoWGrnqPINM1V/sz0Yw996Dzs0d/G0lN8twr4/A3AqG3o; 25:nB4ttZQUFLYo+2JWGMBO4c08OsfVObdlG5xhst19lc0x0rCz/I0H/PI6lMjVX8o9QJLwtMDTeQR+QC6uMbb0Ay7arR8Pw/cunyiOesABy/P1nbdwriV+h9sM2zDd5gFVX+0w5FgHujucLBYisUYV8W0ih390VpVL/bovnwOvePMFn6CWgC7N9O4nIVqyMn5ncca7Ef6rI/jzsK7YdplgIcGATSn1D4krXg5k5ujMhkZA+G9P/o1xfSR3CvKaZn/ZNoDglkGEV/LSVv0P2OozQg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 20:qZ5AvSNNLdwjFz8VCDHYCUYs5zqIFtFguNdeycd6VmJfglSGEk9OJ5snUyYWyalgsyM6Gd+r1yYLr0LG6J0xJ0CVG2Y4w9CEGfF0YkbENWMor0yJoBNEN8SKj6QSs90TXHzZwKjWbF60vD6MoPyK+Q8a6RJ5hICcEOx64nY5iNU4pxjqIW2THa4Qb2zJt3hj37y22bgf2dKs4IHNF9GhrpJ+lEfsNV3cK3/DZneod+JSCjRdqyVj/EvSIyKjvE2R39yhOd6jO0K2qwXZXHVbJ51ogoFPzt9bN1QSQSKVW5jBFCgtjmwkcz/3+33vJt5lCChNSbk9UYKvnr9zNhmm8i2ewEauuqpFHyjTvmAYgwE/oiVUh3ZkAepl5S0Zrt6B1ABn3Q0qXmpczrP6AcVRed1jHPPV15FEXacLYj3dW+okkY0plIaIZ82gXi2ClpcmWhEQSJGQlZBOLr6qSaJ/J3biFlwot/Ub0prtYWmtcj56//ELVbNrQonIIV/F+bc6E/AiZOnfLt1vVn9B8zXKZvlJdLDuXJBbMhPGop9a8Z/XuLW56T63zV5K4nmniei5y3fcKOZQ8sOaYOoU2yR/h5stsam6b4WVKwncIzKJccM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 4:79GJbySIb6oFSfqpR5rs8VDqQDaLk5CoQXb9bNn/CVJOQVKyLxayeNGdoNji14UY7Be+RpouKFRLVJt3VREqGe2CRa2RSgdUS/QvwPKgEnao+cMtJwHaB6xV0AAZQvidi6MTL+KXmuMz2ILpLpcGGgs/mU0TqZp80fy4yE0h3+UKMPmFH6j2YQ70zC9eXzV/AHpnlTR8/50ZdS7WX77vYdfZ8PmJlfiP8hmoSqpGFFrV5AdlMOpRXn64UxG5X29BwyDYmXxsEQKk5Pwf7cK5nP6G8Dg6T7hitPVlMS5yTsndkVeXudAo6Zc1t8TSaND2zHHg3QdM/T6Kb2uoDYEtYrJ+LiqL17ojod/j8NwQH/bWaeXku46XQvlL7P1GeZwq X-Forefront-PRVS: 0790FB1F33 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(189002)(199003)(48376002)(19580395003)(42186005)(77096005)(50466002)(1096002)(50226001)(66066001)(47776003)(2950100001)(5001960100002)(5004730100002)(36756003)(189998001)(101416001)(5008740100001)(4001430100002)(110136002)(6116002)(586003)(3846002)(107886002)(106356001)(105586002)(40100003)(19580405001)(33646002)(5003940100001)(87976001)(229853001)(122386002)(76176999)(81156007)(97736004)(92566002)(50986999)(86362001)(2351001)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:localhost.localdomain.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 23:iJBSII1LKyL256hMEg3zPk3xaEYFgLLBE2eF1nv?= =?us-ascii?Q?I0Ki8AozjpUzTvMGXC17Y8nlbI3Ois44v0ThrkpZUThMPCZR4GT+tuiJPl3m?= =?us-ascii?Q?eXtAVfDQ1fEQB9X7KW+ImxlaASbqqjj4Izy7B4S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V+2EC5UkqBgJscpykVjO9QQcIVO/VJcFX7IoPepWJgrfEA2leO6Z/9nYZk?= =?us-ascii?Q?09q3D12CTXzKTMZcyaA5GXdS5aQHvrOb1dvhbs2MBobeEYP+yT2nGTQAPizI?= =?us-ascii?Q?mKIz/XIgugnJEvUnbh4A143zGbuIJwfye?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 5:ZUd+DwvgMJ63Qz99QpsH0NzviM7jHcZJ1FT2RFANMaurpughkkRiAg9XnEOwUuyZKBcJZnkBwDvTZjnEUV7VrvSOIR0lkCuSgMysGvAP7L+No6lSrTu02y+mlFHuRMgekeT95FGLERpEbpcP445p0w==; 24:9CVgf18XSxmZgDlBzHM2vrMxH7C1Ak2FfilWk8i/V3nmsMf0WWfqDSydsoJlKr/i+LBVL93hsNb6ZKIxRYvg4e8aXPgbyIMW98J+9G9TViY= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Dec 2015 04:33:41.6714 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: [dpdk-dev] [PATCH v3 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: Mon, 14 Dec 2015 04:33:46 -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 For the series, Acked-by: Konstantin Ananyev Jerin Jacob (4): eal: Introduce new cache 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