Zero-Copy Improvement and Best Practice
summary
Benchmarks show Vhost dequeue zero-copy trades a small (~2%) loss on tiny packets for big gains on large frames: parity at 512B and >20% throughput lift at 1518B; VM2VM TCP jumps from ~25G to ~40G in tests. Best practices: use DPDK 18.02, set Virtio queue size larger than NIC rings, tune NIC Free Threshold to TXQ minimum burst, and prefer huge page 1G to avoid costly guest address lookups; enable Virtio ANY_LAYOUT for further forwarding speedups. Cross-node CPU/memory placement hurts Mpps; zero-copy recovers some (e.g. 3.2→5.0 Mpps).
AI-written summary · about
chapters (12)
- 0:00Introduction and agenda
- 1:06VM2NIC basic flow explained
- 2:20Dequeue zero-copy process details
- 4:06Releasing descriptor problems
- 5:55Resource release settings
- 7:04Zero-copy performance gains
- 8:40VM2VM scenario comparison
- 11:41Virtio ANY_LAYOUT benefits
- 12:55CPU Vhost vs Virtio differences
- 13:59Cross-node performance impact
- 16:26Best practices and conclusions
- 17:31Q&A session starts
