aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorJason Wang <[email protected]>2025-07-14 08:47:55 +0000
committerMichael S. Tsirkin <[email protected]>2025-08-01 13:11:09 +0000
commit45347e79b544928d8ace9eb07c4d8f4fcc525752 (patch)
tree9862edb098eecdd63eee100f10766795cc37ae7f /tools/perf/scripts/python/sched-migration.py
parentvhost: basic in order support (diff)
downloadkernel-45347e79b544928d8ace9eb07c4d8f4fcc525752.tar.gz
kernel-45347e79b544928d8ace9eb07c4d8f4fcc525752.zip
vhost_net: basic in_order support
This patch introduces basic in-order support for vhost-net. By recording the number of batched buffers in an array when calling `vhost_add_used_and_signal_n()`, we can reduce the number of userspace accesses. Note that the vhost-net batching logic is kept as we still count the number of buffers there. Testing Results: With testpmd: - TX: txonly mode + vhost_net with XDP_DROP on TAP shows a 17.5% improvement, from 4.75 Mpps to 5.35 Mpps. - RX: No obvious improvements were observed. With virtio-ring in-order experimental code in the guest: - TX: pktgen in the guest + XDP_DROP on TAP shows a 19% improvement, from 5.2 Mpps to 6.2 Mpps. - RX: pktgen on TAP with vhost_net + XDP_DROP in the guest achieves a 6.1% improvement, from 3.47 Mpps to 3.61 Mpps. Acked-by: Jonah Palmer <[email protected]> Acked-by: Eugenio PĂ©rez <[email protected]> Signed-off-by: Jason Wang <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Tested-by: Lei Yang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions