linux-sg2042/tools/virtio/ringtest
Michael S. Tsirkin 481eaec37e tools/virtio: add ringtest utilities
This adds micro-benchmarks useful for tuning virtio ring layouts.
Three layouts are currently implemented:

- virtio 0.9 compatible one
- an experimental extension bypassing the ring index, polling ring
  itself instead
- an experimental extension bypassing avail and used ring completely

Typical use:

sh run-on-all.sh perf stat -r 10 --log-fd 1 -- ./ring

It doesn't depend on the kernel directly, but it's handy
to have as much virtio stuff as possible in one tree.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2016-01-26 10:18:30 +02:00
..
Makefile tools/virtio: add ringtest utilities 2016-01-26 10:18:30 +02:00
README tools/virtio: add ringtest utilities 2016-01-26 10:18:30 +02:00
main.c tools/virtio: add ringtest utilities 2016-01-26 10:18:30 +02:00
main.h tools/virtio: add ringtest utilities 2016-01-26 10:18:30 +02:00
ring.c tools/virtio: add ringtest utilities 2016-01-26 10:18:30 +02:00
run-on-all.sh tools/virtio: add ringtest utilities 2016-01-26 10:18:30 +02:00
virtio_ring_0_9.c tools/virtio: add ringtest utilities 2016-01-26 10:18:30 +02:00
virtio_ring_poll.c tools/virtio: add ringtest utilities 2016-01-26 10:18:30 +02:00

README

Partial implementation of various ring layouts, useful to tune virtio design.
Uses shared memory heavily.