public inbox for [email protected]
 help / color / mirror / Atom feed
From: Bernd Schubert <[email protected]>
To: Jens Axboe <[email protected]>,
	"[email protected]" <[email protected]>
Cc: Ming Lei <[email protected]>,
	Pavel Begunkov <[email protected]>,
	Miklos Szeredi <[email protected]>
Subject: Re: SQPOLL / uring_cmd_iopoll
Date: Mon, 24 Apr 2023 12:55:48 +0000	[thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>

On 4/22/23 15:40, Bernd Schubert wrote:
> On 4/22/23 04:13, Jens Axboe wrote:

> 
> Just gave it a quick file creation/removal run with single threaded 
> bonnie++
> and performance is actually lower than before (around 8000 creates/s 
> without
> IORING_SETUP_SQPOLL (adding IORING_SETUP_IOPOLL doesn't help either) and
> about 5000 creates/s with IORING_SETUP_SQPOLL). With plain /dev/fuse
> it is about 2000 creates/s.
> Main improvement comes from ensuring request submission
> (application) and request handling (ring/thread) are on the same core.
> I'm running into some scheduler issues, which I work around for now using
> migrate_disable()/migrate_enable() in before/after fuse request waitq,
> without that performance for metadata requests is similar to plain
> /dev/fuse.


Btw, I have an idea. For sync requests the initial thread could do the 
polling, like

right now it is:
app -> vfs/fuse -> fill ring req -> io_uring_cmd_done -> waitq-wait

could become
app ->vfs/fuse  -> fill ring req -> io_uring_cmd_done -> poll ring for SQ

Obviously, it is a bit more complex when there are multiple requests on 
the same ring.


For async it could be
app page cached write
	-> vfs/fuse -> fill ring req, with max 1MB requests
		-> io_uring_cmd_done
		-> check if there are completed events
		-> back to app, possibly next request
	-> async poll task/thread (similar to SQPOLL, if the ring was not 
polled for some amount of time)



I will investigate if this is feasible once I'm done with other changes.



Bernd



  reply	other threads:[~2023-04-24 12:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-21 22:09 SQPOLL / uring_cmd_iopoll Bernd Schubert
2023-04-22  2:13 ` Jens Axboe
2023-04-22 13:40   ` Bernd Schubert
2023-04-24 12:55     ` Bernd Schubert [this message]
2023-04-22 12:55 ` Ming Lei
2023-04-22 14:08   ` Jens Axboe
2023-04-23  1:06     ` Ming Lei

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 \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /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