diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-02-12 13:24:11 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-02-12 13:24:11 -0500 |
commit | 1e5cd0a3d4585793c5a4d16ab60473a57e18af23 (patch) | |
tree | 7e7d0c4798980274f7006f55c05ef22f902a9e92 | |
parent | 27924356725df884a5351db3e930171af2ea0488 (diff) | |
download | bfs-1e5cd0a3d4585793c5a4d16ab60473a57e18af23.tar.xz |
ioq: Shrink the io_urings
-rw-r--r-- | src/ioq.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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, ¶ms); } #endif |