mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 14:20:52 +07:00
948a8ac296
Updating the event index has a memory barrier and causes more work on the other side to actually signal the event. It is unnecessary if a new buffer has already appeared on the ring, so poll once before doing the update. The effect of this on the 0.9 ring implementation is pretty much invisible, but on the new-style ring it provides a consistent 3% performance improvement. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> |
||
---|---|---|
.. | ||
main.c | ||
main.h | ||
Makefile | ||
noring.c | ||
ptr_ring.c | ||
README | ||
ring.c | ||
run-on-all.sh | ||
virtio_ring_0_9.c | ||
virtio_ring_inorder.c | ||
virtio_ring_poll.c |
Partial implementation of various ring layouts, useful to tune virtio design. Uses shared memory heavily. Typical use: # sh run-on-all.sh perf stat -r 10 --log-fd 1 -- ./ring