Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2967978pxb; Mon, 1 Nov 2021 05:32:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXAXI7s26fzmtG8TV39dQ9FkYEwPGnz+cCgHudHq511ea4bQLq9LHBWGMXkVyy4c4ITlvk X-Received: by 2002:a5d:9b86:: with SMTP id r6mr21238404iom.50.1635769970775; Mon, 01 Nov 2021 05:32:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635769970; cv=none; d=google.com; s=arc-20160816; b=yDI8aJeY9mU/MzsRttwO6bysGodV8G5QfJmqS0q9I3ARZ7W6OmHxI3iTOPE3s7upzA 8DexBNtGFJQPmvDTvL0VG7t6akjDGSwUznEXRWvYPju1wvyYZazTacjxY5MbzR8MYrLu Qv0H9zy2mbHJv5aVJCWPsd65213NnnDHhDZzs1SCssFxheZRGdyDeaa7WYtNXAQOaFjA BcV069c7zIUa/ooTUu6irb7p124km3Rva3Yt7BQtlbIy2f0rqtmbJYJThnH7YZTrhsh+ WZej0Pfz0R/kEzJu6tg6pixCS4vgPM6KNQXkvsjNY5qJpXzELAjfCyL7S4N4nN+innYu 4fmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PkMQ2aJC5jezjXsciOSDQbUm9uMWZMe4Y1Gl5dY5vr0=; b=pTCHAjX9s5Fl99KjeRtePnxYNuVM0mmB5w0XG0xq3ir0uUaBZZy/0VcRlhAcUEqn94 ghESnz9qnQwQ/w6Peqk3K43QDzN/nEaqrF8c/qWNWakws0zSQ/dnT1saq+ElbrC8B9tQ vWmIw5qWKIQyDT1QAaXt5imahgg+Jv9vieskkXqwxhiLj1Z5eDJB4CYlawb5Jjz2D25D GV4lROPie4yiTc0Ma9KJoK0kAo8wd7/Ozzyv8YS7GvBbva4qo0Xt/CF1j/Qk2cwQS4Pi ncpJtaHggEzaAaFPQO/lUkZNpDxY5NesLVjmLcwXZtLYKOk4TukVQNFjxaOAwa23pmV1 +ybg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="h1m/EAFt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o15si23366291ilu.91.2021.11.01.05.32.39; Mon, 01 Nov 2021 05:32:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="h1m/EAFt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232462AbhKAMc1 (ORCPT + 99 others); Mon, 1 Nov 2021 08:32:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232036AbhKAMc0 (ORCPT ); Mon, 1 Nov 2021 08:32:26 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80E9BC061714; Mon, 1 Nov 2021 05:29:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=PkMQ2aJC5jezjXsciOSDQbUm9uMWZMe4Y1Gl5dY5vr0=; b=h1m/EAFtW978XdTXPT9VI3eSSs Rm/LHrexjjf0ZpiaT2BBewklmkA2WYaF71sRT3lVkJ3Tce5PhHw+KnRlLsfOM2OePLeDp4gzblujB ijQ6bGk53HecrdKHmrlS5N1LkWfCQwWqeXogkr5VxiESNCMmbbv8qF3oDu3Tn9wDOPfagv4FupEVS BG4pw5+12Qdw1lnN5q/OFCtkADiFiM1g9hRBxfhG1KLgg2K6kL/RjYXUeJzaC1K1pS+NQ6LooCC05 yMTYafz5P7DVpu0rZ8Az8yInteCcEZAG6rHwXwfnum3CBuHVSS4YTgBXir/YvkbDvrH6bTs8D6Kq6 nd2R0pxg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mhWNs-003lTn-1h; Mon, 01 Nov 2021 12:26:44 +0000 Date: Mon, 1 Nov 2021 12:25:52 +0000 From: Matthew Wilcox To: Gou Hao Cc: viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, jiaofenfang@uniontech.com Subject: Re: [PATCH] fs: remove fget_many and fput_many interface Message-ID: References: <20211101051931.21544-1-gouhao@uniontech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211101051931.21544-1-gouhao@uniontech.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 01, 2021 at 01:19:31PM +0800, Gou Hao wrote: > From: gouhao > > These two interface were added in 091141a42 commit, > but now there is no place to call them. For completeness, the only user of these APIs was removed in commit 62906e89e63b ("io_uring: remove file batch-get optimisation"). A user of get_file_rcu_many() (which you didn't mention) were also removed in f073531070d2 ("init: add an init_dup helper"). > And replace atomic_long_sub/add to atomic_long_dec/inc > can improve performance. > > Here are the test results of unixbench: > > Cmd: ./Run -c 64 context1 > > Without patch: > System Benchmarks Partial Index BASELINE RESULT INDEX > Pipe-based Context Switching 4000.0 2798407.0 6996.0 > ======== > System Benchmarks Index Score (Partial Only) 6996.0 > > With patch: > System Benchmarks Partial Index BASELINE RESULT INDEX > Pipe-based Context Switching 4000.0 3486268.8 8715.7 > ======== > System Benchmarks Index Score (Partial Only) 8715.7 This seems impressive. What's the stddev of this benchmark?