diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2020-08-06 14:18:02 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2020-08-13 13:34:14 +0100 |
commit | 44277bf914471962c9e88e09c859aae65ae109c4 (patch) | |
tree | 0f121653a21378b00e3605f85e154ec486629f91 /scripts/cocci-macro-file.h | |
parent | 601829f88e0eff8f54fa08b7a69b0774a9c259c8 (diff) |
aio-posix: keep aio_notify_me disabled during polling
Polling only monitors the ctx->notified field and does not need the
ctx->notifier EventNotifier to be signalled. Keep ctx->aio_notify_me
disabled while polling to avoid unnecessary EventNotifier syscalls.
This optimization improves virtio-blk 4KB random read performance by
18%. The following results are with an IOThread and the null-co block
driver:
Test IOPS Error
Before 244518.62 ± 1.20%
After 290706.11 ± 0.44%
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20200806131802.569478-4-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts/cocci-macro-file.h')
0 files changed, 0 insertions, 0 deletions