Re: [PATCH net-next v7 4/4] test/vsock: vsock_perf utility

From: Stefano Garzarella
Date: Wed Jan 11 2023 - 03:31:31 EST


On Tue, Jan 10, 2023 at 10:18:32AM +0000, Arseniy Krasnov wrote:
This adds utility to check vsock rx/tx performance.

Usage as sender:
./vsock_perf --sender <cid> --port <port> --bytes <bytes to send>
Usage as receiver:
./vsock_perf --port <port> --rcvlowat <SO_RCVLOWAT>

Signed-off-by: Arseniy Krasnov <AVKrasnov@xxxxxxxxxxxxxx>
---
tools/testing/vsock/Makefile | 3 +-
tools/testing/vsock/README | 34 +++
tools/testing/vsock/vsock_perf.c | 427 +++++++++++++++++++++++++++++++
3 files changed, 463 insertions(+), 1 deletion(-)
create mode 100644 tools/testing/vsock/vsock_perf.c

Reviewed-by: Stefano Garzarella <sgarzare@xxxxxxxxxx>