• Guixin Liu's avatar
    nvmet-rdma: use sbitmap to replace rsp free list · 40f0e5dc
    Guixin Liu authored
    We can use sbitmap to manage all the nvmet_rdma_rsp instead of using
    free lists and spinlock, and we can use an additional tag to
    determine whether the nvmet_rdma_rsp is extra allocated.
    
    In addition, performance has improved:
    1. testing environment is local rxe rdma devie and mem-based
    backstore device.
    2. fio command, test the average 5 times:
    fio -filename=/dev/nvme0n1 --ioengine=libaio -direct=1
    -size=1G -name=1 -thread -runtime=60 -time_based -rw=read -numjobs=16
    -iodepth=128 -bs=4k -group_reporting
    3. Before: 241k IOPS, After: 256k IOPS, an increase of about 5%.
    Signed-off-by: default avatarGuixin Liu <kanie@linux.alibaba.com>
    Reviewed-by: default avatarJens Axboe <axboe@kernel.dk>
    40f0e5dc
rdma.c 52.4 KB