From d1c39a1612e2a2433dc6b0f990eb74892e4654ca Mon Sep 17 00:00:00 2001 From: Florian Fischer <florian.fischer@muhq.space> Date: Wed, 18 May 2022 18:11:39 +0200 Subject: [PATCH] use batch size 3 --- Makefile | 2 +- io_uring_batch.c => io_uring_batch3.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename io_uring_batch.c => io_uring_batch3.c (95%) diff --git a/Makefile b/Makefile index b416eec..f1c5355 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ BENCH_MAIN := bench.c SYSCALLS := blocking epoll \ paio_sig paio_thrd linux_aio \ - io_uring io_uring_batch io_uring_sqpoll io_uring_no_syscall + io_uring io_uring_batch3 io_uring_sqpoll io_uring_no_syscall OBJ := $(addprefix bench-,$(SYSCALLS)) diff --git a/io_uring_batch.c b/io_uring_batch3.c similarity index 95% rename from io_uring_batch.c rename to io_uring_batch3.c index 552c5e3..8920cdd 100644 --- a/io_uring_batch.c +++ b/io_uring_batch3.c @@ -7,7 +7,7 @@ struct io_uring ring; -static const unsigned BATCH_SIZE = 10; +static const unsigned BATCH_SIZE = 3; void init(__attribute__((unused)) int fd) { int res = io_uring_queue_init(BATCH_SIZE, &ring, 0); -- GitLab