Repository navigation
net: improve VMXNET3 latency with MSI-X and budgeted RX - #15
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
VMXNET3 原先依赖周期轮询,增加网络等待延迟。本次接入 MSI-X(回退 MSI/轮询)和有预算的延后接收处理,并减少每包 MMIO 操作。
验证
性能与边界
2 vCPU、1 GiB、两轮各 8 MiB TCP echo,以总 payload/总时间统计单方向有效载荷:QEMU/KVM 1.412 → 8.990 MiB/s;VMware Workstation 1.309 → 30.299 MiB/s。UDP P95 分别由约 3.4–3.8 ms 降至 0.186–0.192 ms、约 3.4–3.9 ms 降至 0.070–0.094 ms。样本较小,不代表线速或所有网络工作负载。
MSI/MSI-X 仍共享固定 16 个不复用向量;用尽时安全回退轮询。本次未增加多队列/RSS/offload。
VMware 验证未完成:长时间压力和长期稳定性尚未验证;实体硬件未验证。
ReliefOS 的测试编排与 gitlink 由配套 PR ReliefOSProject/ReliefOS#93 更新。请先合并本内核 PR;如使用 squash/rebase,父仓 gitlink 需更新到最终 main 提交。