[lkml]   [2019]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH v2 0/3] optimise ctx's refs grabbing in io_uring
Optimise percpu_ref_tryget() by not calling it for each request, but
batching it. This gave a measurable ~5% performance boost for large QD.

v2: fix uncommited plug (Jens Axboe)
better comments for percpu_ref_tryget_many (Dennis Zhou)
amortise across io_uring_enter() boundary

Pavel Begunkov (3):
pcpu_ref: add percpu_ref_tryget_many()
io_uring: batch getting pcpu references
io_uring: batch get(ctx->ref) across submits

fs/io_uring.c | 29 ++++++++++++++++++++++++++---
include/linux/percpu-refcount.h | 26 +++++++++++++++++++++-----
2 files changed, 47 insertions(+), 8 deletions(-)


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