Skip to content
Commit 43e0bbbd authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: add netmsg cache



For recvmsg/sendmsg, if they don't complete inline, we currently need
to allocate a struct io_async_msghdr for each request. This is a
somewhat large struct.

Hook up sendmsg/recvmsg to use the io_alloc_cache. This reduces the
alloc + free overhead considerably, yielding 4-5% of extra performance
running netbench.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 9731bc98
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment