From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] dm-crypt on raid 5 - having all disks on single controller makes dm-crypt slower
Date: Wed, 26 Feb 2014 17:34:25 +0100 [thread overview]
Message-ID: <20140226163425.GA28408@tansi.org> (raw)
In-Reply-To: <2935ad2180bd5cb44c3539fcc5e5dbc1.squirrel@ssl.verfeiert.org>
Just on a meta-layer: This is a known issue, but it seems the
fix is not quite clear. If you are really concerned, put
the encryption below the RAID, but that has other issues.
Arno
On Wed, Feb 26, 2014 at 16:58:15 CET, Sven Eschenberg wrote:
> My best guess here is this:
>
> There is one work queue (IO QUEUE) per controller. Which in turn means
> that dm-crypt is fed by two queues and as such decides to have one kworker
> instance per queue. I might be completely wrong though. (Actually there's
> still mdraid, which seems to have accordingly 1/2 queues).
>
> Regards
>
> -Sven
>
>
> On Wed, February 26, 2014 16:12, "C. Dominik Bódi" wrote:
> > Am 26.02.2014 00:58, schrieb shmick@riseup.net:
> >> *only* 150 ?
> >> there's lots of numbers here but maybe we should work backwards and KIS
> >> ask yourself what do you want to achieve ?
> >> when you know the results you want and/or need (2 different things) you
> >> can work backwards & figure out out how to get there
> >> do you *need* to have a certain read/write speed for your application or
> >> desired conclusion in mind ?
> > Well, yes, I'd like to have as much throughput as possible. The cpu is a
> > quad core with HT, so could dm-crypt not utilize 4 threads when there
> > are 4 disks in the raid5 array.
> >
> > An the thing is:
> >
> > 4 disks on controller A => dm-crypt 150MB/s
> > 2 disk on controller A, 2 disks on controller B => dm-crypt 300MB/s
> >
> > I don't understand that behaviour. Why does it make a difference for
> > dm-crypt if the disks sit on different controllers or not? Why should I
> > waste speed when dm-crypt could easily utilize 4 worker threads and max
> > out the raid5 performance? Why doesn't it do so automatically. Is there
> > any means to make dm-crypt use 4 threads even if all 4 drives sit on a
> > single controller?
> >
>
>
> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt
--
Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@wagner.name
GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718
----
A good decision is based on knowledge and not on numbers. - Plato
prev parent reply other threads:[~2014-02-26 16:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-25 17:21 [dm-crypt] dm-crypt on raid 5 - having all disks on single controller makes dm-crypt slower "C. Dominik Bódi"
2014-02-25 23:58 ` shmick
2014-02-26 15:12 ` "C. Dominik Bódi"
2014-02-26 15:58 ` Sven Eschenberg
2014-02-26 16:34 ` Arno Wagner [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=20140226163425.GA28408@tansi.org \
--to=arno@wagner.name \
--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.