summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/compaction-times.py
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2025-07-14 16:47:54 +0800
committerMichael S. Tsirkin <mst@redhat.com>2025-08-01 09:11:09 -0400
commit67a873df0c410915275f735fedb401b9637d6faf (patch)
treef7fbd182434e10e7bfc20d7c06e4faa9cf4aed27 /tools/perf/scripts/python/compaction-times.py
parentb4ba1207d45adaafa2982c035898b36af2d3e518 (diff)
vhost: basic in order support
This patch adds basic in order support for vhost. Two optimizations are implemented in this patch: 1) Since driver uses descriptor in order, vhost can deduce the next avail ring head by counting the number of descriptors that has been used in next_avail_head. This eliminate the need to access the available ring in vhost. 2) vhost_add_used_and_singal_n() is extended to accept the number of batched buffers per used elem. While this increases the times of userspace memory access but it helps to reduce the chance of used ring access of both the driver and vhost. Vhost-net will be the first user for this. Acked-by: Jonah Palmer <jonah.palmer@oracle.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Message-Id: <20250714084755.11921-3-jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Tested-by: Lei Yang <leiyang@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions