-
Notifications
You must be signed in to change notification settings - Fork 217
Allow user passed MTUs for ntttcp network perf tests. #3857
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: main
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR enables users to pass custom MTU values for Ntttcp network performance tests.
- Updated test functions in networkperf.py to accept an additional variables dictionary parameter.
- Modified perf_ntttcp in common.py to extract and apply the MTU from the provided variables.
- Updated Ntttcp performance message creation and dataclasses in ntttcp.py and messages.py to include client and server MTU fields.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
microsoft/testsuites/performance/networkperf.py | Added variables parameter to test case functions for Ntttcp performance testing. |
microsoft/testsuites/performance/common.py | Introduced MTU extraction from variables and applied MTU settings for default and sriov NICs. |
lisa/tools/ntttcp.py | Updated performance message functions to include client and server MTU parameters. |
lisa/messages.py | Added MTU fields to the network performance message dataclasses. |
@LiliDeng please let me know if anything more needs to be done on this PR. |
Please hold off on this change for now. We're currently adding a unified message for ntttcp. Once that's merged, please add the new metrics to the unified message. |
0918e8d
to
7783b9f
Compare
7783b9f
to
c9262bb
Compare
96bf6c5
to
84f05d6
Compare
Allow user passed MTUs for ntttcp network perf tests. There is a need for testing network perf with different MTU sizes. This change enables it.
8c96840
to
f580493
Compare
b4872d4
to
ad4c1bf
Compare
# typical MTU values are between 576 and 9000 | ||
# 576 is the minimum possible MTU for IPv4 and 1280 for IPv6 | ||
# 9000 is a common value for jumbo frames on Ethernet networks | ||
return 576 <= mtu <= 9000 |
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.
If someone sets the value to 570 but it runs with a different value, it should raise an exception and fail the case instead of silently using the default.
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.
set_mtu has this logic already.
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.
Based on the logic, if the MTU is out of range, the function returns false and sets MTU to None
, which is unexpected. If you want set_mtu
to fail via command, remove the check here.
There is a need for testing network perf with different MTU sizes.
This change enables it.