Skip to content

perf: improve pipe throughput and network latency - #51

Merged
Leonmmcoset merged 2 commits into
mainfrom
perf/pipe-network
Dec 4, 2026
Merged

Leonmmcoset merged 2 commits into
mainfrom
perf/pipe-network

Conversation

@VasilyZa

@VasilyZa VasilyZa commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

问题与效果

降低 SMP 下管道读写的锁竞争,改善 e1000、e1000e、VMXNET3 上的 TCP 吞吐和 UDP 尾延迟。

流程与实现

  • 管道恢复符合条件的并行传输;按就绪条件唤醒等待者,保留记录原子性和回退路径。
  • e1000 异步提交 TX DMA;e1000/e1000e 批量归还 RX 描述符。e1000e 优先使用 MSI,失败时回退到轮询。
  • 内核在完整空扫后停止同步收包,减少传输路径复制,并为轮询接口上的 UDP 单播响应保留有限预算的收包复查。

验证

  • Release 内核增量编译及生产模块布局检查通过。e1000/e1000e/VMXNET3、网络设备、RX 预算、TCP/UDP、IPv6、管道并行与唤醒、poll 唤醒定向宿主测试通过。
  • 双 vCPU QEMU/KVM、隔离 TAP,取优化前后各三轮的中位数;每轮校验 8 MiB TCP 回显和 128 个 64 字节 UDP 回显。
网卡 TCP 回显有效载荷(Mbit/s,前 → 后) UDP RTT P95(ms,前 → 后)
e1000 81.86 → 110.99 10.144 → 0.219
e1000e 76.74 → 85.22 10.158 → 0.367
VMXNET3 75.58 → 95.19 0.440 → 0.357
  • inet-signal 宿主夹具存在链接失败,已在网络优化前的 5f4ff10 复现。未进行 VMware 或实体网卡验证。

Submit e1000 DMA asynchronously, batch descriptor recycling, and enable e1000e MSI with a polling fallback. Cut empty synchronous scans and add a bounded UDP reply recheck on polling NICs.
@Leonmmcoset
Leonmmcoset merged commit 2302f4e into main Dec 4, 2026
2 checks passed
@Leonmmcoset
Leonmmcoset deleted the perf/pipe-network branch December 4, 2026 13:25
VasilyZa added a commit that referenced this pull request Dec 4, 2026
Synchronize the English and Japanese execution and network-device catalogs with the documentation merged in #51 so the strict gettext check can build both manuals.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants