From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0086.outbound.protection.outlook.com [157.56.111.86]) by dpdk.org (Postfix) with ESMTP id 3ADAA7F14 for ; Mon, 20 Jun 2016 15:25:28 +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=XogEa4HzCUUl1W9hczEpiWYgFQvyYZkyRpOi43WQ2eE=; b=LmC4htDSsDYo0aCIhOFpBK4NZapf/1qVV5VZBB7MaBqDaRq+lakR6BEhVsu82pumLRwKqTnAFjX143LLycoLMokCkp9spuWjUgLER+w9dWZwtiI+7xUXre5ZMrYIUUvlaAAvhB84vgTRt1vXRFDouni6FxZTdj+gzgliv75war4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain (122.166.159.122) by CY1PR0701MB1725.namprd07.prod.outlook.com (10.163.21.14) with Microsoft SMTP Server (TLS) id 15.1.523.12; Mon, 20 Jun 2016 13:25:24 +0000 Date: Mon, 20 Jun 2016 18:55:07 +0530 From: Jerin Jacob To: David Hunt CC: , , , Message-ID: <20160620132506.GA3301@localhost.localdomain> References: <1463669335-30378-1-git-send-email-david.hunt@intel.com> <1466428091-115821-1-git-send-email-david.hunt@intel.com> <1466428091-115821-2-git-send-email-david.hunt@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1466428091-115821-2-git-send-email-david.hunt@intel.com> User-Agent: Mutt/1.6.1 (2016-04-27) X-Originating-IP: [122.166.159.122] X-ClientProxiedBy: BM1PR01CA0033.INDPRD01.PROD.OUTLOOK.COM (10.163.198.168) To CY1PR0701MB1725.namprd07.prod.outlook.com (10.163.21.14) X-MS-Office365-Filtering-Correlation-Id: def421b2-d5bb-488b-3aa3-08d3990e57a4 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1725; 2:2Toh8IrtsJ3+ybFwtyFptA3jIUIR50HrlzjReI23siFzPX4eW/woexnnr8apuA7puWJNBbT3HB9mq2VupQmQW6TkEvN8816sTX3G0CpfD/YkeoheJ8HZ4AJjabbNZ38x76yW4ejGlaMrzK93xrfM3amhyB4+pEwHXAz9jC6LS0wZRzwN/9mAnFf9l3OHUCOo; 3:HXCWlLJHNcvo1nXFDUaohbpNssQVlhRvUmYAvB30BB/r8XHfOou6ZmiGo5/vsMlKKyfCGEnPfPkvkxTvlIQAXYs2UW0t587wBbcFYgtuHst9kur7PpPAF4yKFluaXM6M; 25:FMsSSwiKKwPP+gmC2PJ8WmSaiLRjkDAWnYRguy1v4EuXAElvgZJKA5D9DHG/JcPVw1OHFsVSvPWiwVWJ0s34bx7iD1T73vwiaOlwry3rmMcVmo8p7avtZKRFlmhaBss2scjUAPi3oqZIiD2beBHH09BK67sZkYOXwVvQb8pl45loxqP6s2M1Y78LpS1+LSUB4h64dvNahpsz6q0DamdQT/FnVl65hA43eh80euwx+iJCkgkPMlDYjkEtlqLHa0Z4Kx2XNsWoDdvwY8oRklX+X0VGW4/H2p7oQXI+e2MchoTPW+NsTt/Eyebef3hC2PkU0qEnGdRHM97nZZXen601gRO62uwahhJLE2w3QKf0ek7BOW2Q7tZTAFqv0s6lLTnbFTGpLt44p6N/p4MlRd0K13lHWr4C1kD0FOInwI6p2p4= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0701MB1725; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1725; 20:K1LuG5/BiJixOvwGxNmnIOkL5/AZ7/9WovbqZwXWeEAPT9NBk8qNTzkKjkDP3WrrM3W2aZ2LuvrDkUwiStr93k2AzXHbsgY90Jz9Q6MdPbgQtTZvSdqxdr7nhgsDhomV6RjRmc8esSMr/Hn+7tzHhKpS3EkBrps7mJevkIYT1wHGFgcFwJ+AOA7gP9IcCex/SY0UPGsN7wZReTu/c6BqNJxKjJMCpF3yLyVBv2MjQdgEBJaEVb+00zaYGmLCdAyKiE8eYb151UARIfOdi6oP9Y6ZD/iks46FJGcPSFnWDSgRMKiTrWj4yA60JqD6j+4URzp5ns+X5eH/s7+e2f6oposQcQjZPJWSKzB5fWnYxb584LPGoDFh9DRrI+uzp8quNt6X5c8rU0yQYm1PBMkdqOSC4CN7lEmKijsXD8EY6AfaEMUfpSGHkcr0xPkMiX/NA/yJsoEA/jI5/SOHZr9u5FFQdZYyJbopzK3w14GR5s6HnxDVxlwpxoERSEspN2P4sRWuA/J309WGVSWfeJ65wKl6pMYuJQVwDcjqXgUuEWyGw3BxMyZYw+GoLPi9OMvEtGrSVF/Ig91olCuH1mHk0/cCDKOcp+AaJ/6qNo8yqkM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:CY1PR0701MB1725; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0701MB1725; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1725; 4:GK5vNU8PUuXwF+nkpcqPCV9nP2raQAKfAn7W2bkVZolmMEjQL7hF3X6lWeIsYXwVaHC1zQ9HNZB7cSHUo+DCanjoaNDuaLvMhgZJh2Zl4kx/KQJ5ss/I2PL86bOnlqrrDlzKkhM3txSKewD8DrfUmBz29BuGlHDUu1wYZ3R3me8/NsZLoLr3rPsRvQGVC08Cu9sJBZCz5DjimB2+jHIgzJawx9EpSxWv+FHkcjUSAVKg053vGx3Mmg3Zd+/cPXrKba8CDWv5L06Gp3uoJ7Oo3oii2yMGY6TUphWLjQallAg6u8EuP1UTHRvF/ECwGZZhGTFiAcGzuuUseuD91dyvhjM7buSFCKp+pGkMHV1NmRT3ts90Jmsn2GRq7efV5szJD+QydchyAfbyRjWGdLdlfJJt7Z+j4URd2sseOsYg/J4= X-Forefront-PRVS: 09796A1B83 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(199003)(24454002)(189002)(2950100001)(83506001)(50466002)(77096005)(92566002)(68736007)(46406003)(106356001)(9686002)(97756001)(5004730100002)(42186005)(61506002)(105586002)(50986999)(81156014)(23726003)(8676002)(4001350100001)(47776003)(1076002)(189998001)(33656002)(66066001)(97736004)(7846002)(54356999)(76176999)(110136002)(8666005)(586003)(4326007)(101416001)(3846002)(6116002)(19580395003)(19580405001)(2906002)(81166006)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1725; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; CY1PR0701MB1725; 23:3dM8qNfuwTT4Z7+QzwjCdIruOXHe0WFJDqOH2i6?= =?us-ascii?Q?sb7SdJRoF2JOW80iIHvM0f1QfZbltjIIZYbJvzNFs6GQLDdn02+6yMnT6GNl?= =?us-ascii?Q?eevHMuUMAFhGnfareKAECIyhLtp7UvGkkiPtyN+1Hx5nRJsS23cLZnoR2MNg?= =?us-ascii?Q?NX4mgH1UwupUwzAqxzOCELedcuRPWbmmmmI4YHLEIhkcNreEq2lOjraW8fxQ?= =?us-ascii?Q?O3Kk+4F5uhJr6dg4dPbwNgnShnpXmbdY3Xh21Fwqe2xPSJAxes8eLB85yYRc?= =?us-ascii?Q?KuD2EwIbnATsapjxbgQpJBUzjkZewXogMxRkgdGUiJrk3KHXDdUjXfRLUEPD?= =?us-ascii?Q?A7ebDSQ+LEc+9osa8vghCmlnWFH4C4KmwH/OxjspdKhc30EnZY+lR6Trqzq1?= =?us-ascii?Q?DMdVZgsIJh8UW2sGpfpYi86tzGL4uHlblxvWlpg6yt5MOANeWyQLykjoPGtH?= =?us-ascii?Q?vF3ApAiW4JCW11VHtevl5dwFL9zNZsF1/FiJPNacieoHWEFLerU63ErUC6Dc?= =?us-ascii?Q?WpqkWblvW+zek6yRxDVa1qYeus7I4xbv7fhFsrx2GqoqhbUmbwfv8+nqzS+S?= =?us-ascii?Q?xC3nvJ5W3dYCf27aCqkJN7Ob0lZoEc165u5ju0DXHSTT3z5Tk8a4hOB96Zvt?= =?us-ascii?Q?zUAaJYnruqTjLOQbAYgSFuwJj+ZIbD8LDqyP9fVTkgSB9pWodTgqsrpb84EL?= =?us-ascii?Q?gmyfWYu70fFtb94hsEejfL5lG72hTpeG59VymO16MUtD6jgOEqxZpWflHiWS?= =?us-ascii?Q?WBb9ATVnQwbwmvlrXGJrgT6OnmByqou+m8WN4MAw7FypU+24YJkKgH8W2nkd?= =?us-ascii?Q?mgCiWe/Vj6p4TDLc0WmaKxsvQq75jMbYyXeMWfDUN/+VTckmior0j7JUsj1t?= =?us-ascii?Q?qyak02EJ42yuUwFddxM7XwHGqoa5xKY4UF/DtFP70NWpRXI486553S44PQ5j?= =?us-ascii?Q?AaU4KrTaUGAmkvjrgoFUcOJmSPCPCEW+5EF71XY1aG87GKuM941izvs1TKRj?= =?us-ascii?Q?Cn0CCe9979VeD8qU9TdS5X0zCiL9/ynBeXjzWHtB8uwMkSXTSl+TOWgkdK/N?= =?us-ascii?Q?GxXHq3Iyw4V0gfqDE21xN+6PJzjm6ejsP7dGGh1CEUjuQt0fsXUmkelSysMU?= =?us-ascii?Q?S1IsDFONk6AGEaXuh//R48HqtJ8j4MeH+Axm7PQpIkIeV//lx+sqEK9KiVBq?= =?us-ascii?Q?+WhKvjD3k125j0DI=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1725; 6:s9LVoWizVXZGMSSo9BpbQyJ7tr48AXFcYY5YoHFur9OoX+RpjkT7a/j3pUHMN/RcultBo6BI2NIHgOGYNMMNzjLdCrklkxabPgdVFXaXGq3QZtC00l690s9RdleIOJYfh2Gz80Kvm8/wp9Z+rPznd3VBEc639U8/TKw6n805FHosHSBDsBCMZ0wTNqzjyLYBbo/wCrQPvb6gM0/u7AIoDyNCskrfHVUG/+IzLjpkov0i7BArLHacAuxX12C/MKCP2+7D1+61IBl0+76j0QAhCpV6u/Kr7Ha9L48uXat2h2E=; 5:rf6JgXpNmUogbN+pQNhwSt3T+S71jBg/mU/bLT7VCXxwhPWNvZQOD42yTBURFnd5PGZVrnq0YMG0yc/Mm3slSntssI+7xKHDG3gpSObwr7FkuJD3zz4yZtebs4Ngy+GqTfBLYZVdxPA39oZoFkRqwQ==; 24:5JduyJqpGIrmH4xNKpw/V18yboRNiNZqtepphUeq9/6FjPIqXtxg4FO4Je84LhKB9fhBojkUzo6dphD72La8vzt9vw8BGi+ehIjKAiV9Zsk=; 7:Vm+G5fmgofcYPewvBwLNy4uTiBY7iVeSBC277d5DgvKdrZWXxeZy3thjdaF6P2UJhyPVJ4uGgAuobXEEqgw0Zj5tdTfjr2Y1vcYxwL5/u9RpH9BtJM4iGjH27FXLCg4O/rE8nW/JnJ5JpB2tbzKYW52Yjez++9A33ZwECf8o1gGqDQHVAkPIf9Rlkxip3G7+fF6nH8M0umMT4Vojq/nnBD3GZZJuGBkrJ/kZ7iPBLTB8bKMpLpIeozghMRmRi3lK SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2016 13:25:24.7197 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1725 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: Mon, 20 Jun 2016 13:25:28 -0000 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. Jerin