Klaus Jensen d38cc6fd1c hw/nvme: reenable cqe batching
Commit 2e53b0b45024 ("hw/nvme: Use ioeventfd to handle doorbell
updates") had the unintended effect of disabling batching of CQEs.

This patch changes the sq/cq timers to bottom halfs and instead of
calling nvme_post_cqes() immediately (causing an interrupt per cqe), we
defer the call.

                   | iops
  -----------------+------
    baseline       | 138k
    +cqe batching  | 233k

Fixes: 2e53b0b45024 ("hw/nvme: Use ioeventfd to handle doorbell updates")
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Jinhao Fan <fanjinhao21s@ict.ac.cn>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
2022-11-02 09:23:05 +01:00
..
2022-10-25 11:37:17 -04:00
2022-10-27 11:34:31 +01:00
2022-10-31 06:28:43 -04:00
2022-10-30 15:07:25 -04:00
2022-10-31 11:32:07 +01:00
2022-10-31 18:48:23 +00:00
2022-11-02 09:23:05 +01:00
2022-09-04 07:02:56 +01:00
2022-10-27 11:34:31 +01:00
2022-10-24 11:20:15 +02:00
2022-10-31 20:37:58 +00:00
Hi,
2022-10-30 18:31:59 -04:00