From: "Theodore Y. Ts'o" <tytso@mit.edu>
To: Eric Biggers <ebiggers@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Alexander Viro <viro@zeniv.linux.org.uk>,
Benjamin LaHaise <bcrl@kvack.org>,
linux-aio@kvack.org,
linux-fsdevel <linux-fsdevel@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Ramji Jiyani <ramjiyani@google.com>,
Christoph Hellwig <hch@lst.de>, Oleg Nesterov <oleg@redhat.com>,
Jens Axboe <axboe@kernel.dk>, Martijn Coenen <maco@android.com>,
Xie Yongji <xieyongji@bytedance.com>
Subject: Re: [GIT PULL] aio poll fixes for 5.16-rc5
Date: Fri, 10 Dec 2021 19:45:39 -0500 [thread overview]
Message-ID: <YbP0s7E1a5s+6q9B@mit.edu> (raw)
In-Reply-To: <YbPcFIUFYmEueuXX@sol.localdomain>
On Fri, Dec 10, 2021 at 03:00:36PM -0800, Eric Biggers wrote:
>
> Isn't epoll more commonly used than aio? Either way, removing 'if EXPERT' from
> both would make sense, so that they aren't forced on just because someone didn't
> set CONFIG_EXPERT. I think that a lot of people have these options enabled but
> don't need them. Android used to be in that boat for CONFIG_AIO (i.e. it wasn't
> needed but was sometimes enabled anyway, maybe due to !CONFIG_EXPERT).
> Unfortunately Android has started depending on CONFIG_AIO, so it seems Android
> will need to keep it set, but I think most other Linux systems don't need it.
Mysql and Postgress both can use libaio, and I suspect many
distributions are compiling them with AIO enabled, since you can get
better performance with AIO. Fio also uses AIO, and many fio recipes
that are trying to benchmark file systems or block devices use
AIO/DIO.
It's fair to say that the libaio programming interface is pretty
horrendo, and so very few application programmers will happy choosing
to use it. But if you really care about storage performance, whether
you're implementing a database, or a cluster file system, it's likely
that you will find yourself deciding to try to use it.
The fact that so many storage-centric userspace programs use it
*desite* libaio's developer-hostile interface is a proof point of how
much AIO can help with performance. Maybe over time we can get folks
to switch to io_uring, and we will eventually be able to get us to the
happy place where most Linux systems won't need CONFIG_AIO. But that
day is not today. :-/
So removing the dependency on CONFIG_EXPERT is probably a good idea,
at least for now.
Cheers,
- Ted
next prev parent reply other threads:[~2021-12-11 0:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-10 18:32 [GIT PULL] aio poll fixes for 5.16-rc5 Eric Biggers
2021-12-10 22:18 ` Linus Torvalds
2021-12-10 23:00 ` Eric Biggers
2021-12-11 0:45 ` Theodore Y. Ts'o [this message]
2021-12-13 7:23 ` Christoph Hellwig
2021-12-10 22:46 ` 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=YbP0s7E1a5s+6q9B@mit.edu \
--to=tytso@mit.edu \
--cc=axboe@kernel.dk \
--cc=bcrl@kvack.org \
--cc=ebiggers@kernel.org \
--cc=hch@lst.de \
--cc=linux-aio@kvack.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maco@android.com \
--cc=oleg@redhat.com \
--cc=ramjiyani@google.com \
--cc=torvalds@linux-foundation.org \
--cc=viro@zeniv.linux.org.uk \
--cc=xieyongji@bytedance.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox