Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1246236rwl; Fri, 31 Mar 2023 08:31:20 -0700 (PDT) X-Google-Smtp-Source: AKy350Yi6JG/Sm+uck7tInapzb11u3G7S3NxX94VIT/HJEjGKOo1NiN6z1ymAKv8br9zTHTiZAPV X-Received: by 2002:a05:6a20:7fa4:b0:d9:ec4b:82b4 with SMTP id d36-20020a056a207fa400b000d9ec4b82b4mr7501701pzj.1.1680276680112; Fri, 31 Mar 2023 08:31:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680276680; cv=none; d=google.com; s=arc-20160816; b=hdY8NojH0bb5k6IfWa8CzsnN030efE8Mq1syb3POnDnjJ+YXbJAnbwX/EOj8M1Fs0A BBf6iJbw5TO2dzrwlVFf+7Z4cGPpysziT62/HuTanDqN0QBIpPav+bRBay7WFBoAWPst Nu/prE45Gem+5LHaU8djBJKZgvEp4ZCB2p1c1bDxc9c1RICMs3ShZREveTj3WmHxVFm5 UI54xmfKvJbOWiMz+e3MLZpiO8yQgLfBOFTl0eHwv0z7m7pxJGY4ea3Vcd2akH7d+iNm wqPLa0LdQYMSbOgN0+nrLzGmwh4p34TeQRTxLqybOnAwajz5RNXMIcxmzs3ycRGP0HPW B97Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=jGf9Ke6hyi1zrPw7y/bgSfULaNauXRdwBBZ93BW0UFo=; b=JKZFgTBnh/gtUfEtvIrRbGwNwsqQ9abTIWCMW7PlMx+USwNsRzAXYr9Dz9rf4Osk+U nOrU+Wppqq14ykPxmvLsh8D9mGAVoCTBLBCrUwumOQVo4fT62Q599h5bHXVIot5dx+Pb 37takzanYeLKokgKCbhsSkFwirAgwarOZxjFI4BreV4JrgzgtOVqEnVNK2zW1Z5w+Jnw OLGxZHgtyrTLYeKl3M0DRwB8nBBHxKhtmdxkfQhfr90YZFtGgCOte8vP1P0g9NkHiPpf srRa8768SokKtYfCLjZBUmmORfY5FXxGVyjaokOQHolAClWf1Z//YYG9MBSp+rW398yb qwtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=62Cp4IX7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c2-20020aa79522000000b0062a4f62c018si2712066pfp.10.2023.03.31.08.31.06; Fri, 31 Mar 2023 08:31:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=62Cp4IX7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233151AbjCaPSN (ORCPT + 99 others); Fri, 31 Mar 2023 11:18:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233149AbjCaPSL (ORCPT ); Fri, 31 Mar 2023 11:18:11 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 716BC2127 for ; Fri, 31 Mar 2023 08:18:10 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id fy10-20020a17090b020a00b0023b4bcf0727so23706006pjb.0 for ; Fri, 31 Mar 2023 08:18:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; t=1680275890; x=1682867890; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=jGf9Ke6hyi1zrPw7y/bgSfULaNauXRdwBBZ93BW0UFo=; b=62Cp4IX7lIb21FcLQijDFcnypwkk55LKaHk5Dzg1khoFzy1M4sfueHgIxGJa+5GcqN 0/gXVgbJmd7CUjZ11wp7WmizldO3nLyehZPz8RmxBu2UOlBVJTdX5kf3+OB3CFF3Gf3e 0d3uLLctuvDPRUtX63ZRWqy5bgwtjG5Zgox0mjqgC2VFpl6OJfy3haRteglh57I3/eC4 4g6zspqoqD6Un06Tl5Cq9LHMNwiB4Qvdc8lQtrHCNk+hNh05UbXKGDu3wy9+TaGyE1zy HUoNey0KFPZ9zuvQmnWSRZIUv0ygE6nBs7bAq0wd00hw4PkSoEYoyzuMKUjWmsetJMFA Zs+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680275890; x=1682867890; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jGf9Ke6hyi1zrPw7y/bgSfULaNauXRdwBBZ93BW0UFo=; b=SwFHjgC6kyK5MgQeK0oeaIoSoxZZ5vBLuJ+ZBPH4OCuSQG58sy9/FAhXn+5UuDTBnz IIw+2V4xtAS6F70OQKfr+42b6ElZDFQdLBz5jffWTkHVDTxnjplUsVq9bsMX5Z4dnKFC e69zaFL305XxGMPZ7vg65zknHaHxaDW59tC/TLRhktl5RzA+mGPP6by8BWWZp3DDqmmW wEOp3j17GFs2Yv5Chz7IhRjw8bEsnsd7iJ0nQrvr/+tqzoFaIXf7czAvm2SpN7afLtaG u6NCnghftCjHs3erPw6AV3owONWUDocKhhkUba42suwVuSxJHxlQqCGs7LRWPNZvNVF3 cH7g== X-Gm-Message-State: AAQBX9cGeZKnvh+CSaerx6OjegREt39DJRBoq2Wq88f8NXV5jcDqzMaI ohIim1s88UKafC3f4O2OzQMw0w== X-Received: by 2002:a17:903:1384:b0:19e:94ff:6780 with SMTP id jx4-20020a170903138400b0019e94ff6780mr6645806plb.6.1680275889647; Fri, 31 Mar 2023 08:18:09 -0700 (PDT) Received: from [192.168.1.136] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id kr15-20020a170903080f00b001a1ca6dc38csm1695215plb.118.2023.03.31.08.18.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 31 Mar 2023 08:18:09 -0700 (PDT) Message-ID: <57c89d5c-c05d-6be4-0e36-40b4a679983c@kernel.dk> Date: Fri, 31 Mar 2023 09:18:08 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [RFC 00/11] optimise registered buffer/file updates To: Pavel Begunkov , io-uring@vger.kernel.org Cc: linux-kernel@vger.kernel.org References: Content-Language: en-US From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=3.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: *** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/30/23 8:53 AM, Pavel Begunkov wrote: > Updating registered files and buffers is a very slow operation, which > makes it not feasible for workloads with medium update frequencies. > Rework the underlying rsrc infra for greater performance and lesser > memory footprint. > > The improvement is ~11x for a benchmark updating files in a loop > (1040K -> 11468K updates / sec). > > The set requires a couple of patches from the 6.3 branch, for that > reason it's an RFC and will be resent after merge. Looks pretty sane to me, didn't find anything immediately wrong. I do wonder if we should have a conditional uring_lock helper, we do have a few of those. But not really related to this series, as it just moves one around. -- Jens Axboe