Return-Path: Received: from localhost (localhost [127.0.0.1]) by mail.saout.de (Postfix) with ESMTP id 5EEF4938D for ; Fri, 7 Aug 2009 18:01:06 +0200 (CEST) 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 p8VzCxKDdR65 for ; Fri, 7 Aug 2009 18:01:01 +0200 (CEST) Received: from mail-qy0-f189.google.com (mail-qy0-f189.google.com [209.85.221.189]) by mail.saout.de (Postfix) with ESMTP for ; Fri, 7 Aug 2009 18:01:00 +0200 (CEST) Received: by qyk27 with SMTP id 27so1592363qyk.17 for ; Fri, 07 Aug 2009 09:01:00 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20090803125342.CF87216440B5@mail.absint.com> <20090804004626.4a811f96@gmail.com> <20090806152427.GA15990@fancy-poultry.org> From: Salatiel Filho Date: Fri, 7 Aug 2009 13:00:35 -0300 Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [dm-crypt] 1,5 TB partition: use cbc-essiv or xts-plain? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On Fri, Aug 7, 2009 at 09:20, Salatiel Filho wrot= e: > On Fri, Aug 7, 2009 at 09:16, Salatiel Filho wr= ote: >> On Thu, Aug 6, 2009 at 13:02, Salatiel Filho w= rote: >>> On Thu, Aug 6, 2009 at 13:00, Salatiel Filho = wrote: >>>> On Thu, Aug 6, 2009 at 12:24, Heinz Diehl wrote= : >>>>> On 06.08.2009, Henrik Theiling wrote: >>>>> >>>>>> Fascinating. =A0I thought Serpent was universally the slowest of the >>>>>> three big algorithms (AES/Rijndael, Twofish, Serpent) that was used = if >>>>>> you wanted highest security margins. =A0Your speed test results come >>>>>> quite unexpected for me... >>>>> >>>>> The question is: how has this been measured, and is it faster on both= read >>>>> and write operations? E.g. a simple "hdparm -tT /dev/xxx" is not suff= icient. >>>>> >>>> I just encrypted the partition , put some random data there [i do not >>>> care about write speed in this particular storage, it is just a NAS >>>> (ARM 266 + 128RAM running debian lenny)], then drop_caches , export >>>> the data using nfs, mount from another machine and copy that file. >>>> Repeated the proccess using aes and using serpent. Serpent is much fas= ter ... >>>> I really don't know which cipher is/shouldbe faster, but serpent gives >>>> me a great speed ... >>>> >>>>> How about a bonnie++ run, e.g. something like >>>>> "bonnie++ -u htd:users -d /mnt/test -s 16016m -m liesel -n 16:100000:= 16:6" >>> i will try to do this tonight. >>> >> >> >> I changed the bonnie parameters cause this machine is really slow and >> it has only 128Mb RAM. Here are the results, which i'd be glad if >> someone could explain then to me :) >> >> # bonnie++ -d /mnt -f -n0 -m serpent -s 250 >> [ext4,cipher=3Dserpent-cbc-essiv:sha256,size=3D256] >> Using uid:1000, gid:1000. >> Writing intelligently...done >> Rewriting...done >> Reading intelligently...done >> start 'em...done...done...done... >> Version 1.03d =A0 =A0 =A0 ------Sequential Output------ --Sequential Inp= ut- >> --Random- >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-Per Chr- --Block-- -Rewrite- -Pe= r Chr- --Block-- >> --Seeks-- >> Machine =A0 =A0 =A0 =A0Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/se= c %CP >> /sec %CP >> serpent =A0 =A0 =A0 =A0250M =A0 =A0 =A0 =A0 =A0 =A01607 =A0 5 =A0 910 = =A0 3 =A0 =A0 =A0 =A0 =A0 =A02403 =A0 3 >> 126.8 =A0 3 >> serpent,250M,,,1607,5,910,3,,,2403,3,126.8,3,,,,,,,,,,,,, >> >> >> >> # bonnie++ -d /mnt -f -n0 -m aes -s 250 >> [ext4,cipher=3Daes-cbc-essiv:sha256,size=3D256] >> >> Using uid:1000, gid:1000. >> Writing intelligently...done >> Rewriting...done >> Reading intelligently...done >> start 'em...done...done...done... >> Version 1.03d =A0 =A0 =A0 ------Sequential Output------ --Sequential Inp= ut- >> --Random- >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-Per Chr- --Block-- -Rewrite- -Pe= r Chr- --Block-- >> --Seeks-- >> Machine =A0 =A0 =A0 =A0Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/se= c %CP >> /sec %CP >> aes =A0 =A0 =A0 =A0 =A0 =A0256M =A0 =A0 =A0 =A0 =A0 =A0 623 =A0 2 =A0 40= 0 =A0 1 =A0 =A0 =A0 =A0 =A0 =A01319 =A0 1 >> 116.2 =A0 3 >> aes,256M,,,623,2,400,1,,,1319,1,116.2,3,,,,,,,,,,,,, >> >> >> >> > I am going to redo the test , apparently i used 250M for serpent and > 256M for aes ... > repost results soon. > >> >> Here : Version 1.03d ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP serpent 256M 2050 7 1209 3 2959 4 138.8 3 serpent,256M,,,2050,7,1209,3,,,2959,4,138.8,3,,,,,,,,,,,,, Version 1.03d ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP aes 256M 625 2 445 1 1455 2 113.5 3 aes,256M,,,625,2,445,1,,,1455,2,113.5,3,,,,,,,,,,,,, >> >> >> >> >> >> >> >> >> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> dm-crypt mailing list >>>>> dm-crypt@saout.de >>>>> http://www.saout.de/mailman/listinfo/dm-crypt >>>>> >>>> >>>> >>>> >>>> -- >>>> []'s >>>> Salatiel >>>> >>>> "O maior prazer do inteligente =E9 bancar o =A0idiota >>>> =A0 diante de um =A0idiota que banca o inteligente". >>>> >>> >>> >>> >>> -- >>> []'s >>> Salatiel >>> >>> "O maior prazer do inteligente =E9 bancar o =A0idiota >>> =A0 diante de um =A0idiota que banca o inteligente". >>> >> >> >> >> -- >> []'s >> Salatiel >> >> "O maior prazer do inteligente =E9 bancar o =A0idiota >> =A0 diante de um =A0idiota que banca o inteligente". >> > > > > -- > []'s > Salatiel > > "O maior prazer do inteligente =E9 bancar o =A0idiota > =A0 diante de um =A0idiota que banca o inteligente". > --=20 []'s Salatiel "O maior prazer do inteligente =E9 bancar o idiota diante de um idiota que banca o inteligente".