Re: switch block layer polling to a bio based model

From
Christoph Hellwig <hch@lst.de>
Date
2021-04-26 15:06:43
Also in
linux-fsdevel
Reply to
Jens Axboe, 2021-04-26
On Mon, Apr 26, 2021 at 08:57:31AM -0600, Jens Axboe wrote:
I was separately curious about this as I have a (as of yet unposted)
patchset that recycles bio allocations, as we spend quite a bit of time
doing that for high rate polled IO. It's good for taking the above 2.97M
IOPS to 3.2-3.3M IOPS, and it'd obviously be a bit more problematic with
required RCU freeing of bio's. Even without the alloc cache, using RCU
will ruin any potential cache locality on back-to-back bio free + bio
alloc.
That sucks indeed.  How do you recycle the bios?  If we make sure the
bio is only ever recycled as a bio and bi_bdev remaings valid long
enough we might not need the rcu free.  Even without your recycling
we could probably do something nasty using SLAB_TYPESAFE_BY_RCU.
Thread (21 messages) 21 messages, 3 authors, last reply 2021-04-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help