summaryrefslogtreecommitdiffstats
path: root/io_uring/alloc_cache.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-03-16 18:23:44 -0600
committerJens Axboe <axboe@kernel.dk>2024-04-15 08:10:25 -0600
commit0ae9b9a14d54bd0aa68c1e8bda9dd8e6346f1d87 (patch)
tree517476c06e921ec10f2e8cc9da5bda0c3f83621b /io_uring/alloc_cache.h
parent29f858a7c6e06060bbadee6d8502df36eed888bf (diff)
downloadlinux-0ae9b9a14d54bd0aa68c1e8bda9dd8e6346f1d87.tar.gz
linux-0ae9b9a14d54bd0aa68c1e8bda9dd8e6346f1d87.tar.bz2
linux-0ae9b9a14d54bd0aa68c1e8bda9dd8e6346f1d87.zip
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: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/alloc_cache.h')
-rw-r--r--io_uring/alloc_cache.h2
1 files changed, 1 insertions, 1 deletions
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;