io_uring/rsrc: add custom limit for node caching
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 4 Apr 2023 12:39:57 +0000 (13:39 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Apr 2023 15:30:39 +0000 (09:30 -0600)
commit69bbc6ade9d9d4e3c556cb83e77b6f3cd9ad3d18
tree4031c5792f24423318c90df16a92e9603eb1bc71
parent757ef4682b6aa29fdf752ad47f0d63eb48b261cf
io_uring/rsrc: add custom limit for node caching

The number of entries in the rsrc node cache is limited to 512, which
still seems unnecessarily large. Add per cache thresholds and set to
to 32 for the rsrc node cache.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/d0cd538b944dac0bf878e276fc0199f21e6bccea.1680576071.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/io_uring_types.h
io_uring/alloc_cache.h
io_uring/io_uring.c
io_uring/rsrc.h