Skip to content

Conversation

@elainewu1222
Copy link

@elainewu1222 elainewu1222 commented Jul 22, 2024

Support event idx feature for virtio-blk device.
This feature could improve disk IO performance by suppressing notifications from guest to host and interrupts from host to guest, which has been already supported in virtio-net and vhost-user devices.

To achieve this, virtqueue's event-idx-related API is leveraged for avail_event field update and needs_notification check.

Fixes: #6580

@elainewu1222 elainewu1222 requested a review from a team as a code owner July 22, 2024 08:30
Copy link
Member

@rbradford rbradford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for creating this PR and you work. Please review the contributing guide for correct commit message style.

Please also include the bug numbers as "Fixes: " in your commit message.

How have you tested this and and have you included testing with the rate limiter?

desc_chain
.memory()
.write_obj(VIRTIO_BLK_S_OK as u8, request.status_addr)
.write_obj(VIRTIO_BLK_S_OK, request.status_addr)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change should not be in this PR - this change was recently made to fix an issue. Perhaps you could rebase and make sure this isn't included in this PR.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's something introduced by cargo fmt, already undo. May I know which issue is this change target to fix?

.store(write_avg, Ordering::Relaxed);

(VIRTIO_BLK_S_OK as u8, result as u32)
(VIRTIO_BLK_S_OK, result as u32)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already undo.

@elainewu1222
Copy link
Author

Thank you for creating this PR and you work. Please review the contributing guide for correct commit message style.

Please also include the bug numbers as "Fixes: " in your commit message.

How have you tested this and and have you included testing with the rate limiter?

@rbradford Commit message has been updated.
I already tested this feature, with 76% fio performance improvement in aio mode. Also test along with the rate limiter, works well.

@elainewu1222 elainewu1222 force-pushed the support-virtio-blk-event-idx branch from 947cfef to 0781e20 Compare July 23, 2024 02:33
@rbradford
Copy link
Member

Thank you for creating this PR and you work. Please review the contributing guide for correct commit message style.
Please also include the bug numbers as "Fixes: " in your commit message.
How have you tested this and and have you included testing with the rate limiter?

@rbradford Commit message has been updated. I already tested this feature, with 76% fio performance improvement in aio mode. Also test along with the rate limiter, works well.

I don't see any update in the commit message? Your changes should be squashed in your branch.

@elainewu1222 elainewu1222 force-pushed the support-virtio-blk-event-idx branch from 29a1f95 to 919c8ea Compare July 23, 2024 07:51
@elainewu1222
Copy link
Author

Thank you for creating this PR and you work. Please review the contributing guide for correct commit message style.
Please also include the bug numbers as "Fixes: " in your commit message.
How have you tested this and and have you included testing with the rate limiter?

@rbradford Commit message has been updated. I already tested this feature, with 76% fio performance improvement in aio mode. Also test along with the rate limiter, works well.

I don't see any update in the commit message? Your changes should be squashed in your branch.

@rbradford now the commit message should be good

@rbradford
Copy link
Member

Your commit is lacking a SoB - "git commit --amend -s" will add it.

Support event idx feature for virtio-blk device.
This feature could improve disk IO performance by suppressing
notifications from guest to host and interrupts from host to
guest, which has been already supported in virtio-net and
vhost-user devices.

To achieve this, virtqueue's event-idx-related API is
leveraged for avail_event field update and needs_notification
check.

Fixes: cloud-hypervisor#6580
Signed-off-by: wuxinyue <[email protected]>
@elainewu1222 elainewu1222 force-pushed the support-virtio-blk-event-idx branch from 919c8ea to 8f2f503 Compare July 23, 2024 10:57
@elainewu1222
Copy link
Author

Your commit is lacking a SoB - "git commit --amend -s" will add it.

done

@rbradford rbradford added this pull request to the merge queue Jul 23, 2024
Merged via the queue into cloud-hypervisor:main with commit a243870 Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🆕 New

Development

Successfully merging this pull request may close these issues.

EVENT_IDX support to virtio-block

2 participants