Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp108469pxv; Thu, 8 Jul 2021 16:23:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4TD5wxXSX+MVkui5QN2Cy+VRiAXR7RgOBLn71tlW7QTQmHgMqW5RjDkhDNrG9tUeSOYuA X-Received: by 2002:a02:b78e:: with SMTP id f14mr13491500jam.136.1625786628758; Thu, 08 Jul 2021 16:23:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625786628; cv=none; d=google.com; s=arc-20160816; b=RIsGovPNaIg+MM9n985h7Mp/5zt24jc8GW74/SE9K1EV3wfDT8vohK0qc+q6DibNPo 7Q1oYxLMMgLMiSWnxxQAFM1InuH2VuAUcQHkEXqHRQCOZi1uqTq2pzhktNtf5obewtHj PFhfPHJmeIuF+A8Sn1J9suAuh0whLh+ocUfTows9SAIze8xtlMnmpyBnQenvosoFDcIJ 9b0Y2fEjQAIfvQHGPl+xg3esz6BHFxQaxfDL+Qk5B5/sfyCQcbPYPZbRwp891ZOvMNh+ nz+ZrFo0/w33yHR1/w+NG85tQaV9qV6qRckfshb7ZN+L4sx9YjWjOvYL73MfB9ESFTLf J0zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=dxM1c9BhJWVt1uyGK7GAta4cNMJsWsrxFKFXFaQyZMw=; b=IIVf4Y03qoNd/B0SaegAKMct2BNCyoegVO++XWCDnyowqA6Tubxs5Wc1BIiACHBdZb PfLMno7Pv0isW9eDvr3Af9MJCFmqX6/zO305QGuPCag12oXYQidLOw9vHg3RgpA/gfSf ZW2YgRiQwkWEpAzzI2UmNpyF65v6CMarmzkVNddOf19RxtuPO1dw4onvWX97iiiL8lBx 7tvpFIr4iPC5kLm2SIXf/XJlayN1YGJ1/JI2DTVORmEGa1cICTifQA3Puns7iRyl1Hp0 MFTnU5dGoWlWA5wzPVXH/3juriG1+mb5D2QsuGG4Ch26TEX8gwbu+Po3BC23RbCwCT9Z TEeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=GKoj8FVZ; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 i11si3732616jaj.16.2021.07.08.16.23.24; Thu, 08 Jul 2021 16:23:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@suse.de header.s=susede2_rsa header.b=GKoj8FVZ; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229542AbhGHXZ7 (ORCPT + 99 others); Thu, 8 Jul 2021 19:25:59 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:45222 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbhGHXZ6 (ORCPT ); Thu, 8 Jul 2021 19:25:58 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 6E94B21EF1; Thu, 8 Jul 2021 23:23:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1625786595; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dxM1c9BhJWVt1uyGK7GAta4cNMJsWsrxFKFXFaQyZMw=; b=GKoj8FVZ45+gI1yMOaoY7chroA1Ekjx1I95wGrjnB07SZ2Y2R8lBDnE+H69TKj8cB8NWQZ kTpG64Xq3Gbb+kMQkSHfJPpZc8mIDtheWF3ShaDs5Q6CxD/mLCJj6+rg9yhcmXDiz7EEfj iTrow6laRP53AMrTiW/7cKa/JrBPtfY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1625786595; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dxM1c9BhJWVt1uyGK7GAta4cNMJsWsrxFKFXFaQyZMw=; b=JBSliye15uCnPBkGqaPirLsOQ0zeqRO8QeWoklO82aUpjZ18QFljdzeWF8IrDaAF5guTOf 4ZnBNknPNOdF5hAQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 2128513B21; Thu, 8 Jul 2021 23:23:13 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id MN01MeGI52CudQAAMHmgww (envelope-from ); Thu, 08 Jul 2021 23:23:13 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Chuck Lever" Cc: linux-nfs@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v3 0/3] Bulk-release pages during NFSD read splice In-reply-to: <162575623717.2532.8517369487503961860.stgit@klimt.1015granger.net> References: <162575623717.2532.8517369487503961860.stgit@klimt.1015granger.net> Date: Fri, 09 Jul 2021 09:23:10 +1000 Message-id: <162578659050.31036.16278478540386858207@noble.neil.brown.name> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, 09 Jul 2021, Chuck Lever wrote: > > In this version of the series, each nfsd thread never accrues more > than 16 pages. We can easily make that larger or smaller, but 16 > already reduces the rate of put_pages() calls to a minute fraction > of what it was, and does not consume much additional space in struct > svc_rqst. > > Comments welcome! Very nice. Does "1/16" really count as "minute"? Or did I miss something and it is actually a smaller fraction? Either way: excellent work. Reviewed-by: NeilBrown NeilBrown > > --- > > Chuck Lever (3): > NFSD: Clean up splice actor > SUNRPC: Add svc_rqst_replace_page() API > NFSD: Batch release pages during splice read > > > fs/nfsd/vfs.c | 20 +++++--------------- > include/linux/sunrpc/svc.h | 5 +++++ > net/sunrpc/svc.c | 29 +++++++++++++++++++++++++++++ > 3 files changed, 39 insertions(+), 15 deletions(-) > > -- > Chuck Lever > >