From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754896AbcAMHBK (ORCPT ); Wed, 13 Jan 2016 02:01:10 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33091 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750948AbcAMHBG (ORCPT ); Wed, 13 Jan 2016 02:01:06 -0500 Subject: Re: [dm-devel] [PATCH v2 0/2] Introduce the bulk IV mode for improving the crypto engine efficiency To: Arnd Bergmann , Mikulas Patocka References: <20160104201343.GQ16023@sirena.org.uk> <5514385.nEhTK7fEcU@wuerfel> Cc: device-mapper development , Mark Brown , Milan Broz , Jens Axboe , keith.busch@intel.com, linux-raid@vger.kernel.org, martin.petersen@oracle.com, Mike Snitzer , Baolin Wang , linux-block@vger.kernel.org, neilb@suse.com, LKML , sagig@mellanox.com, tj@kernel.org, dan.j.williams@intel.com, Kent Overstreet , Alasdair G Kergon From: Milan Broz Message-ID: <5695F62D.3050705@gmail.com> Date: Wed, 13 Jan 2016 08:01:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 In-Reply-To: <5514385.nEhTK7fEcU@wuerfel> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/13/2016 12:38 AM, Arnd Bergmann wrote: > On Tuesday 12 January 2016 18:31:19 Mikulas Patocka wrote: >> >> Another possibility is to use dm-crypt block size 4k and use a filesystem >> with 4k blocksize on it (it will never send requests not aligned on 4k >> boundary, so we could reject such requests with an error). > > Is there ever a reason to use something other than 4K block size on > dm-crypt? Most existing sw FDE systems use 512bytes blocks. I would like to see configurable block size (at least up to 4k) but as Mikulas pointed out it opens several new problems. Anyway, I do not see reason why crypto accelerators should not process these small sectors better - just hw must be designed for it. Milan