From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0075.outbound.protection.outlook.com [157.56.111.75]) by dpdk.org (Postfix) with ESMTP id AA845293B for ; Fri, 27 May 2016 13:42:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=M0TYhWD0RAIdFXwXyMtmvslPfX9+txZx2yyl8mSwm8o=; b=TbIzE0Z9C6uKJumoP2oXs6Co9VIW41GX2CYHIdSh+ewRN8momLNMxQbehPxJUmEvzf4g+sRdMSLFqyL3tsh9qu4JBr90/Lc/fxb+lRohzJr1ONNbin1J0njmQ2aVlj03+sVEAZYJJZzZNYIeIPg9F9LT8S6zws+PazCDUhMbs4Y= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (122.167.15.180) by BY1PR0701MB1722.namprd07.prod.outlook.com (10.162.111.141) with Microsoft SMTP Server (TLS) id 15.1.501.7; Fri, 27 May 2016 11:42:26 +0000 Date: Fri, 27 May 2016 17:12:08 +0530 From: Jerin Jacob To: "Hunt, David" CC: Olivier Matz , , , , Message-ID: <20160527114205.GA15118@localhost.localdomain> References: <1464101442-10501-1-git-send-email-jerin.jacob@caviumnetworks.com> <57446C63.4040605@6wind.com> <20160524151654.GA10870@localhost.localdomain> <57482079.1050605@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <57482079.1050605@intel.com> User-Agent: Mutt/1.6.1 (2016-04-27) X-Originating-IP: [122.167.15.180] X-ClientProxiedBy: PN1PR01CA0043.INDPRD01.PROD.OUTLOOK.COM (10.164.136.143) To BY1PR0701MB1722.namprd07.prod.outlook.com (10.162.111.141) X-MS-Office365-Filtering-Correlation-Id: 85740c08-2529-42fe-b620-08d38623fb41 X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 2:gg0PwK6bQJt2AubihlyZGunHkIjcnSpPv2jgMHhcDTzCTifFWIle7QeAsPoMJQGOuiL+BUwopmg1v74y2VCe6cqGPUr6I5Z80yt0dxDOgtgtPrFgdfecHENak20mz4LjIVeJ7rT0eHhVbp5EB613xJdOHQymfH9700tpvqGoo5kJhvbeewQh5CqQUmdalH4G; 3:E368Km6/7m8rQ4+Y6FoqT1vlUqLUbr6aKidsnYNJ71Lue95LEqrTalPmQZHLAvaKGC+8yz3jl7kNr8H7fzQ1THQwidErvpfSz2fTmVevj4uJDvMDaJ6Qoa3izSokQrxX; 25:/OdjYshuCPqBuG6yAH/3DcCZFeCFJd5voTh++jCfbb8dtm+lRzdBzSVVYYHM6JQcnw6KP5tPgggHNP9nYbRP7jxL5Ey23lPQHljbwH6EbwtU3SLriy/53qQjt5vexuAKLjk8U4P84OY+//2o9fYldX4mC7JwSjn6V6LU9ltInZI63QAs0aj0M83nJuWsWBHQqm8DMhl/49fJrBeOhJmNyqVYQ95wV7ixxI0ru/H8JhEuHrYYrevT72ugW/F0KWNUN2xNNOHLxxXO66hpn62mc6QGwRXxh5xkJT/r1ASwqG8BcrezYI0c+HO8GaDPnCya6Gx52sEySqFlQ2rmrUS8XD5x8SXYkowgwr5F3h06PUX+O6vboSKR3/tMB5DzLlFvbFfcuG9WJkKdZKp4m1FZ6MH9u9EfNwgzFVfgOPxQIi4= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0701MB1722; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 20:Z/F3rq54oik5ZdUH+oELD3y/G3zslFhMhhmJDvg3vnW4SYrPV8Xpe2WD3s9BaDJotbjDggoFOtk0t807n3xE+jt/R+U8VpmNTMLTBWkx3PlLGRaMZNjWay/w+exGkjqzGWZExzuD8aPSNjiK698IFNB4jT8g3EzNDYwMcvmFAvw8qP6SsQdSCysX0fivRjqpULytJfAgcb2RzQqaisFwX3C3p66aqrbnnxDp88Z9Zc7Y8kYwCTPsPxVojthGxQqQLs35ydAomUAKreVCZq+GjJQuKj/Qal0dF9jm/y35Gs46uC2UqE12gxbkRjRVWaDCQkm5GEvhyB1nrZ+NeGJVALMv53M3avmLpvTp8UXletkFG7jFLNlIvgzjs/q4c3Nkjfp0Ed+EewV35FXZevwIXRhaHyWazChFrWuH6gHCar8QVjJwsTYlW/Fr0HLkiNdadSKy4MJETXD5ndicVIJnM7TH2eTdKcDW2W0ic66SFNlv26bBOyWtrM1RZxaj7AJfcqj52ahnEgLBDkF8rd5dXzP7EEKKrdSGj7V5qZ039RV+xzbgsk6dzDV4UhSL1pr8vlHVZStyRFuwBsKwP1pr6F8T/zsx+LBnZsySFY6WCYw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(788757137089)(5213294742642); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:BY1PR0701MB1722; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1722; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 4:ns/+S2WYjyh/hwHf2k0Mo5eCkYY9uC5zN4Ecs1WX0rlZLLfik8QMqVO5Qmdvqgz5yXK10oIseeCCmGeIQ4PHu/XJ2mCJurZBtWVI8HVjCJZ+e5jUwmM0NoxegjFIR1Th3thl1X6djDUemS8NQ3koHB+3Mnr+APp991Mu4WwryDHvGqjWPNP2/Y8DYNhLv9T3Y5ln1NJIX9u+CB4SjrNrEP18XClavbTBqQ2A21V7PriU2lTxCYa6lMXTxqcsgB+6LmIT2ybTAD9fQptO+OVlkZZsr+IDKf+76tDc8+apP2vape2TIt2jXqek7y388iGw2GYteEnXQq62o4yMtxeUIwh8IOp0G0NzkP1g1yzoycFJxQVSWYa9o6X7NTsBgRuQbukRmn73qgb2HsFY7wNHEv+BJ1qGzyT90Wl45iXhxcnQmNaO6EnotJwzK+/Se5Z6 X-Forefront-PRVS: 09555FB1AD X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(377454003)(24454002)(9686002)(42186005)(61506002)(189998001)(92566002)(2950100001)(110136002)(97756001)(46406003)(33656002)(4001350100001)(77096005)(83506001)(66066001)(4326007)(47776003)(5004730100002)(81166006)(2906002)(586003)(8676002)(5008740100001)(54356999)(76176999)(50986999)(23726003)(50466002)(6116002)(3846002)(1076002)(93886004)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1722; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1722; 23:T6A1qdMAB5TGEb2ldwvdA4jMksWm5rEfKJ4UsCo?= =?us-ascii?Q?DuhL/No0qfNb3JLo0ieLLavCuD/gBo5XXYeqj/vAojl5aYhuuVWyC6kwGFAY?= =?us-ascii?Q?o8NDVUl1TcxZjUxr6jx5lPLEEBlVG6pEL+ex2QMsKQ1RL0eWp5qxOzpR+1Je?= =?us-ascii?Q?BnVncNM8eoAQ8oZh5r+1M2mPoZPKaSX6oOoqK7oCZLzRVwa98hCICtiBnSaL?= =?us-ascii?Q?RwbWByhJVYB3PpUrPkNTZ79xAjr1mq4qYZaKHWFzHWA53JOYNdt1+P7Vg7xj?= =?us-ascii?Q?b2LoST5MXqVjf6j7b3T8kYGOjIK6Aw3HhbnUiBozu3Asf5v0LYYwsdRWlTC3?= =?us-ascii?Q?kwixQ3Za0+DwyZPuEsLsEbxEvYyuYiXN/hL6rs9qnCLSewcCN9CjHkDT1BJb?= =?us-ascii?Q?VifZQCS8dk1XiockGxgRExpxQpjzXwYf59slKfs49iLzp2lOxw83jVjxadTl?= =?us-ascii?Q?5urlZg/wJe8P0dOwqWKZebUkN7Axa4GFAOAISVtUy0/3ot2QJpJTwkhivCjF?= =?us-ascii?Q?O0ms5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f5YOCI5ethVID7YVk SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2016 11:42:26.2657 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1722 Subject: Re: [dpdk-dev] [PATCH] mbuf: replace c memcpy code semantics with optimized rte_memcpy 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, 27 May 2016 11:42:31 -0000 On Fri, May 27, 2016 at 11:24:57AM +0100, Hunt, David wrote: > > > On 5/24/2016 4:17 PM, Jerin Jacob wrote: > > On Tue, May 24, 2016 at 04:59:47PM +0200, Olivier Matz wrote: > > > > > Are you seeing some performance improvement by using rte_memcpy()? > > Yes, In some case, In default case, It was replaced with memcpy by the > > compiler itself(gcc 5.3). But when I tried external mempool manager patch and > > then performance dropped almost 800Kpps. Debugging further it turns out that > > external mempool managers unrelated change was knocking out the memcpy. > > explicit rte_memcpy brought back 500Kpps. Remaing 300Kpps drop is still > > unknown(In my test setup, packets are in the local cache, so it must be > > something do with __mempool_put_bulk text alignment change or similar. > > > > Anyone else observed performance drop with external poolmanager? > > > > Jerin > > Jerin, > I'm seeing a 300kpps drop in throughput when I apply this on top of the > external > mempool manager patch. If you're seeing an increase if you apply this patch > first, then > a drop when applying the mempool manager, the two patches must be > conflicting in > some way. We probably need to investigate further. In general, My concern is that most probably this patch also will get dropped on floor due to conflit in different architecture and some architecture/platform need to maintain this out out tree. Unlike other projects, DPDK modules are hand optimized due do that some change are depended register allocations and compiler version and text alignment etc. IMHO, I think we should have means to abstract this _logical_ changes under conditional compilation flags and any arch/platform can choose to select what it suites better for that arch/platform. We may NOT need to have frequent patches to select the specific configuration, but logical patches under compilation flags can be accepted and each arch/platform can choose specific set configuration when we make the final release candidate for the release. Any thoughts? Jerin