From: Mike Snitzer <snitzer@redhat.com>
To: San Mehat <san@google.com>
Cc: Christophe Saout <christophe@saout.de>,
Brian Swetland <swetland@google.com>,
device-mapper development <dm-devel@redhat.com>,
andi@firstfloor.org, tj@kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Alasdair G Kergon <agk@redhat.com>, Milan Broz <mbroz@redhat.com>
Subject: cmwq and dm-crypt devices? (was: Re: md: dm-crypt: Add option to re-use a new global work-queue.)
Date: Tue, 2 Nov 2010 18:02:07 -0400 [thread overview]
Message-ID: <20101102220207.GD23680@redhat.com> (raw)
In-Reply-To: <x2h236ccac1004271358o90a80b6bi1b4099865abc81e8@mail.gmail.com>
Hi,
On Tue, Apr 27 2010 at 4:58pm -0400,
San Mehat <san@google.com> wrote:
> *ping* Any word on my previous counter-proposal? Shall I prepare
> another patch for consideration?
The new concurrency managed workqueues (cmwq) that went in to 2.6.36
_should_ hopefully obviate the need for the patch you proposed:
https://patchwork.kernel.org/patch/94179/
Some background on cmwq:
Documentation/workqueue.txt
http://lwn.net/Articles/403891/
We on the DM team haven't explored the impact cmwq has on dm-crypt
devices yet so more research and testing is needed here. But it'd be
nice to have a hypothesis on how much cmwq will help us solve the
our dm-crypt goals "for free".
[Cc'ing Tejun]
Tejun,
Your insight on how dm-crypt should be using cmwq to achieve the
following conflicting goals would be appreciated:
1) scale down the number of workqueue threads associated with N devices
(w/ 2 workqueue threads per device) so that the number of threads is
reasonable ("reasonable" is TBD but I'd imagine it doesn't buy us a
lot to have 2 single thread workqueues dedicated to each dm-crypt
device).
[seems dm-crypt will already get this "for free" using
create_singlethread_workqueue's WQ_UNBOUND?]
2) scale up the number of workqueue threads used for a single dm-crypt
device so that a device can realize per-cpu concurrency (to address
Andi's scalability concerns: https://patchwork.kernel.org/patch/244031/)
[the desired locality is currently missing due to dm-crypt's current
use of WQ_UNBOUND; so it is clear the way the workqueues are created
will be important]
Regards,
Mike
next prev parent reply other threads:[~2010-11-02 22:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-22 17:48 [PATCH] md: dm-crypt: Add option to re-use a new global work-queue San Mehat
2010-04-22 18:03 ` Milan Broz
2010-04-22 18:08 ` San Mehat
2010-04-22 18:47 ` Milan Broz
2010-04-22 19:42 ` San Mehat
2010-04-23 14:01 ` Heinz Mauelshagen
2010-04-27 20:58 ` San Mehat
2010-11-02 22:02 ` Mike Snitzer [this message]
2010-11-03 9:46 ` cmwq and dm-crypt devices? Tejun Heo
2010-11-03 11:51 ` Andi Kleen
2010-11-03 11:56 ` Milan Broz
2010-11-03 12:33 ` Andi Kleen
2010-11-03 13:02 ` Milan Broz
2010-11-03 13:18 ` Alasdair G Kergon
2010-11-03 16:13 ` Andi Kleen
2010-11-03 16:17 ` Tejun Heo
2010-11-03 16:22 ` Milan Broz
2010-11-04 9:55 ` Andi Kleen
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=20101102220207.GD23680@redhat.com \
--to=snitzer@redhat.com \
--cc=agk@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=andi@firstfloor.org \
--cc=christophe@saout.de \
--cc=dm-devel@redhat.com \
--cc=mbroz@redhat.com \
--cc=san@google.com \
--cc=swetland@google.com \
--cc=tj@kernel.org \
/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.