io_uring/alloc_cache: shrink default max entries from 512 to 128
authorJens Axboe <axboe@kernel.dk>
Sun, 17 Mar 2024 00:23:44 +0000 (18:23 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 15 Apr 2024 14:10:25 +0000 (08:10 -0600)
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>
io_uring/alloc_cache.h

index bf2fb26a65398f231ec16bb227872f6d116ca592..138ad14b0b12cddc949e55486f19ea722f6cf2a6 100644 (file)
@@ -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;