From: Tracy Reed <treed@ultraviolet.org>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] poor mysqldump performance
Date: Fri, 24 Feb 2012 14:30:20 -0800 [thread overview]
Message-ID: <20120224223020.GV22456@tracyreed.org> (raw)
In-Reply-To: <20120224200528.GA17788@tansi.org>
On Fri, Feb 24, 2012 at 09:05:29PM +0100, Arno Wagner spake thusly:
> Blocks used in dm-crypt are allways 512 Bytes in size, hence no extra reads
> or writes compared to non-encrypted disks should ever be required.
Ok, so there goes that theory.
> Please to not. ECB is massively insecure. And it will not result in reading
> less data. Well, you can do it as an experiement, but please do not use it
> when it has to be secure.
I already did a test with it and as you correctly expected, it made no
difference. We certainly won't be deploying ECB. I am aware of the same
plaintext security issues with it.
> It should not. But if you notice a difference, it may be interesting to see
> what it is.
I found no difference.
> There is also another possible factor that may make a larger or smaller
> difference: If I remember correctly, you said the dump was going to the same
> disk, but from different partitions for encrypted and non-encrypted. This may
> influence speeds. First, head seeks are dependend on seek distance. The
You remember incorrectly: The dump is being done using mysqldump on a remote
machine. So it is going over the network and writing to totally different
disks.
> regions have different data density. My observation is that disk linear
> throughput drops to less than half towards the end of many disks. And third,
> you may have a different fragmentation or data placement situation or
> filesystem parameter on both source disks.
This is a very good observation and could be part of the problem here. I have
been using different logical volumes on the same disk. I will try using the
same LV mapped with dm-crypt vs no crypto and see if that helps.
Thanks!
--
Tracy Reed
next prev parent reply other threads:[~2012-02-24 22:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-23 22:23 [dm-crypt] poor mysqldump performance Tracy Reed
2012-02-23 23:10 ` Arno Wagner
2012-02-23 23:59 ` Tracy Reed
2012-02-24 8:18 ` Milan Broz
2012-02-24 19:07 ` Tracy Reed
2012-02-24 20:05 ` Arno Wagner
2012-02-24 22:30 ` Tracy Reed [this message]
2012-02-25 2:13 ` Arno Wagner
2012-02-24 1:29 ` Alasdair G Kergon
2012-02-24 2:55 ` Tracy Reed
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=20120224223020.GV22456@tracyreed.org \
--to=treed@ultraviolet.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.