Commit 0ae9b9a1 authored by Jens Axboe's avatar Jens Axboe

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

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: default avatarJens Axboe <axboe@kernel.dk>
parent 29f858a7
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
/* /*
* Don't allow the cache to grow beyond this size. * 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_cache_entry {
struct io_wq_work_node node; struct io_wq_work_node node;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment