summaryrefslogtreecommitdiffstats
path: root/src/ioq.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ioq.c')
-rw-r--r--src/ioq.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ioq.c b/src/ioq.c
index 3172f0a..50550ed 100644
--- a/src/ioq.c
+++ b/src/ioq.c
@@ -764,10 +764,8 @@ struct ioq *ioq_create(size_t depth, size_t nthreads) {
params.wq_fd = prev->ring.ring_fd;
}
- size_t entries = depth / nthreads;
- if (entries < 16) {
- entries = 16;
- }
+ // Use a page for each SQE ring
+ size_t entries = 4096 / sizeof(struct io_uring_sqe);
thread->ring_err = -io_uring_queue_init_params(entries, &thread->ring, &params);
}
#endif