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 9litKsWWs9Vt for ; Thu, 16 Aug 2012 09:43:37 +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 ; Thu, 16 Aug 2012 09:43:36 +0200 (CEST) Date: Thu, 16 Aug 2012 00:43:33 -0700 From: Marc MERLIN Message-ID: <20120816074333.GC8802@merlins.org> References: <20120722190757.GB10089@merlins.org> <20120812124929.GM19851@reaktio.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20120812124929.GM19851@reaktio.net> 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: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Cc: dm-crypt@saout.de On Sun, Aug 12, 2012 at 03:49:29PM +0300, Pasi K=E4rkk=E4inen wrote: > I didn't read the whole thread, but are you aware that many/most SSDs use > internal processors for compression, deduplication, etc ..=20 =20 Yes > so if you write encrypted data to the SSD, it's not able to do it's inter= nal magic, > and thus you get a lot worse performance compared to non-encrypted data. Only on some controllers like sandforce, the Samsung 830 wasn't supposed to be affected > So did you try benchmarking with *random* data *without* encryption?=20 > Also always first write to the disk, and only read after it has been alre= ady written to. Yes, both were parts of my tests. But, I owed everyone an update, which I just finished typing: http://marc.merlins.org/perso/linux/post_2012-08-15_The-tale-of-SSDs_-Cruci= al-C300-early-Death_-Samsung-830-extreme-random-IO-slowness_-and-settling-w= ith-OCZ-Vertex-4.html Basically, the samsung 830 just sucks. I got 2 of them, they both utterly sucked. There is no excuse for an SSD being several times slower than a slow hard drive on _READs_ (not even talking about writes). I'm not sure how I could have gotten 2 bad drives from Samsung in 2 different shipments, so I'm afraid the entire line may be bad. At least, it was for me after extensive benchmarking, and even using their own windows benchmarking tool. In the end, I got a OCZ Vertex 4 and it's superfast as per the benchmarks I posted in the link above. Cheers, Marc --=20 "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 coo= king Home page: http://marc.merlins.org/ =20