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 eyoTiJKpQ-6q for ; Tue, 24 Jul 2012 18:09:13 +0200 (CEST) Received: from mail1.merlins.org (magic.merlins.org [209.81.13.136]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Tue, 24 Jul 2012 18:09:13 +0200 (CEST) Date: Tue, 24 Jul 2012 09:09:10 -0700 From: Marc MERLIN Message-ID: <20120724160910.GC14273@merlins.org> References: <20120723062850.GA6931@merlins.org> <20120723081407.GA872@tansi.org> <20120723161242.GB27727@merlins.org> <500D86AC.7090100@redhat.com> <20120723175129.GA15867@merlins.org> <500DC2B0.8060409@redhat.com> <20120724055722.GA15507@merlins.org> <20120724062518.GB1517@fancy-poultry.org> <20120724150247.GA14273@merlins.org> <500EBCFE.1020208@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <500EBCFE.1020208@redhat.com> Subject: Re: [dm-crypt] aes-xts-plain with aes_x86_64 makes my SSD 5x slower than my encrypted HD List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Milan Broz Cc: dm-crypt@saout.de, Yves-Alexis Perez On Tue, Jul 24, 2012 at 05:19:26PM +0200, Milan Broz wrote: > I have no time to check it today but this must be fixed. Read-ahead > is just stupid workaround... > > # echo "0">/sys/block/sdc/queue/rotational > # hdparm -t /dev/mapper/sdc_null_crypt > Timing buffered disk reads: 220 MB in 3.01 seconds = 73.07 MB/sec > > # echo "1">/sys/block/sdc/queue/rotational > # hdparm -t /dev/mapper/sdc_null_crypt > Timing buffered disk reads: 652 MB in 3.01 seconds = 216.75 MB/sec > > This SSD is quicker if set to rotational mode! > (So it merges requests in fact.) That didn't help for me, strangely. gandalfthegreat:~# blockdev --setra 256 /dev/mapper/cryptroot gandalfthegreat:~# reset_cache gandalfthegreat:~# dd if=/dev/mapper/cryptroot of=/dev/null bs=1M count=1024 1024+0 records in 1024+0 records out 1073741824 bytes (1.1 GB) copied, 43.4968 s, 24.7 MB/s gandalfthegreat:~# dmsetup ls | grep cryptroot cryptroot (254:0) gandalfthegreat:~# echo "1">/sys/block/dm-0/queue/rotational gandalfthegreat:~# reset_cache gandalfthegreat:~# dd if=/dev/mapper/cryptroot of=/dev/null bs=1M count=1024 1024+0 records in 1024+0 records out 1073741824 bytes (1.1 GB) copied, 42.9933 s, 25.0 MB/s Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/