From: Andrew Morton <akpm@linux-foundation.org>
To: ecashin@noserose.net
Cc: linux-kernel@vger.kernel.org, ecashin@coraid.com
Subject: Re: [PATCH 1/3] aoe: perform I/O completions in parallel
Date: Tue, 2 Jul 2013 14:43:26 -0700 [thread overview]
Message-ID: <20130702144326.f891debce89e6b8f82efa39c@linux-foundation.org> (raw)
In-Reply-To: <419af57660dd6fbb436e76291c1e532eede0cea3.1372710099.git.ecashin@coraid.com>
On Tue, 2 Jul 2013 14:23:51 -0700 ecashin@noserose.net wrote:
> Some users have a large AoE target while others like to use
> many AoE targets at the same time. In the latter case, there
> is an opportunity to greatly improve aggregate throughput by
> allowing different threads to complete the I/O associated
> with each target. For 36 targets, 4 KiB read throughput
> roughly doubles, for example, with these changes in place.
>
> ...
>
> --- a/drivers/block/aoe/aoecmd.c
> +++ b/drivers/block/aoe/aoecmd.c
> @@ -35,14 +35,24 @@ module_param(aoe_maxout, int, 0644);
> MODULE_PARM_DESC(aoe_maxout,
> "Only aoe_maxout outstanding packets for every MAC on eX.Y.");
>
> -static wait_queue_head_t ktiowq;
> -static struct ktstate kts;
> +/* The number of online cpus in the system,
> + * this dictates the number of ktio threads
> + * which will be spawned.
> + */
> +static int ncpus;
I can see that doing it this way simplifies the code rather a lot, but
of course CPU hotplug can and will make ncpus grossly different from
the current num_online_cpus.
I suggest it's worth adding a comment here mentioning this, and
explaining why and how that's OK. If it indeed is OK ;)
Also, these patches were sent as being from ecashin@noserose.net. I
rewrote that to ecashin@coraid.com which is what I suspect you
intended. You can do this override yourself by putting a From: line
right at the top of the changelog.
next prev parent reply other threads:[~2013-07-02 21:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-02 21:21 [PATCH 0/3] aoe: performance enhancements through v83 ecashin
2013-07-02 21:23 ` [PATCH 1/3] aoe: perform I/O completions in parallel ecashin
2013-07-02 21:43 ` Andrew Morton [this message]
2013-07-03 1:51 ` Ed Cashin
2013-07-02 21:26 ` [PATCH 2/3] aoe: update copyright date ecashin
2013-07-02 21:28 ` [PATCH 3/3] aoe: update internal version number to v83 ecashin
2013-07-03 1:44 [PATCH 0/3] aoe: performance enhancements through v83 Ed Cashin
2013-07-03 1:47 ` [PATCH 1/3] aoe: perform I/O completions in parallel Ed Cashin
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=20130702144326.f891debce89e6b8f82efa39c@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=ecashin@coraid.com \
--cc=ecashin@noserose.net \
--cc=linux-kernel@vger.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®