From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0078.outbound.protection.outlook.com [157.56.111.78]) by dpdk.org (Postfix) with ESMTP id AA8ED8D93 for ; Tue, 21 Jun 2016 05:43:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=tISxklH/WMx4upcbgwsrhhLObbMEDCNWWC4DFALLmC0=; b=kvbgU7RdVh/E9VhscRjV9818pEJJNkorZtquxOGST1Bhgg+bWE2K/7DUe1iOr2KQMMesL+/N+LftLlaBWwtGnIhLv3zMEnJlDCo26whlnTi4zBXeSVGz+YOt/kPBW78fEGNmHa2QzKj4ZA9GYKmI7aBEEGiwjIz/niulrUppNto= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain (111.93.218.67) by BN3PR0701MB1718.namprd07.prod.outlook.com (10.163.39.17) with Microsoft SMTP Server (TLS) id 15.1.523.12; Tue, 21 Jun 2016 03:43:10 +0000 Date: Tue, 21 Jun 2016 09:12:57 +0530 From: Jerin Jacob To: Thomas Monjalon CC: , David Hunt , , , Message-ID: <20160621034256.GB4903@localhost.localdomain> References: <1463669335-30378-1-git-send-email-david.hunt@intel.com> <1466428091-115821-2-git-send-email-david.hunt@intel.com> <20160620132506.GA3301@localhost.localdomain> <3416153.NDoMD8TpjF@xps13> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <3416153.NDoMD8TpjF@xps13> User-Agent: Mutt/1.6.1 (2016-04-27) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MAXPR01CA0021.INDPRD01.PROD.OUTLOOK.COM (10.164.147.28) To BN3PR0701MB1718.namprd07.prod.outlook.com (10.163.39.17) X-MS-Office365-Filtering-Correlation-Id: bb7b26bd-233b-4664-4bac-08d399862b8a X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1718; 2:IrKTdW46e9HmQZ9k/mJ2klLZ9CMnsI557yAUPX90PhamvFcVBwdhtS5I8jtcmjyDLJmGtzGTewPrH9tK1iyHf24uVlz1lq3LDxs2pCfkBtfRAmBu8GAiQsmbWtS1wfNaf0GxVudiVVOz+Ihv7sAfzQnNxwB1liMhtftMNtzk/PFL8khbto/Sbd4f9SFGWyA1; 3:Yfgzz0G3pEZneSfj8qM+SlqapctjLkEw6u2ir/P7S5zCovU7MhLyX5E5clcSq4idkZbuovGIioH+Z+V5hEDZv1U0YG5huCNaIge9OQyoTksnN95b7Y+DdGoxocvVfZMP; 25:xBh+0/q4FC4MomUerrI3rjnmxovm5GsE86innk1fDmDHkjT5P+zxQCUdBFoYTWF0b0XvqpmE7S4RYxdxZGBbJ36zd/fxDisoHd0hxuFHMFwmH13Xnv7xvBegsLvJIWLRdR5iWPkMriGVYUlOembAydsAi6oPKzXBoxnspHMT31oO9T/uVn8XeZptXewJCYWoOgmDSRy6IJwsz8d5+U3TLGfSKkDcTeP5Na88RIWfnPUsFEIVgNHJCDYBfbn7b4izO0NcbV2IaltwHGOyZx+GJDtrgrKyEW6jbLV1Hq7khvSi/M9ELwSaLa55/l5EMQam0ha7VI6m4iudWsnl5bpJwcqvUVg+81+pKgXxqNIkc8U3Arutcex3Om/cEgjl0VtcrnnW7CDPFXcpUBaDNVWK1CkH8VYCZ3i3qQeorxWvfoE= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0701MB1718; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1718; 20:ctq1zfk0QRZJ5qFq5uRuzKT+VvSRQACU+7RUJ7umtuyzQ4eIYrCdEusAXTf0EfQvEpIHKBbbaySxDgIDYwzwJM54K5uJXNbkUZQ9RcTyyf4HFkSPCvqNZkIqWlD9AiDpLmIwV86YPQ2cByIk4kZHIqFry1vPH0hX4G4TJKW1A7xlGOUJoMjctFDmTKEXyJ6UGU/WOz/UWmn9JjlunRpwqOC7HGlDU49PaHA8JkJm9AOd4WVna9H0ynyNpJ+yym1K8MlinOijPrI3KpkuYZarkEMjOjG+k3CsxvpkDaNgIi0FOjyOIPycUEM/TVSJxwrXh6QkFwUlES+9AbVJqBWVUc0WWjl4UlAfsepjuvZ4AfeXmqkxyEuJeSZrJPUiwBZzEVLinjiWP77LpwdTxKiht8sBDbNkuKojwhKLsbD+GZ1YU8BPByKaFZc206HLMGNXGrT28Z2dcPSFrSe8SCwoHQKel1ndH7lhAWEwhZxWY1DcE6CaU6mWa/cKQ2eaSkz/AdqT6r+wqH3fU8VNL9a4A6u6h6djN4Mwk76PHk+x0/hSszzib28rQFP1vQ1Ort0GD1ssiiKDtWXv5vEGNWZLRQwsPG13LXo44fxe3qynm8c= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:BN3PR0701MB1718; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1718; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1718; 4:H40QNba/wkpd3owJq6syCvY6ED88beAEZhuUHE3Zpopqus8owQcMR4WfTuE7hNySToDrPlHHXFHkWnuhL17OqbDvt04OG/s9QpxV9iZsPBV72OUWjeo5zmCDx1MuY9ATcEy9RFhtHRHe8M9CNoDtHl8VUHqhJRN5m6xZILSNC1gTf1UKSAmo2S1xVbDrA8nT1V+zDr7TO57DLBElhFdmdk299DHevR3kIDFD26XSVPyvNoj7AQpahGm1BZxU6MbDYcOSg502WhzFS5kgq4ijAV2dwFdPZXiO2az1+vsd5W6peliV5EprcXvS8pheos21XpUmFnhC0lXHaUSyOPMesFjgnBgkCGv3OXfXap0R+MpSOv0WJTYMCoyyr7IuEJmAxoj/fyCk9Y5Yfh6gwif2/kE2lE75iaf1YoO3OQIc3FM= X-Forefront-PRVS: 098076C36C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(24454002)(189002)(377424004)(199003)(76176999)(54356999)(2906002)(47776003)(77096005)(66066001)(50986999)(97736004)(4001350100001)(9686002)(4326007)(101416001)(586003)(93886004)(3846002)(42186005)(7736002)(1076002)(19580395003)(23726003)(6116002)(189998001)(110136002)(19580405001)(46406003)(50466002)(92566002)(61506002)(7846002)(33656002)(83506001)(105586002)(81156014)(81166006)(8676002)(8666005)(106356001)(2950100001)(97756001)(68736007)(5009440100003)(7099028)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1718; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1718; 23:u1GuNsRj4JumCB9FmklGdMwOoBp1uHM9Ga75N1l?= =?us-ascii?Q?IKUJ1sz/NcciUr1xyJI0QjnKYHGRuAUO8naJb8tFoyWHbWzjsqfqP+SDfe99?= =?us-ascii?Q?1oAILEhCUZc/d/tNbETQj2a6eZ2CrFpxHi+yAdt1OnWKXEVb5a/xkBM3zmmq?= =?us-ascii?Q?3EewX0fJsPIC7QiPfdu4h7EBMm1KZDe9AkEEVWxki8//0obOhNsi5Tvst3KL?= =?us-ascii?Q?0pOdGuzlamdPcfOWAA/6VtzdfauS/k7mUQ6+ZuAK03Y51sLkEKBcfsc+bFe3?= =?us-ascii?Q?MP8XFX3IMkJb7KRPCp8FVZzeynSNjimg/LPLqh6/g8415/JaXAkQHtDG7o3x?= =?us-ascii?Q?P+GA4RpPgJDNERFDJB+fJr/iPezDeGMn0fhD7uNnqa4UkfqbpbAAHbiUtpuP?= =?us-ascii?Q?XOTE4UOUJjP+Q2QU7d0+gBt7kv01hue736IscIDOymGcZ5JtZJKq9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BxiCFHIT0uxmyLTb416og6u5QMQvRlwItdBhVFnmBVqmHn65gnS37PoHOvYwyUYR9F0JXSMcqfGF3mOeBiuDmy/RQZ21OGbLKNKKjiUOQzu8HYYunrBLB1VP0ETensTTAPX/SRfWZ6+DobQspjp1f/LgTjxViOPQ0mb6qIjot7gMGeQa0UdKORiIkSGdJIS71/F5gWwjBN1ErHCYXokLq8htmrT7w8ZfWt+A4Ws7eq90AIYgGHzZr1LTx5YvLScla9LhRQQOc3O8VKjnGSv983fy4Qh7/Yml4Wn87I=; 5:nasomDYaDCvNjldfHxdBtdzjGRrmRcszQWdJfTIt/SG2QXhWsqVErXuPasPFGtx/5TmWOMssj0Yo2D4tCJexuD8umeZdNvL6YYOSMXzq/5Iv5FhbfoaDKn/+f21rzAfy1XI68dEgzycjDyc3HYiyFQ==; 24:ZBTR5SnivQ7X7jkr/+LozktORUiNMWohM4YaVqObQW9USEIw03/8skiNODoEDSqT2QKBkwjaFpPIjTgsZGtpHyGdty54NLqypXY/AwgrExQ=; 7:kQzr8UwxEtZ7epyK0/GfNXsdtETu1R8mx2xCHlTDoAfg1+WT5Ig6THax666lz1a0HmDbEzFr/VaQ/qWTUGR9bopW0UgEQw7T65SpUJxKq993zzskzqKtiMWELKQeoteV9mV/kxKsnYFONaTWxaUHhBpVOm1Rp7C4mgh6e4sNwP6174RYIofiPmB3GmzPiLhFbOgdV/8b6I4sr32MX55UpuTZUaE0+h5QYbPdT1FFjGshSmZvx3zvO4hqQiH7HacT SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2016 03:43:10.3666 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1718 Subject: Re: [dpdk-dev] [PATCH v3 1/2] mempool: add stack (lifo) mempool handler 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: Tue, 21 Jun 2016 03:43:14 -0000 On Mon, Jun 20, 2016 at 03:54:20PM +0200, Thomas Monjalon wrote: > 2016-06-20 18:55, Jerin Jacob: > > On Mon, Jun 20, 2016 at 02:08:10PM +0100, David Hunt wrote: > > > This is a mempool handler that is useful for pipelining apps, where > > > the mempool cache doesn't really work - example, where we have one > > > core doing rx (and alloc), and another core doing Tx (and return). In > > > such a case, the mempool ring simply cycles through all the mbufs, > > > resulting in a LLC miss on every mbuf allocated when the number of > > > mbufs is large. A stack recycles buffers more effectively in this > > > case. > > > > > > Signed-off-by: David Hunt > > > --- > > > lib/librte_mempool/Makefile | 1 + > > > lib/librte_mempool/rte_mempool_stack.c | 145 +++++++++++++++++++++++++++++++++ > > > > How about moving new mempool handlers to drivers/mempool? (or similar). > > In future, adding HW specific handlers in lib/librte_mempool/ may be bad idea. > > You're probably right. > However we need to check and understand what a HW mempool handler will be. > I imagine the first of them will have to move handlers in drivers/ > Jerin, are you volunteer? Thomas, We are planning to upstream a HW based mempool handler. Not sure about the timelines. We will take up this as part of a HW based mempool upstreaming if no one takes it before that. Jerin