Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp632972pxb; Tue, 1 Feb 2022 07:22:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7jJnlRsuJSHa48W0fcrvXcEXPnVcJxiWKXDr+e5GwBA4DwxSjr6iAWdn0GGtwuk4h4ZUj X-Received: by 2002:a65:5cc1:: with SMTP id b1mr21102306pgt.341.1643728927778; Tue, 01 Feb 2022 07:22:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643728927; cv=none; d=google.com; s=arc-20160816; b=nJ8QJedFPZvk10Q3hqRK4MUAvsIRZv1QfPuyfWjNZ9KlUyrCQTe6L5I2CYDP30koGu X54hnRMj/5PHFA4ZJ5HvHWUYIZKhnh/rLMXfMA6ubt+mUP66cuxJy8a+fnM6PlYPyQEX 79rKlbxna4Re1Hp+ZK5+3OnXEXuCV1+BcganqTwxbc2p3AC0XUIMsKTDNmLxpWermFIC xaEUHAiZyM4UdhPGJ2DrHPyA61G8HMspsoNts0HT4fzG7xyqBggE6BinQ80Me4T94F22 ypaELcd3EbLbvo+BEC2TBiLy/6th3sL7+2pTiQizM/9+cea2zVkojuh3RWqdXVp+gUsv nfqg== 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=OLdzjKeQbAZ/xufoUOt+WpAslfh1hvc6hLdQ1kOi3Gs=; b=NuLX+gUjhzoMnR9gqCqT1X1I+gnFqeNYjHNObWDTQAGD2keP+jc2OOeAZBF40CRC05 IZCwHwU1tnPhu0VvcQJsLTMUbWkxNsPVfJUKf16Auw4Da5NHMLclnRR7iflrjPMAm2zD cLAzNqXncK+XkqahbMABx6MslPoG5Uicq8whHtXAYlcJEeuirKAFw7vf6ajkJ1pN+v/F vdX0NeS3GlevTDduPVpqQheCDWmWgF7j7839XWIn1jxp+TFf3Ip/LMVp67tdYKS+2RFO el5mEBmvjhDLqSX9AA54W4mSfSFt8Br0LKMHb259IeEPoRW5ZXOA1mKFuPYim17iKfkj RUTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ho9BSG2I; 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 p8si2331810pjn.182.2022.02.01.07.21.50; Tue, 01 Feb 2022 07:22:07 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b=ho9BSG2I; 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 S1357584AbiAaEWs (ORCPT + 99 others); Sun, 30 Jan 2022 23:22:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbiAaEWs (ORCPT ); Sun, 30 Jan 2022 23:22:48 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9617C061714; Sun, 30 Jan 2022 20:22:47 -0800 (PST) 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=OLdzjKeQbAZ/xufoUOt+WpAslfh1hvc6hLdQ1kOi3Gs=; b=ho9BSG2IZhWlh0U5/kITCAulfO FbXaBXt8TzCbX2L4KRlFN3z48OolajKBQZNZLV5AXovZjARGAaZYQc1HD+7+vHTJaZT3qigW/CSs4 YcwOh70Rv5WZpt5/zAWqu22VwCXZfSVJ+x4QNA+yKbnjz+X0Xi2DQ7SHkdvE1RXMH0abbt6oynLxc LS2QsDoseyoMZYIpNOiVUcVhVD+K0daCBMV0HOa8Lc20fGXDTAOcZpAcCqifPHLZLUcOh/Itd7Nt3 HOuvJaTWwoeMUA2VJBk9y9uFIAuD9/r/Rr16Lhi3ztiPacF3dV/s2ys6xrNzVB06OxtGdAnA6tGr/ NsBq18pQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nEOD4-009Fmn-1e; Mon, 31 Jan 2022 04:22:34 +0000 Date: Mon, 31 Jan 2022 04:22:34 +0000 From: Matthew Wilcox To: NeilBrown Cc: Andrew Morton , Jeff Layton , Ilya Dryomov , Miklos Szeredi , Trond Myklebust , Anna Schumaker , linux-mm@kvack.org, linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] nfs: remove reliance on bdi congestion Message-ID: References: <164360127045.4233.2606812444285122570.stgit@noble.brown> <164360183350.4233.691070075155620959.stgit@noble.brown> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <164360183350.4233.691070075155620959.stgit@noble.brown> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Jan 31, 2022 at 03:03:53PM +1100, NeilBrown wrote: > - .writepage to return AOP_WRITEPAGE_ACTIVATE if WB_SYNC_NONE > and the flag is set. Is this actually useful? I ask because Dave Chinner believes the call to ->writepage in vmscan to be essentially unused. See commit 21b4ee7029c9, and I had a followup discussion with him on IRC: dchinner: did you gather any stats on how often ->writepage was being called by pageout() before "xfs: drop ->writepage completely" was added? willy: Never saw it on XFS in 3 years in my test environment... I don't ever recall seeing the memory reclaim guards we put on ->writepage in XFS ever firing - IIRC they'd been there for the best part of a decade. not so much the WARN_ON firing but the case where it actually calls iomap_writepage willy: I mean both - I was running with a local patch that warned on writepage for a long time, regardless of where it was called from. I can believe things are different for a network filesystem, or maybe XFS does background writeback better than other filesystems, but it would be intriguing to be able to get rid of ->writepage altogether (or at least from pageout(); migrate.c may be a thornier proposition).