Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754042AbbKMJGZ (ORCPT ); Fri, 13 Nov 2015 04:06:25 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:52409 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751969AbbKMJGP (ORCPT ); Fri, 13 Nov 2015 04:06:15 -0500 From: Arnd Bergmann To: Baolin Wang Cc: Jan Kara , Christoph Hellwig , axboe@kernel.dk, Alasdair G Kergon , Mike Snitzer , dm-devel@redhat.com, neilb@suse.com, tj@kernel.org, jmoyer@redhat.com, keith.busch@intel.com, bart.vanassche@sandisk.com, linux-raid@vger.kernel.org, Mark Brown , "Garg, Dinesh" , LKML Subject: Re: [PATCH 0/2] Introduce the request handling for dm-crypt Date: Fri, 13 Nov 2015 10:05:15 +0100 Message-ID: <4015766.7tjD0ocbRK@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <20151112125901.GD27454@quack.suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:zzT2UbJ2Ll2zE4sXirmZwcTFEPbGiRPp7Hp866vssNQAQuVrD+K TTw4JGMGtT02it5Sd8WLANkLIRf8fQd7dERSHc4GMIt4bgw+v4+3/7FgBN73ZIte3mgEBjS fKG8p414NbZN0RwcckeseQ2OeRxGEBvfs4CxPBxNaKNMCUcohKK6IG++Sn28M2Js+gzGxVu 7kGlRmyxUzvVbrQOgXQpA== X-UI-Out-Filterresults: notjunk:1;V01:K0:kMSFXEQP0Mo=:s5zfiCXj+ZcA/VzP5R6mJP sKb6E78tjUxN8+NMxUWJYeSG+ARqa8HSRqFZAwQn3PHbeUBMScMOa9OQXSl1bAW2Qjw9LSvD+ 0/gmNLwMJnj3JpkrEkLdPohGDowxg8k6rXMuMf6bthl0nQrpY/Z5wOgRt+EudTuovYU9g520z L0QgiGbabWiI332sBZBoPub1U3QwrTobp/izqOmQc+YB6yHHUjxOVbPc3Y/L8UluHuL/bOs+F pbeBnY7/cOcybe78UBis+bEjh6uNQ3KSXLE0zLBr9lTSiyvLrHHCXk6Q/21CXkHBRe8Rlr5px 47+q9ubDga+nqfd0m4E9EIRM8mXiaK6VCqSTSLGOCGP/HWix5LT2Te489/juZ52MkUxdBmi7J 0TnfqNyPHzm2G8KihNm6nhtM34JK+XW0mbc8H9zPP4G+ZYkcGTBjgZjkbGCQtFKDjG3trBbKn zmYYKiDo+t1NgaOpVN7DZufq4rsuYm0lKaHdBv+aKuAShlBRLl33DnGVCG0PLOg/vl8mhE25a mhXcK1geD14/hkXkxlbwqb4q7/4q5PVUrXe/w+asZr6oia71wZP6ul6KcS7g5mS0wk4M4UXWy AQuLuTeKnYjHyuSgGRy+45SfsN9GcXrCec6wvS84dmLX7RS61LC7yGes/ZO7xbfelN+0W8kjf XCAhmIYVyEdC6d/GBd6KUDixO9mbY04Vw4I+i4Fxrm9FztNYfZNuod+GGS0KE3euxfnkgVRPi rr4tMqTXH/rmV6P8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1379 Lines: 32 On Friday 13 November 2015 10:05:28 Baolin Wang wrote: > > Well, I did a simple test with dd reading, cause my engine limitation is 1M, > (1) so the time like below when handle 1M at one time. > 1048576 bytes (1.0 MB) copied, 0.0841235 s, 12.5 MB/s > 1048576 bytes (1.0 MB) copied, 0.0836294 s, 12.5 MB/s > 1048576 bytes (1.0 MB) copied, 0.0836526 s, 12.5 MB/s > > (2) These handle 64K at one time * 16 times > 1048576 bytes (1.0 MB) copied, 0.0937223 s, 11.2 MB/s > 1048576 bytes (1.0 MB) copied, 0.097205 s, 10.8 MB/s > 1048576 bytes (1.0 MB) copied, 0.0935884 s, 11.2 MB/s > > Here is a 10ms level difference, try to image if the hardware engine's > throughput is bigger than that. But like Jens said, we can measure it > by the performance data. The absolute numbers look really low. Does this include writing to a hard drive? That would certainly make the difference appear less significant. Could you try backing this with a ram disk backing for comparison, and also use 'time dd' to show the CPU utilization for all cases? For completeness, including cpu-only performance might also help put this into perspective. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/