|
|
Subscribe / Log in / New account

Physically-contiguous buffers

Physically-contiguous buffers

Posted Jan 16, 2019 18:03 UTC (Wed) by axboe (subscriber, #904)
In reply to: Physically-contiguous buffers by abatters
Parent article: Ringing in a new asynchronous I/O API

Not only that, but you could also pre-map the SG lists, instead of having to do map SG and unmap SG for each IO. Right now the registered buffers only avoid the get_user_pages() and put_pages() for each IO, which is (by far) the biggest overhead. But if we fix the kernel parts as well, then we can avoid the dma map/unmap for each IO. That'd bypass the split as well, some quick mental math shows we should be able to kill ~5% of the overhead on my box with that.

In general we have various pieces of low hanging fruit on the block layer side, which are readily apparent now that we have an efficient interface into the kernel. Work in progress! But I'd like to wrap up io_uring first.


to post comments

Physically-contiguous buffers

Posted Jan 16, 2019 23:31 UTC (Wed) by ms-tg (subscriber, #89231) [Link]

This sort of comment by the patch author is a major example of the value of LWN


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds