public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jari Ruusu <jari.ruusu@pp.inet.fi>
To: "Adam J. Richter" <adam@yggdrasil.com>
Cc: hch@infradead.org, aia21@cantab.net, kernel@bonin.ca,
	linux-kernel@vger.kernel.org
Subject: Re: Loop devices under NTFS
Date: Thu, 29 Aug 2002 18:16:46 +0300	[thread overview]
Message-ID: <3D6E3ADE.470CF7E5@pp.inet.fi> (raw)
In-Reply-To: 200208291100.EAA11337@adam.yggdrasil.com

"Adam J. Richter" wrote:
>         Bruce Schneier's x86 implementation of twofish encrypts at 18
> cycles per byte on Pentium 3, which should be about 55MB/sec on a 1GHz
> P3.  Here is a URL for someone who claims to have an x86 AES
> implementation that does up to 58MB/sec.:
> http://fp.gladman.plus.com/cryptography_technology/rijndael/ and one
> that does 45MB/sec on an 800MHz Pentium III:
> http://home.cyber.ee/helger/implementations/.  I believe that is about
> the sustained transfer rate of one top of the line hard disk (although
> the file system means there will be some seeks slowing that down), and
> the file system will have a slower sustained transfer rate on one
> disk, due at least to some seeking.  So, depending on CPU speed and
> other computing that there is to be done, it is possible that with
> read-ahead and write-behind that encryption one one CPU can be fast
> enough to keep up with the maximum throughput of the filesystem on a
> one disk drive.

Adam,

If you had followed what is going on with loop crypto, you would have known
that loop-AES' AES cipher is based on Dr Brian Gladman's implementation, and
as such is about twice as fast as the one in cryptoapi. Here is some data on
AMD Duron 800 MHz:

key length 128 bits, encrypt speed 354.3 Mbits/sec
key length 128 bits, decrypt speed 359.3 Mbits/sec
key length 192 bits, encrypt speed 298.8 Mbits/sec
key length 192 bits, decrypt speed 297.7 Mbits/sec
key length 256 bits, encrypt speed 258.8 Mbits/sec
key length 256 bits, decrypt speed 260.6 Mbits/sec

So if you really cared about speed, you would not be using cryptoapi. Also,
your loop patch will deadlock when used to encrypt swap. My loop patch does
not.

Regards,
Jari Ruusu <jari.ruusu@pp.inet.fi>


  parent reply	other threads:[~2002-08-29 15:12 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-29 11:00 Loop devices under NTFS Adam J. Richter
2002-08-29 11:27 ` Anton Altaparmakov
2002-08-29 15:16 ` Jari Ruusu [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-08-28  9:17 Adam J. Richter
2002-08-28  1:49 Adam J. Richter
2002-08-28  8:36 ` Urban Widmark
2002-08-28  1:06 Adam J. Richter
2002-08-28 15:50 ` Andre Bonin
2002-08-28 16:41 ` Christoph Hellwig
2002-08-27 23:42 Adam J. Richter
2002-08-27 23:59 ` Christoph Hellwig
2002-08-27 13:53 Adam J. Richter
2002-08-27 17:04 ` Christoph Hellwig
2002-08-27 17:26 ` Jan Harkes
2002-08-27 13:23 Adam J. Richter
2002-08-27 13:27 ` Christoph Hellwig
2002-08-27 12:40 Adam J. Richter
2002-08-27 12:46 ` Anton Altaparmakov
2002-08-27 13:15 ` Christoph Hellwig
2002-08-27  4:48 Andre Bonin
2002-08-27  9:17 ` Anton Altaparmakov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D6E3ADE.470CF7E5@pp.inet.fi \
    --to=jari.ruusu@pp.inet.fi \
    --cc=adam@yggdrasil.com \
    --cc=aia21@cantab.net \
    --cc=hch@infradead.org \
    --cc=kernel@bonin.ca \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox