Skip to content

Commit

Permalink
io_uring/alloc_cache: shrink default max entries from 512 to 128
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jens Axboe committed Apr 15, 2024
1 parent 29f858a commit 0ae9b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io_uring/alloc_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0ae9b9a

Please sign in to comment.