From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZaNowDRe9s1j for ; Wed, 28 Mar 2012 23:34:02 +0200 (CEST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mail.saout.de (Postfix) with ESMTP for ; Wed, 28 Mar 2012 23:34:01 +0200 (CEST) Message-ID: <4F7383C2.8040007@redhat.com> Date: Wed, 28 Mar 2012 23:33:54 +0200 From: Milan Broz MIME-Version: 1.0 References: <4F6BF806.1000504@holgerdanske.com> In-Reply-To: <4F6BF806.1000504@holgerdanske.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] LUKS/ dm-crypt/ ext4 appears to be single threaded List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Christensen Cc: dm-crypt@saout.de On 03/23/2012 05:11 AM, David Christensen wrote: > I have a 1.5 TB SATA hard drive I use for back-up's. It has a single > large partition encrypted with LUKS/ dm-crypt and formatted with ext4. > I've noticed what appears to be single-threaded behavior when one > process is performing a long-lived write to the disk (notably 'ssh > user@host tar ...> backupfile.tar.gz') and another process attempts to > access the disk (either read or write). This is tolerable for a back-up > application, but would not be acceptable for multi-user, multi-process, > and/or multi-threaded applications (file server, terminal server, web > server, etc.). You forgot to mention kernel version, it changed in various versions. For recent kernel 3.x, if multiple processes access the encrypted disk, it tries to keep submitted work on cpu which submitted it (so it run in parallel). There are some patches to change parallel operations to another model in dmcrypt, if you want to experiment, see http://people.redhat.com/mpatocka/patches/kernel/dm-crypt-paralelizace/current/ I have several performance tests, and some of these patches perhaps appear in 3.5 kernel but it need still more work. Milan