DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: Peter Merhaut <petermerhaut@gmail.com>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] slow read performance, but fast writes?
Date: Wed, 14 Sep 2011 17:15:41 +0200	[thread overview]
Message-ID: <4E70C51D.5090501@redhat.com> (raw)
In-Reply-To: <4E70B46C.9050304@gmail.com>

On 09/14/2011 04:04 PM, Peter Merhaut wrote:
> i've got a really strange problem with my setup, and i'm not quite sure why.

It is known problem, current implementation depends on how are IO submitted
and writes and reads differs this way (I think page cache interferes here).
Reads are slower, because parallel operations are timed differently causing
these waits.

If you use some more realistic IO pattern than dd, you can get different
output though. (dd is NOT good performance test. But everyone uses that:-)

We have some ideas how to improve parallel processing inside dm-crypt but
other things had higher priority still.

(You can see this problem even measured against zero virtual devices, so
read/write caching is not the real problem here.)

Milan

      parent reply	other threads:[~2011-09-14 15:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-14 14:04 [dm-crypt] slow read performance, but fast writes? Peter Merhaut
2011-09-14 15:04 ` Arno Wagner
2011-09-14 16:47   ` Peter Merhaut
2011-09-15  9:49     ` Nikolay Kichukov
2011-09-15  9:53       ` Peter Merhaut
2011-09-15 10:45       ` Milan Broz
2011-09-15 11:07         ` Peter Merhaut
2011-09-14 15:15 ` 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=4E70C51D.5090501@redhat.com \
    --to=mbroz@redhat.com \
    --cc=dm-crypt@saout.de \
    --cc=petermerhaut@gmail.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