From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0060.outbound.protection.outlook.com [157.56.111.60]) by dpdk.org (Postfix) with ESMTP id 1F1355A4E for ; Fri, 3 Jun 2016 09:02: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=P54IIgOCUZJfZRukisbd3X5QeYTZE8nZYhFS16LcXGg=; b=Qw3NHc2o92OaSo3kjlvNYWftkP28VCBCj7LN5g0R8lQmJMV1rGvhTzy8gDpCZLJR7DAK8hRLi4hCUD/dH6MgIwCPfu4G1S1K6FgP78GrSfSzcpOW1XxfgSRBZ8EQ2tL2T0dcAUR+7/gqt4QcwYKi0IVDnq68QQKuDHCxh473EBg= Authentication-Results: 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (122.167.39.39) by BY1PR0701MB1723.namprd07.prod.outlook.com (10.162.111.142) with Microsoft SMTP Server (TLS) id 15.1.506.9; Fri, 3 Jun 2016 07:02:26 +0000 Date: Fri, 3 Jun 2016 12:32:07 +0530 From: Jerin Jacob To: Olivier MATZ CC: , , , Message-ID: <20160603070202.GA6153@localhost.localdomain> References: <1464101442-10501-1-git-send-email-jerin.jacob@caviumnetworks.com> <1464250025-9191-1-git-send-email-jerin.jacob@caviumnetworks.com> <574BFD97.2010505@6wind.com> <20160531125822.GA10995@localhost.localdomain> <574DFC9A.2050304@6wind.com> <20160601070018.GA26922@localhost.localdomain> <574FE202.2060306@6wind.com> <20160602093936.GB6794@localhost.localdomain> <5750A220.6040804@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <5750A220.6040804@6wind.com> User-Agent: Mutt/1.6.1 (2016-04-27) X-Originating-IP: [122.167.39.39] X-ClientProxiedBy: BM1PR01CA0031.INDPRD01.PROD.OUTLOOK.COM (10.163.198.166) To BY1PR0701MB1723.namprd07.prod.outlook.com (10.162.111.142) X-MS-Office365-Filtering-Correlation-Id: 6af45455-fb90-42bd-13fe-08d38b7d0659 X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 2:r0JoyKGQx/Dzkq4QwXo849n/tNALBCMCzCwQxARQYzDEN2Br0+0AGzRakBpBaX1Ls931MAkjUqoNBRjm58+7t3dUljzXtNUbULK8Ru48qTWpXC8UBk01vk4MKrW33qmN2/+RJ+OtkubpfDO8G0oTpBKa8z8p6k9zuyYdiQYx8DCMsoGL9R/mevZpq1Qzj2ru; 3:o94PGwF6TxNZBuRS7B4oBlJ9xd/bgmOixYahR8A630NUGrNZPD6/sz3BTltVXqS0AQ9FYf75R8UkiSrSZaMwLO/CsjkQ/FL+Ux1hJOblyNi5qJ+1Rn7FNr+yZmdVseDu; 25:y9BlTqqL8AIik/GZqrS14ao0b0UhPqnfOzqhWIatE8EvZRCT9fIFsefP/TsX+IwHIPZY1k/bKljMSZkO6Y3RQRUWrqSmFelyzBzW7gcIhBD7QEjSyOW4QTIAD4R6dwDG6wUpr9vtjQN0x5fJ7J5xM1rvFjLz09NltD7ymdWk6zSr6pJ7L5mqI7XpdqlWbE/EKsubSF3vHtmLcomuFDFtedHhUseV8NINSjikfJ5kNUxOsqOjW8geoxyYsqjLwH6aJOuVjcQmTKJioR4oRKYJGv1axZ7xAepxQ8tfWvAEWfypaVBM+82wQqZniOvcngHW3MTd69EF2gVnC+t/eScThvQIN/8GgurrKU1171KACqMXo0slgn2j7VCyFpytXq0opSKrhOa4KT6Rju/94J5KSLOaW6mHHtk5g7+ZO2XrBm0= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0701MB1723; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 20:ZMz7lP/GPcTElq/L3Gwp3dcQYg7gyPyj2IzYdjNY1ykS+TEuJlzdcxcU6YKKuSQW6iwn3ItDisKKfzhulP0/u1N3nMubtIB1oYq5s3shnHyx1UyiFpevW7ICyyWKD70ngE1Vt2h0w6oaJ7rgUa3d4jYg+BDYbBIibczdkm4k8TvESTpHZ2iBT1hRpOEnAyGIrEH2bDReYKZV2HBaPqAzOx3DdTG/UnCZAXDqFR0YiAByQ/o0Vpj5Z6rGf+aBoGGuK2WgniV6tAjcGi2hophCpjq+7CORMGrths2/I/UKZdflUlazckGdMeZY74Ye220r7mhWz7CYuiSplrLvKxE34RjyKkQa+UyMKMzDCSROd4X53fsmZA/58Ew6MDeeJ4een63jOQJUBUeM24fA42HqBCD1EAFCbLnQeyzh/oHWG8L0EEfoefgP5GlCTYqtuxQlzVTXrSBboqg0nyX9XV0XG/RoJGdvbFEhNIjhbthC2wsIrwEecuJYnU0i4H5Vw1wKw5M/rmGsrUI7qB+udqltF+FEJ3sZNSFPOpztvw25UD7dJll6Y+qa1agZUq95eVXyO2nV5TRoLHwC7rlTwOevvqf6uFW0xI+hyM+sNg/5qrg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(788757137089); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:BY1PR0701MB1723; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1723; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 4:02V9HF6P2AqExZ7Hdm/WbU8JbeItrslr/X6C00s+ID+b4V5Haz2vkgvzGlu+87S3dXzsSQfWUcbxyQT+yFBTbsnOI2xrCE7OdkgBOHVuvyvPEOY9h7b3Xe/ENG75KP1tjvzucNZqwIEoMLpA9/QloCkTZ4atesQAuP9FW+1RFU38yOwsrKpYVSROLUlLM9VDkrzIWxDR2xM94lZTh1zT5aM/f2Z6IpxI3ShTiKxeWi3GlObNp4DJ89CwU2R04dNTssXAosfb/tag8ox5SdVBBJevXtrUW55ukbcoHRSiP5aYDAbGRE7cYY9jZNTzMTyFPafJHzisdg2U6yJDW920x+mh/4PitlI38AODn5C0ukL4Qz+FCnlrHFGYqmrpnIooohFmg0Iru2pfx4+LKmcBVayI203h1aUrabfrTsu6vh4= X-Forefront-PRVS: 0962D394D2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(24454002)(110136002)(42186005)(1076002)(46406003)(4001350100001)(6116002)(83506001)(54356999)(50986999)(2906002)(23726003)(61506002)(97756001)(2950100001)(33656002)(5004730100002)(76176999)(4326007)(189998001)(3846002)(77096005)(5008740100001)(81166006)(8676002)(9686002)(47776003)(50466002)(93886004)(586003)(92566002)(66066001)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1723; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 23:G5g5tkzcQbxTJh7YuOD3ylnLS//Qq7xJwCVOPDdGDdAPyIetGJrRX23CXwe17uwrs5+cOy4FMXP1jf2pXVLmfyvB0upt9Uuvqgo/fA5m4zI7yp3sakZdC9ZLdH0SU1beagTAh0GNaWuV1y7Gj14bhMTiLH7icG+W5YQXGgwl1qKJtN400EsEtRND1mCBR/R6gvbafWt6yPPlzpEgh3Jh4o4UsRJfI3JF9ozK2oe9YXwZmQywbTauYV3SwZrBt+coRHf0eEmH2VJ6s/mNH4kgeJRhPHQrXCywAY6FV/7+rBaspZiS0eo7ZzHgIx5pdNJf7hhcbXJzPYgOqP4+4j+p9I8kMfgkREEwxs8XbkdsjdxEkX0WIzHbaav7X+6Gx4zx9N1uIIGW7zXsmUmhlVNROeQn50kX8A3wMBU5QyI2nzq0njBri8yf97fPsqeMkYWKkQp30VLkM7wRASFva7GpzVLRs/FYmPRm8MHp/YyxdXn7lXUSjPtm1xQ5QxAPpmQ1t9DPl4vtDifna+1i3Fw2xqSOm/wFFofK7zw1wH9Hws3o4bFmgIlEUy4Dao9b8JIlUhlvXu3MkA+GY5VkdNPYcZKxKySELmHXqO7hOeTI3QfTsZKPPlnkdEVelsajkaN4sGvwEgXjp07QXKlq5gGpti+rBaqy65swIjt+Q9XYUJTJeeA5KhxGzQkELXEiumyom0wTHME6e4Jwr7QZwEDfzqBomH+yRLlU+tjaAxsVkPnpFoUrK2fG53o+rQZhyP225HKcqKAzbsuVw3lnwl3fygsZzzbIpCOwNGwJQZpLtX+ihyLf9qEQbMojBeNdwyYfsw1mpJUFNrEt+d5eA43BMLtGRxlyekzTOfepRRhzBSgapWqmYAPKDdT7vEi6bykttfMQ3DCAypdnYEuz8CbCOX9D2RiFF/m9zgvhvwrCNfIJawnd1b19tdPfEib27TBp X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 5:xzxdKqvFb4q/AoHrhOV43fJQir+1olEm2KBQxZ/SQAzOFAddW76IvTtbjfg0194XV4w0Yxy0hucMyWuvQoZ0IfGZ5JNvYsq5d90jekTIz1b4AAotckoHYUhtOD0i7Bm11D8HO5cXwe7anb3P6d3OZA==; 24:W18YXTDKRsDdgM79tM/6ZJIrAhCALDAa9Fg5RGE5zu30xTd76ZIItP2w+724RbFM2U+Z6G3vzJKocGuCghKe161ame4GPmCOpuKOfaxEiAk=; 7:c4oWJX82xKlNTSb2V2xbC16IB/EpvvL2Nae4BOw/gQ58UbbVf2tCZhUFq6chf+A/pE4ltqRkENzBOYDVkku5JTWc4VPasFbIen9eMMc7TMq2fUt6hoyW/uBepJBgx6KJxHntieUcNCpU97S+FlVs3lCyNW0GAB+czg/THFBZVve95bIG90x2clniDuvS+5/NP/BSP+NIIDdwh/Z/okeZC6/dsrbzv/zFdgs2FMdmNt4= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2016 07:02:26.0985 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1723 Subject: Re: [dpdk-dev] [PATCH v2] mempool: 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, 03 Jun 2016 07:02:30 -0000 On Thu, Jun 02, 2016 at 11:16:16PM +0200, Olivier MATZ wrote: Hi Olivier, > This is probably more a measure of the pure CPU cost of the mempool > function, without considering the memory cache aspect. So, of course, > a real use-case test should be done to confirm or not that it increases > the performance. I'll manage to do a test and let you know the result. OK IMO, put rte_memcpy makes sense(this patch) as their no behavior change. However, if get rte_memcpy with behavioral changes makes sense some platform then we can enable it on conditional basics(I am OK with that) > > By the way, not all drivers are allocating or freeing the mbufs by > bulk, so this modification would only affect these ones. What driver > are you using for your test? I have tested with ThunderX nicvf pmd(uses the bulk mode). Recently sent out driver in ml for review Jerin > > > Regards, > Olivier > >