DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: DarKRaveR <dark@verfeiert.org>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Reconsidering default options for cryptsetup-reencrypt
Date: Mon, 03 Dec 2012 01:27:56 +0100	[thread overview]
Message-ID: <1354494476.2156.15.camel@laptop> (raw)
In-Reply-To: <50B13522.1000003@gmail.com>

Sorry for the late reply,

just a small followup. What you are saying Milan, is absolutely true,
but for misaligned HW Raid setups, a huge block size together with
O_DIRECT will bypass the OS'es caching strategy and the controller
(knowing the actual layout) has a way better chance of compensating
unnecessary IO with it's optimized write back caching (in the linear
read-modify-write case of reenrypt). For rather small block sizes (near
the size of a RAID stripe) in a misaligned case, such a
compensation/elimination of unneeded IO is much harder.

So small blocksize, lack of topology information, misalignment -> approx
50% loss in performance (as surveilled by opener)

Regards

-Sven


On Sat, 2012-11-24 at 21:59 +0100, Milan Broz wrote:
> On 11/24/2012 06:01 PM, Sven Eschenberg wrote:
> 
> > BTW, what exactly are you referring to, when you talk about 64 MB blocksize?
> 
> Here cryptsetup-reencrypt is in principle simple program, it reads a "block"
> and write it back to device with new encryption parameters (and optionally with
> some different offset). So block here is meant as an unit which is handled in one
> reencryption step.
> (But the real atomic unit of encryption is still 512B block of course.)
> 
> There is no requirement this block to be aligned to underlying hw alignment
> (but if it is misaligned, the same performance degradation problems apply of course).
> 
> Milan
> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt

  reply	other threads:[~2012-12-03  1:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-23  4:12 [dm-crypt] Reconsidering default options for cryptsetup-reencrypt Karol Babioch
2012-11-23  6:07 ` Arno Wagner
2012-11-23  9:00   ` Milan Broz
2012-11-23  9:27     ` Arno Wagner
2012-11-23  9:42       ` Milan Broz
2012-11-24 17:01   ` Sven Eschenberg
2012-11-24 20:59     ` Milan Broz
2012-12-03  0:27       ` DarKRaveR [this message]
2012-11-23  8:49 ` Milan Broz

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=1354494476.2156.15.camel@laptop \
    --to=dark@verfeiert.org \
    --cc=dm-crypt@saout.de \
    /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