Re: [RFC 10/11] aio-posix: avoid EventNotifier for cqe_handler_bh

2025-05-29 Thread Eric Blake
On Wed, May 28, 2025 at 03:09:15PM -0400, Stefan Hajnoczi wrote: > fdmon_ops->wait() is called with notify_me enabled. This makes it an > expensive place to call qemu_bh_schedule() because aio_notify() invokes > write(2) on the EventNotifier. > > Moving qemu_bh_schedule() after notify_me is reset

[RFC 10/11] aio-posix: avoid EventNotifier for cqe_handler_bh

2025-05-28 Thread Stefan Hajnoczi
fdmon_ops->wait() is called with notify_me enabled. This makes it an expensive place to call qemu_bh_schedule() because aio_notify() invokes write(2) on the EventNotifier. Moving qemu_bh_schedule() after notify_me is reset improves IOPS from 270k to 300k IOPS with --blockdev file,aio=io_uring. I