projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b99182c
)
bio: shrink max number of pcpu cached bios
author
Pavel Begunkov
<asml.silence@gmail.com>
Wed, 2 Nov 2022 15:18:23 +0000
(15:18 +0000)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 16 Nov 2022 16:44:26 +0000
(09:44 -0700)
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>
Link:
https://lore.kernel.org/r/bc198e8efb27d8c740d80c8ce477432729075096.1667384020.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
patch
|
blob
|
history
diff --git
a/block/bio.c
b/block/bio.c
index 14a7105231d2468a7d3e4e3f78a9c187655b156f..ab59a491a883e3b657edc27b8f8cfd042843f9e0 100644
(file)
--- 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;