From: Mike Snitzer <snitzer@redhat.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: dm-devel@redhat.com, linux-block <linux-block@vger.kernel.org>,
Alasdair G Kergon <agk@redhat.com>,
Damien Le Moal <damien.lemoal@wdc.com>,
Ignat Korchagin <ignat@cloudflare.com>,
JeongHyeon Lee <jhs2.lee@samsung.com>,
Johannes Thumshirn <johannes.thumshirn@wdc.com>,
John Dorminy <jdorminy@redhat.com>,
Mikulas Patocka <mpatocka@redhat.com>,
Ming Lei <ming.lei@redhat.com>, yangerkun <yangerkun@huawei.com>
Subject: Re: [git pull] device mapper changes for 5.9
Date: Fri, 7 Aug 2020 16:40:15 -0400 [thread overview]
Message-ID: <20200807204015.GA2178@redhat.com> (raw)
In-Reply-To: <CAHk-=wiC=g-0yZW6QrEXRH53bUVAwEFgYxd05qgOnDLJYdzzcA@mail.gmail.com>
On Fri, Aug 07 2020 at 4:11pm -0400,
Linus Torvalds <torvalds@linux-foundation.org> wrote:
> On Fri, Aug 7, 2020 at 9:03 AM Mike Snitzer <snitzer@redhat.com> wrote:
> >
> > - DM crypt improvement to optionally avoid async processing via
> > workqueues for reads and/or writes -- via "no_read_workqueue" and
> > "no_write_workqueue" features. This more direct IO processing
> > improves latency and throughput with faster storage. Avoiding
> > workqueue IO submission for writes (DM_CRYPT_NO_WRITE_WORKQUEUE) is
> > a requirement for adding zoned block device support to DM crypt.
>
> Is there a reason the async workqueue isn't removed entirely if it's not a win?
>
> Or at least made to not be the default.
I haven't assessed it yet.
There are things like rbtree sorting that is also hooked off async, but
that is more meaningful for rotational storage.
> Now it seems to be just optionally disabled, which seems the wrong way
> around to me.
>
> I do not believe async crypto has ever worked or been worth it.
> Off-loaded crypto in the IO path, yes. Async using a workqueue? Naah.
>
> Or do I misunderstand?
No, you've got it.
My thinking was to introduce the ability to avoid the workqueue code via
opt-in and then we can evaluate the difference it has on different
classes of storage.
More conservative approach that also allows me to not know the end from
the beginning... this was work driven by others so on this point I
rolled with what was proposed since I personally don't have the answer
(yet) on whether workqueue is actually helpful. Best to _really_ know
that before removing it.
I'll make a point to try to get more eyes on this to see if it makes
sense to just eliminate the workqueue code entirely (or invert the
default). Will keep you updated.
Mike
next prev parent reply other threads:[~2020-08-07 20:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-07 16:03 [git pull] device mapper changes for 5.9 Mike Snitzer
2020-08-07 16:20 ` Mike Snitzer
2020-08-07 20:11 ` Linus Torvalds
2020-08-07 20:40 ` Mike Snitzer [this message]
2020-08-18 20:39 ` John Dorminy
2020-08-18 21:02 ` Linus Torvalds
2020-08-18 21:12 ` Ignat Korchagin
2020-08-18 21:22 ` Linus Torvalds
2020-08-19 4:25 ` John Dorminy
2020-08-19 7:10 ` Damien Le Moal
2020-08-19 10:29 ` Ignat Korchagin
2020-08-07 20:40 ` pr-tracker-bot
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=20200807204015.GA2178@redhat.com \
--to=snitzer@redhat.com \
--cc=agk@redhat.com \
--cc=damien.lemoal@wdc.com \
--cc=dm-devel@redhat.com \
--cc=ignat@cloudflare.com \
--cc=jdorminy@redhat.com \
--cc=jhs2.lee@samsung.com \
--cc=johannes.thumshirn@wdc.com \
--cc=linux-block@vger.kernel.org \
--cc=ming.lei@redhat.com \
--cc=mpatocka@redhat.com \
--cc=torvalds@linux-foundation.org \
--cc=yangerkun@huawei.com \
/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.