From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0059.outbound.protection.outlook.com [207.46.100.59]) by dpdk.org (Postfix) with ESMTP id A1E048E60 for ; Thu, 10 Dec 2015 17:37:07 +0100 (CET) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@caviumnetworks.com; Received: from localhost.localdomain.localdomain (122.166.129.221) by BLUPR0701MB1715.namprd07.prod.outlook.com (10.163.85.141) with Microsoft SMTP Server (TLS) id 15.1.337.19; Thu, 10 Dec 2015 16:37:02 +0000 From: Jerin Jacob To: Date: Thu, 10 Dec 2015 22:06:14 +0530 Message-ID: <1449765378-29563-1-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1449417564-29600-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1449417564-29600-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [122.166.129.221] X-ClientProxiedBy: MAXPR01CA0058.INDPRD01.PROD.OUTLOOK.COM (25.164.146.158) To BLUPR0701MB1715.namprd07.prod.outlook.com (25.163.85.141) X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1715; 2:0HbyguUeHmExl3gSBWByuekzKgxWiPckM7XXCjvIIvzXofr9Efi+Ajkt0RYPVmm1wf/SB/vWTGJA3bMNVKEmXVhmRT/voo1ueA0aJ5ioXnsr/wusnIrGDh3BN3Ty9QbFnAb7lBlTntfl3vScc+K2uw==; 3:SvB/1+L6wB7NedjipYDPMWYwG6Uxutt2CyLOMdMJkuba0L7zuE0FoFYnKLi3Vp7L3k99i1oDxtS+8azFOX2MzajRIrBVMUPnPnspi3+CI1z15i33UrPnT3o8pJMidlyU; 25:zNX5ELDevSjayhlNfTQ6qVuO8fF8NDdkqOliZs5h62b5o1bXKL2/pD/XFtZEessntUF0nuavMGHJy2yshRxcbVrBfq+JNSf3Eqv8fPzJX3kTF9dQWCAX4xXsV1Bgqas8zkLeKdEr+gygM4szD9b4BjSrTEKzKnZmVJxCqTGUmlfPWlN6FZp9rkUkWCIyUaTXkriaH9m0qy2YqpJeTulOn37P7//GACY9w/Bf+UJtEPQ1D7ioUx/rrlhR6K1JpWMn X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0701MB1715; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1715; 20:tkJ+fW6EP7EECRXWdC16sRubawrGaA3KQ6LIPT+GXYmMqZ50nLrEd8yh77s8CAUILf0hd19CfW7X12HhipMrxddzfddTo2NtFIbyK+5Cmrdix8INRhgk9zzPiP9zLiiw5d1EGI1QwLuYqICmViNmwMi3cXr/a9GZPTrlCYyR8+EIWX0TlGIiUjDt1QqNfyAiVze4yQCgu5YnPYDYl9UapdeczNtSOEWLesoMuDzdNIaHJr2cvWG1tq00xs8DAQUqm30iRHT5oTrAr/UNhaadM2ivjBtLAymaliaxmZ5SzHG6wLUrLqGV5/pyDzaWvpqY2PWWoGKA2gl7W04DdHVimkP+G1fLx1Wv2yQ+xZD+ggZHZZYeQ5jTFHIuFIN2+JoY3uS8pfjEe4aLtRNw2rHhjJSVHVq5FeIOf0ZpCvJoDcvtika0LxFS6EBIp3PJQmJps7Azep/Rr/I1BGYZQfOgvGoRQGB5QvjKYCL2SOwfH0Wk30b7oqjcaLSH1F09J7y88sWhOd4IdPbSCsq/X87a+Y+hXpBsZxbwl1gmH1t0cCmNo5O8EVfOTP1X8gMzze0b1dtDo8j6LX0XMO2z67aBjidd1zwlmasbzA8g8hPDHb0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(10201501046)(3002001); SRVR:BLUPR0701MB1715; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1715; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1715; 4:dmXPX8mcNYOg0bnOACbLsJKOy/+p1KDJo4iwkWUYrFxMdooLDgMMgOytiiN6HQvpLeSWdc1HKPMyjXx9qVbw9w+fTyfN638cRrbxFlrdOH5g58Bzv/wYCgyqQoIF0Bk+9eojWjE0XS+hEyLGS13LhKPMV0UObUAlOH7qLPSaGIo0HqulyOqnY6wOavCDZriyF5uiPHZoQTTWeiLDG5zaI1EFyodAib/mQBEGqCZcKfhL5nZWdz/M2GXWUPAx6qIL8iq26gnDiv4bpr/MxYz/SekQzRARy1UNoRutq1IcLMwAifxFS4t928hX7dyLmE7Mh6hoUx9800Vo4x0o7hj3lnq16+dxztypzfVMWuEyk0IAU218ju6FKmSrxDwoze+g X-Forefront-PRVS: 078693968A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(189002)(199003)(97736004)(229853001)(5004730100002)(40100003)(586003)(5003940100001)(1096002)(105586002)(6116002)(5008740100001)(2950100001)(3846002)(4001430100002)(36756003)(189998001)(106356001)(86362001)(122386002)(107886002)(77096005)(92566002)(42186005)(2351001)(33646002)(48376002)(50226001)(66066001)(81156007)(76176999)(47776003)(5001960100002)(50986999)(110136002)(101416001)(87976001)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1715; 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; BLUPR0701MB1715; 23:duo5RyLWvyG7aYrhkJwhG2BtkQWnIlhpHM2lnfE?= =?us-ascii?Q?bXLQUzsNHY5FuLLA6Xy4rt7fG4btikYoeZSh5YViuBkg5aLSquolvVvucFI9?= =?us-ascii?Q?1sBho/iiy0RXd5/r7TBxgeOl2kkg974nB6zPWkQrYWLG7q6ZknoKc3sMdoZZ?= =?us-ascii?Q?5fdqr1MooZQcqAlILgVHeI88WE4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ii?Q?4nkz9tgA=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1715; 5:VTiy85kgQTvvPic4GqI9f5FPW5DIL7Y31msYizyUURy7HqhGsahm5NFpT/Mh8m0JLz433WEF/RQtSH79pgNT9ebCsQI0Qtd1xLBfYdUTYtDTqdvqTj/mD9mfcZgbHWgKBvwW+G5ixVr4W4SGLK7klA==; 24:gpPUTackGTMz0nqdHEZNTGkSTrm3c/71fI+Qf23NodGiOsSbT2TMh94ARvI1L8Xy/V1lJcIzjMmwS4tXfu1C7WYma95SRlbVxoQ4uNOQOWc= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2015 16:37:02.8584 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1715 Subject: [dpdk-dev] [PATCH v2 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: Thu, 10 Dec 2015 16:37:08 -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 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_mempool/rte_mempool.h | 2 +- lib/librte_ring/rte_ring.h | 2 +- lib/librte_sched/rte_bitmap.h | 10 +++++----- 8 files changed, 30 insertions(+), 12 deletions(-) -- 2.1.0