net: add basic ping/pong type workload support
authorJens Axboe <axboe@kernel.dk>
Fri, 30 Nov 2012 08:59:20 +0000 (09:59 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 30 Nov 2012 08:59:20 +0000 (09:59 +0100)
commit6f73a7f8e2498f96aeb3df6cefba2496e17aad77
tree744d0f9bdb2796e8802b8a08c2df0046e79d7b54
parentf00b210f73a8562c2cc64d73aee04875d25162b0
net: add basic ping/pong type workload support

If you use ioengine=net and then set pingpong=1, fio will operate
in a ping pong type fashion. When the reader receives a package
from the writer, it will return the package to the writer again.
The writer, in turn, will wait for this package before writing
a new package. This makes fio useful for roundrobin measurements
on networks.

The submission latency then measures how long it took to submit
a packet to the local system, while the completion latency is how
long it takes for the package to be received and returned by
the other end.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/net.c