diff mbox series

io_uring/alloc_cache: shrink default max entries from 512 to 128

Message ID 72a3ccac-b97c-4e62-acd7-dc4f306eba50@kernel.dk (mailing list archive)
State New
Headers show
Series io_uring/alloc_cache: shrink default max entries from 512 to 128 | expand

Commit Message

Jens Axboe March 19, 2024, 11:37 p.m. UTC
In practice, we just need to recycle a few elements for (by far) most
use cases. Shrink the total size down from 512 to 128, which should be
more than plenty.

Signed-off-by: Jens Axboe <axboe@kernel.dk>

---
diff mbox series

Patch

diff --git a/io_uring/alloc_cache.h b/io_uring/alloc_cache.h
index bf2fb26a6539..138ad14b0b12 100644
--- a/io_uring/alloc_cache.h
+++ b/io_uring/alloc_cache.h
@@ -4,7 +4,7 @@ 
 /*
  * Don't allow the cache to grow beyond this size.
  */
-#define IO_ALLOC_CACHE_MAX	512
+#define IO_ALLOC_CACHE_MAX	128
 
 struct io_cache_entry {
 	struct io_wq_work_node node;