• Jens Axboe's avatar
    io_uring: add netmsg cache · 43e0bbbd
    Jens Axboe authored
    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>
    43e0bbbd
net.c 21.1 KB