From: Linus Walleij <linus.walleij@linaro.org>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
ksummit-discuss@lists.linux-foundation.org,
Greg KH <gregkh@linuxfoundation.org>, Jens Axboe <axboe@fb.com>,
hare@suse.de, Tejun Heo <tj@kernel.org>,
Omar Sandoval <osandov@osandov.com>,
Christoph Hellwig <hch@lst.de>
Subject: Re: [Ksummit-discuss] [TECH TOPIC] Addressing long-standing high-latency problems related to I/O
Date: Thu, 22 Sep 2016 13:06:47 +0200 [thread overview]
Message-ID: <CACRpkdayND7+8AYcxTDCUC+y9RJYDWsN8r-mddW8xw9Y8Sn_Lg@mail.gmail.com> (raw)
In-Reply-To: <CAPDyKFoDFbOuL2y-OvAFwMY9nu_kDDyV0o9h-2F+Ji2s5MEutw@mail.gmail.com>
On Thu, Sep 22, 2016 at 11:18 AM, Ulf Hansson <ulf.hansson@linaro.org> wrote:
> On 16 September 2016 at 10:59, Linus Walleij <linus.walleij@linaro.org> wrote:
>> I only have handwavy arguments about the latter being the
>> case which is why I'm working on a patch to MMC/SD to
>> switch to mq as an RFT. It's taking some time though, alas
>> I'm not very smart.
>
> I appreciate this! I don't expect it to be easy, as you would probably
> have to rip out most of the mmc block/core code related to request
> management.
>
> For example, I guess the asynchronous request mechanism doesn't really
> fit into blkmq, does it?
Nopes. I have no idea how to make that work.
I got blk-mq running for MMC/SD today and I see a gross performance
regression, from 37 MB/s to 27 MB/s on Ux500 7.38 GB eMMC
with a simple dd test:
BEFORE switching to MQ:
time dd if=/dev/mmcblk3 of=/dev/null bs=1M count=1024
1073741824 bytes (1.0GB) copied, 27.530335 seconds, 37.2MB/s
real 0m 27.54s
user 0m 0.02s
sys 0m 7.56s
AFTER switching to MQ:
time dd if=/dev/mmcblk3 of=/dev/null bs=1M count=1024
1073741824 bytes (1.0GB) copied, 37.170990 seconds, 27.5MB/s
real 0m 37.18s
user 0m 0.02s
sys 0m 7.32s
I will however post my hacky patch as a RFD to the blockdevs and
the block maintainers, along with the numbers and a speculation
about what may be causing it. asynchronous requests (request
pipelining) is one thing, another thing is front/back merge in
the block layer I guess.
I think I should give the blkdevs will have the opportunity to tell me
off for all the stupid ways in which I should *not* be using MQ
before we draw any conclusions from this...
Yours,
Linus Walleij
next prev parent reply other threads:[~2016-09-22 11:06 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-16 7:55 Paolo Valente
2016-09-16 8:24 ` Greg KH
2016-09-16 8:59 ` Linus Walleij
2016-09-16 9:10 ` Bart Van Assche
2016-09-16 11:24 ` Linus Walleij
2016-09-16 11:46 ` Arnd Bergmann
2016-09-16 13:10 ` Paolo Valente
2016-09-16 13:36 ` Linus Walleij
2016-09-16 11:53 ` Bart Van Assche
2016-09-22 9:18 ` Ulf Hansson
2016-09-22 11:06 ` Linus Walleij [this message]
2016-09-16 15:15 ` James Bottomley
2016-09-16 18:48 ` Paolo Valente
2016-09-16 19:36 ` James Bottomley
2016-09-16 20:13 ` Paolo Valente
2016-09-19 8:17 ` Jan Kara
2016-09-17 10:31 ` Linus Walleij
2016-09-21 13:51 ` Grant Likely
2016-09-21 14:30 ` Bart Van Assche
2016-09-21 14:37 ` Paolo Valente
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=CACRpkdayND7+8AYcxTDCUC+y9RJYDWsN8r-mddW8xw9Y8Sn_Lg@mail.gmail.com \
--to=linus.walleij@linaro.org \
--cc=axboe@fb.com \
--cc=b.zolnierkie@samsung.com \
--cc=gregkh@linuxfoundation.org \
--cc=hare@suse.de \
--cc=hch@lst.de \
--cc=ksummit-discuss@lists.linux-foundation.org \
--cc=osandov@osandov.com \
--cc=tj@kernel.org \
--cc=ulf.hansson@linaro.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