RFC vhost: micro vhost optimization
Status from this message: Applied to dpdk-next-virtio.
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 12 repliesApplied
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | vhost: pre update used ring for Tx and Rxlib/ | +28 | 4 replies | |
| 2/3 | vhost: optimize dequeue for small packetslib/ | +36 | 4 replies | |
| 3/3 | vhost: arrange virtio_net fields for better cache sharinglib/ | +4 | 1 reply |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Rich Lane | Huawei Xie |
|---|---|---|
| Series | T-b | |
| 1/3 | ||
| 2/3 | A-b | |
| 3/3 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] [RFC] vhost: micro vhost optimization
Here is a small patch set does the micro optimization, which brings about 10% performance boost in my 64B packet testing, with the following topo:
pkt generator <----> NIC <-----> Virtio NIC
Patch 1 pre updates the used ring and update them in batch. It should be feasible from my understanding: there will be no issue, guest driver will not start processing them as far as we haven't updated the "used->idx" yet. I could miss something though.
Patch 2 saves one check for small packets (that can be hold in one desc buf and mbuf).
Patch 3 moves several frequently used fields into one cache line, for better cache sharing.
Note that this patch set is based on my latest vhost ABI refactoring patchset.
---
Yuanhan Liu (3):
vhost: pre update used ring for Tx and Rx
vhost: optimize dequeue for small packets
vhost: arrange virtio_net fields for better cache sharing
lib/librte_vhost/vhost-net.h | 8 +-- lib/librte_vhost/vhost_rxtx.c | 110 ++++++++++++++++++++++++------------------ 2 files changed, 68 insertions(+), 50 deletions(-)
Signature · 1 line
1.9.0