diff mbox series

[for-next,v4,5/6] bio: shrink max number of pcpu cached bios

Message ID bc198e8efb27d8c740d80c8ce477432729075096.1667384020.git.asml.silence@gmail.com (mailing list archive)
State New, archived
Headers show
Series implement pcpu bio caching for IRQ I/O | expand

Commit Message

Pavel Begunkov Nov. 2, 2022, 3:18 p.m. UTC
The downside of the bio pcpu cache is that bios of a cpu will be never
freed unless there is new I/O issued from that cpu. We currently keep
max 512 bios, which feels too much, half it.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
---
 block/bio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/block/bio.c b/block/bio.c
index d989e45583ac..6277a2f68ab8 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -27,7 +27,7 @@ 
 
 #define ALLOC_CACHE_THRESHOLD	16
 #define ALLOC_CACHE_SLACK	64
-#define ALLOC_CACHE_MAX		512
+#define ALLOC_CACHE_MAX		256
 
 struct bio_alloc_cache {
 	struct bio		*free_list;