-
Notifications
You must be signed in to change notification settings - Fork 183
netkvm_buffer_shortage: allow non-increasing packet lose #4384
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
base: master
Are you sure you want to change the base?
Conversation
WalkthroughAdds RX/TX queue size parameters to the NIC config string and relaxes the test's ping-loss evaluation to accept non-increasing (stable or decreasing) packet-loss trends; associated comments and error message were updated. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Tester as Test Runner
participant QEMU as QEMU VM
participant Guest as Guest OS
participant Analyzer as analyze_ping_results
Tester->>QEMU: start VM with updated `nic_extra_params_nic1` (rx_queue_size, tx_queue_size)
QEMU->>Guest: boot
Tester->>Guest: run ping workload
Guest-->>Tester: ping results (packet loss sequence)
Tester->>Analyzer: analyze ping results
alt non-increasing or decreasing
Analyzer-->>Tester: pass (accept stable/decreasing loss)
else increasing trend
Analyzer-->>Tester: fail with updated error message (include results)
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Comment |
|
Test Result: PASS |
|
@leidwang Hi Leidong, could you please help me review this patch? |
| client_cmd = "start cmd /c py ${client_script} 99999 %s ${port_num}" | ||
| param_name = "MinRxBufferPercent" | ||
| param_values = "0 25 50 75 100" | ||
| nic_extra_params_nic1 += ",rx_queue_size=1024,tx_queue_size=256" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to add these parameters to nic1 now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I initially pushed the wrong code version to our new test case creation. I found it while debugging the KVMAUTOMA-4186 Jira issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, if so, you can add some notes in commit message, to clarify why add this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All done. Please help review the rest. Thanks :)
eb1b048 to
587dae2
Compare
This patch fixes two places. 1. Hotfix the extra params for nic1 2. Change the strict decreasing requirement to allow a plateau at optimal performance. Fixes false failure when packet loss remains 0%. Signed-off-by: Wenkang Ji <[email protected]>
587dae2 to
753683a
Compare
This patch fixes two places.
ID: 4186
Signed-off-by: Wenkang Ji [email protected]
Summary by CodeRabbit
New Features
Improvements
Chores