From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0079.outbound.protection.outlook.com [104.47.36.79]) by dpdk.org (Postfix) with ESMTP id 7879B567C for ; Sat, 9 Sep 2017 16:59:16 +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=AKMySr3WCSOj2mkbW/BO0UckUxPNvbQN4uuK9gzEL7M=; b=orEB5eSo+jFs4iBcTYlqscx7YbCckufojtw4Qf4ik2smV5yNWZUlcG4oJ56f6ijwVABeiQdCT0e1r2BikaxI20uFGqkZqNJt3ccg00tkH/pia/Xw/ozru2vMy+pMFC3MCny81CTiku/ol9lbesC/vISoeuAbZREB0kJBDDoY1ZE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Santosh.Shukla@cavium.com; Received: from [10.160.0.29] (111.93.218.67) by CY4PR07MB3094.namprd07.prod.outlook.com (10.172.115.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12; Sat, 9 Sep 2017 14:59:12 +0000 To: Tiwei Bie , dev@dpdk.org References: <20170824021939.21306-1-tiwei.bie@intel.com> <20170908125046.28739-1-tiwei.bie@intel.com> Cc: yliu@fridaylinux.org, maxime.coquelin@redhat.com, Zhihong Wang , Zhiyong Yang From: santosh Message-ID: <8f9831eb-3673-fb6a-06c0-702c1d0e9d96@caviumnetworks.com> Date: Sat, 9 Sep 2017 20:28:57 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20170908125046.28739-1-tiwei.bie@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0113.INDPRD01.PROD.OUTLOOK.COM (10.174.208.29) To CY4PR07MB3094.namprd07.prod.outlook.com (10.172.115.8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bdd2dff1-774e-4a33-f40e-08d4f7935672 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY4PR07MB3094; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3094; 3:/SKqH0ZBhhrm04q+I0DQrrXzTwMFAIi5olF9L2ZXmh5Sp6KxN15l2NB4DJRdrdPPjIyZjIDQt4iJNpHK8MYtRUwAIxmW1Vs8fhCuf30idnlE0z1cKaGLK7/E/vK4m+ZLKvnfwq9OqgxO6x0b9dAGjYIM8oiYpi6A8H3+ZIPYvKBvT3JrKi9v+JaGG4zh1PXR5SXtkl67JL0jxyiKlliQ/4gTy8/K4fQI1NCr2SkP+v26d+flGQQWvKxVFaIFDrq/; 25:qlKh8zYfrOrtG+WTLZ2jcosjDulwURrNEX5RThlf3wcbXLf6rAZGVHeEpxMYSs4Td9lILu1oSeCCY+EydUqPjiAB/En3zqtw8+2cU3GVcp1NffpuFHm5asU+A7Tmw07aqsS5VQR5o84NaTQS6q3Gu8JvX1KnaxR25lP2a7y0SBkLmmiUr4OAypH8wN3Nji7PamQYSljj2J9ZvX91u1B3M+vd8hUTYmYrAYg50fFXT48bjrG3Kj4sSfv8GtpwjfcvlTLYUBA8n+5AcVjlceMOJYwt7LvTst8Wv0VgwxhZjpvldnsbUFGdbpirfBd4f49EvemyggSVtYSHUzJuuG/SEA==; 31:zleXmuBdlLfLCCH3Atk9jQ8ZN3qJ87wEONJAImY6PFP1riwsR6ID/Ep1H9YslFgvfsDUQbEUsPgaDV9kS1FbG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9ivwRNUscJ2NpN7xKvPTpyl2pJL7aPA7CXgDDC/oLCAap1XYzOd8yUH7cYQe2tHcksfxrnU= X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(100000703101)(100105400095)(93006095)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR07MB3094; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR07MB3094; X-Forefront-PRVS: 0425A67DEF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6049001)(377454003)(199003)(189002)(24454002)(72206003)(305945005)(54906002)(86152003)(42882006)(2950100002)(6666003)(230700001)(47776003)(6116002)(7736002)(478600001)(5009440100003)(229853002)(68736007)(97736004)(6246003)(81156014)(90366009)(4001350100001)(8936002)(36756003)(77096006)(81166006)(6486002)(25786009)(189998001)(23746002)(8676002)(105586002)(50466002)(110136004)(65826007)(31686004)(106356001)(83506001)(101416001)(33646002)(50986999)(54356999)(76176999)(66066001)(5660300001)(65956001)(3846002)(42186005)(53936002)(4326008)(65806001)(64126003)(2906002)(31696002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3094; H:[10.160.0.29]; 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: =?Windows-1252?Q?1; CY4PR07MB3094; 23:wyQ85w8CVg0+RLwU2xMSZi7nrAUYTrutHYWyy?= =?Windows-1252?Q?n/EzDi8w7sel0f2G2rdaGeco0L/2RB7wxu5loaT1MIDGUQeNPjthuXsh?= =?Windows-1252?Q?7J8UYoZT4blgOci7Q17zLyrOiCLhmURN6aROKiCcy6rGP8NLDyPcO3Oh?= =?Windows-1252?Q?5l7Ne3N7DHrYW69yf/coaXXudihO8uyXLLTYcYlGKtr6gKHrvPwi0tl0?= =?Windows-1252?Q?7bCKW6FJhV7adW5Qub/fzLjM1U+guZhFEczFb5I8dkmPsrx1NsGH0HBw?= =?Windows-1252?Q?Pd8iFrjqDey+QRSvRo3qLeEADe/vqHXBy78wx9qBLXQP80q5izyMvdfg?= =?Windows-1252?Q?mA3MlOC+iwOED6A0IgzTjk4WS7ISIYPFZI7H7tqw/74ltpydL66duNTd?= =?Windows-1252?Q?QsdKObD3ww18H/s3HRYmJ94XbieJ3hUdsx/ZMHzYjQyj5FBvBfmEetX2?= =?Windows-1252?Q?uCNi4HcE4bnQmX7BF3is+DRiEfGsNLefs4fBHSvcs6DJSwooGruZpLvT?= =?Windows-1252?Q?JrGDF/MY/ZduybkMs6B2LdmPF+mQGsVE/K8utHzsjFhipoGRwH+eiAHQ?= =?Windows-1252?Q?R78nQj9Ilx0/N0XvrfYmRDw0xtH7TUZNWTSysR5hoiXKouewRAIaneIL?= =?Windows-1252?Q?1I9KUv51CV0yAQVG7tNX4MhTrhkXAW4n8txDQqRnnwQyz1y2ag2XHR5I?= =?Windows-1252?Q?HZ/Ceiim4Nh7XWUwgL/SfAcd5CyMA2fgtzlNNycLCeLzrEBTv6fu5zV5?= =?Windows-1252?Q?O3Ech5ZvHxRCMiZdGDn0eBna1ICsOaCDU/aU2OmCbVm8D7qrKIXffi1L?= =?Windows-1252?Q?7wFvodjTMODdtbVjasQmkvVbiS74hX1+masaDHlwg29QdCg+t9qcX32n?= =?Windows-1252?Q?IHPJ3mLyq+DueHi0xsmOfPbU97MTgBB694fUrLzqqAtAu1ZccJyaO2wH?= =?Windows-1252?Q?Z8dtAd/dIy8Oo2tXAFsm62/jb6ZjEjvS4ujQW+9w1j5IG/RzdlLHIpth?= =?Windows-1252?Q?CqTByllc5glsBxAv4gn3qbK8IvzQU1uL4YJJQnNDbmsYuRP4vVgy2CtL?= =?Windows-1252?Q?pAUpKhNz5NlBOj1PL9myISxa1lBzd2buPUyDHN6qIkiJkOd9YtDcdh3X?= =?Windows-1252?Q?hjYeHry4AMfNX2HGxmN7nBN6Fb9BurnTTvmyMXnbxtQGRhGQzxt3XJEB?= =?Windows-1252?Q?1+Ava9JVs31AoVlxwuggWY0qQI2nvykvlLStV6eAVRjjoYfjo+5mdu6i?= =?Windows-1252?Q?Nuv61nZSVujuL2MAgAyK8VnddBOBIAsHyu8reQgZkze1cFKLX08x4NVw?= =?Windows-1252?Q?hDgAGI4b6AyUAu2h7xld/erndeshNjPXl4WNZAG7IozhhZXZexYJcThB?= =?Windows-1252?Q?Mlc4ZSoPmJhECICwPpJgfSy6ACafigw5N6oWfcpxaC/I+ZFCQQeupat/?= =?Windows-1252?Q?yODfpsVY/x/3wL8pX+eoKnUbMUYhm1OT2FIfW1IJxOprOYJh4fmbbPmO?= =?Windows-1252?Q?uHp8sI=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3094; 6:8ewLDijLLvfLucqo0knWFO3pjQR0CTTojsM46iRklbdBkE8zmdqHKCd2L++6ZUxeeVSVRj+A7pFk6UiZ4jv/ysUroL0N4yAQLwYT1lV1UBZYOM5JGa5r1/ENBKSne5oRbcPGTxQ+M05B6TqeLRLULDQl1fnxIa8/9m38FRLZefxrfsxFlTsX/gGg+gHBmZBOyGtrhYrkufaR4ggaQRVNuZYwL8lfe29/i7b4o7KZnUxjL811or0iKYcXP+CpbRY3hRdcbUPeM4WkoOsvTe8FHA5NYslnHIpOiE6CXxHHm6UkIiLTrki8W2wE29/nUlB2a+Uuw1VparBXQhjqnhPy+A==; 5:u09J3icnEjwH8E6jzd9gl58T0SQzfW95f/hzntyfKGoKFMRTwJooW8oKvKHBqftGnEb8zyVLOisY4XMWob3vr35vA5hWUm2/As24Jq5IFEs6TIItFBgyAkJSH73yRJENUyzBZXSxhcNkYit4i99sLA==; 24:WDW1XTjAQMyA7I+n2UYZgbzhqCJDeAlh/MCGIW4zIjwVu3Grzv9BjL90UOWxSXtqDgzlGfWz/tPYWGECHVP7GyNSah2lwzY9+efZlcr8/6o=; 7:SgpXyrQsycTuAu5Kv75Rc6rBgfGL4gVnkgb5hzuOxh6KRTf0jjPCvTAwjI5hS9rPEVy7I4aVEtzmPNJ2vV7n4SAGm0HYS6wTjz4VXe5Fh2Roak5onsWpg/gKFo3IpwaXQeEc+MDJ5GsV/TeRCShKmgeurzr52IG77l+bikiZWJ8cD5nt7xGht2RwyRDikJ7XtoZDWxz9785uf0bQ9aRMjBFvj5YHJXUozh5zQpU+IIg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2017 14:59:12.4334 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3094 Subject: Re: [dpdk-dev] [PATCH v2] vhost: adaptively batch small guest memory copies X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Sep 2017 14:59:17 -0000 On Friday 08 September 2017 06:20 PM, Tiwei Bie wrote: > This patch adaptively batches the small guest memory copies. > By batching the small copies, the efficiency of executing the > memory LOAD instructions can be improved greatly, because the > memory LOAD latency can be effectively hidden by the pipeline. > We saw great performance boosts for small packets PVP test. > > This patch improves the performance for small packets, and has > distinguished the packets by size. So although the performance > for big packets doesn't change, it makes it relatively easy to > do some special optimizations for the big packets too. > > Signed-off-by: Tiwei Bie > Signed-off-by: Zhihong Wang > Signed-off-by: Zhiyong Yang > Reviewed-by: Maxime Coquelin > --- > This optimization depends on the CPU internal pipeline design. > So further tests (e.g. ARM) from the community is appreciated. > > v2: s/burst_copy/batch_copy/g In pvp setup for arm64 platform, no performance drop noticed with this patch but no significant performance gain either. Tested-by: Santosh Shukla