From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 67CC6C433EF for ; Mon, 1 Nov 2021 12:29:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 482D5610A8 for ; Mon, 1 Nov 2021 12:29:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232461AbhKAMc1 (ORCPT ); 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-fsdevel@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?