Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virtio-devices: block: Make latency infinite before first op #5712

Conversation

rbradford
Copy link
Member

Logically until we have handled the first operation the latency is
infinite; this logic was applied to the minimum latency originally but
this patch extends that logic to the maximum and average latency.

To prevent the initial average latency being skewed by the inclusion of
infinity the average value is initally seeded with the first measured
latency.

Fixes: #5704

Signed-off-by: Rob Bradford rbradford@rivosinc.com

@rbradford rbradford requested a review from a team as a code owner August 29, 2023 07:37
Logically until we have handled the first operation the latency is
infinite; this logic was applied to the minimum latency originally but
this patch extends that logic to the maximum and average latency.

To prevent the initial average latency being skewed by the inclusion of
infinity the average value is initally seeded with the first measured
latency.

Fixes: cloud-hypervisor#5704

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
@rbradford rbradford force-pushed the 2023-08-29-make-latency-infinite-before-data-processed branch from 1f0be41 to 9474d93 Compare August 29, 2023 08:04
@likebreath
Copy link
Member

@zhuangel This PR is a follow-up to yours (#5704), can you please take a look?

@likebreath likebreath merged commit b576602 into cloud-hypervisor:main Aug 31, 2023
21 checks passed
likebreath added a commit to likebreath/cloud-hypervisor that referenced this pull request Sep 7, 2023
There is a "LATENCY_SCALE" being used for calculating cumulative average
latency, so it should also be used for the latency of the first op.

See: cloud-hypervisor#5712

Signed-off-by: Bo Chen <chen.bo@intel.com>
rbradford pushed a commit that referenced this pull request Sep 7, 2023
There is a "LATENCY_SCALE" being used for calculating cumulative average
latency, so it should also be used for the latency of the first op.

See: #5712

Signed-off-by: Bo Chen <chen.bo@intel.com>
likebreath added a commit to likebreath/cloud-hypervisor that referenced this pull request Sep 11, 2023
rbradford pushed a commit that referenced this pull request Sep 11, 2023
See: #5712

Signed-off-by: Bo Chen <chen.bo@intel.com>
@likebreath likebreath added the bug-fix Bug fix to include in release notes label Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix Bug fix to include in release notes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants