lkml.org 
[lkml]   [2019]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject[PATCH 0/2] optimise ctx's refs grabbing in io_uring
    Date
    Optimise percpu_ref_tryget() by not calling it for each request, but
    batching it. This gave a measurable performance boost, though with
    a bit unconventional(/unrealistic?) workload.

    There is still one step to add, which is not implemented with
    patchset, and will amortise the effect calls to io_uring_enter().

    rebased on top of for-5.6/io_uring

    Pavel Begunkov (2):
    pcpu_ref: add percpu_ref_tryget_many()
    io_uring: batch getting pcpu references

    fs/io_uring.c | 11 ++++++++---
    include/linux/percpu-refcount.h | 24 ++++++++++++++++++++----
    2 files changed, 28 insertions(+), 7 deletions(-)

    --
    2.24.0

    \
     
     \ /
      Last update: 2019-12-17 23:29    [W:4.570 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site