DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <gmazyland@gmail.com>
To: dm-crypt <dm-crypt@saout.de>
Cc: Joakim Reinert <mail@jreinert.com>
Subject: Re: [dm-crypt] Performance problems
Date: Mon, 19 Nov 2012 21:02:40 +0100	[thread overview]
Message-ID: <50AA9060.9060102@gmail.com> (raw)
In-Reply-To: <50AA1D33.7030109@jreinert.com>

On 11/19/2012 12:51 PM, Joakim Reinert wrote:
> I have loaded the module aesni_intel and verified that the refcnt
> changes in /proc/crypto when i open/close the encrypted partition.

How exactly the storage stack looks like? Using underlying partition?
please paste lsblk output and cryptsetup luksDump
(you can remove slot info and hash, algorithm and payload offset
is important here)

Try to add oflag=direct to your dd command (for write) or iflag=direct
for read.

Yes, AES-NI should provide more than necessary performance.

> I've already harrassed everybody at #archlinux and #crypto in IRC but
> nobody seems to know what the problem might be. I also installed
> truecrypt and did some benchmarks which show encryption and decryption
> speeds of roughly 2GB/s.

Truecrypt by default use dm-crypt (if not switched off in config),
but internal benchmarks measure non-kernel services.


> Might this have something to do with the data alignment on disk? At
> least with lvm it's suggested to define dataalignment=1m on SSD's. Is
> it possible to define data alignment for dm-crypt?

1MiB alignment is default for LUKS (and for LVM as well btw), depends
on version and if underlying partition is aligned.

Need info above to check.

Milan

      reply	other threads:[~2012-11-19 20:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-19 11:51 [dm-crypt] Performance problems Joakim Reinert
2012-11-19 20:02 ` Milan Broz [this message]

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=50AA9060.9060102@gmail.com \
    --to=gmazyland@gmail.com \
    --cc=dm-crypt@saout.de \
    --cc=mail@jreinert.com \
    /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