summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-02-12 13:24:11 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-02-12 13:24:11 -0500
commit1e5cd0a3d4585793c5a4d16ab60473a57e18af23 (patch)
tree7e7d0c4798980274f7006f55c05ef22f902a9e92 /src
parent27924356725df884a5351db3e930171af2ea0488 (diff)
downloadbfs-1e5cd0a3d4585793c5a4d16ab60473a57e18af23.tar.xz
ioq: Shrink the io_urings
Diffstat (limited to 'src')
-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