Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp899720rwe; Thu, 25 Aug 2022 11:07:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR6fui/8XpPMemP5W5maGGzlB55bSxVXuxMMQ6fOHDKPWmh/TO1PIbcMZo/yc6bbTvJCq17A X-Received: by 2002:a17:90b:4f45:b0:1f5:6554:d555 with SMTP id pj5-20020a17090b4f4500b001f56554d555mr248031pjb.226.1661450868391; Thu, 25 Aug 2022 11:07:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661450868; cv=none; d=google.com; s=arc-20160816; b=eEBI3HulNkJ8J24iQeXznUPplPgLjpA9IIRtMU8wiFU8edt2tdv4LD+6ZodDbGJwIn gTw9N4yXu26t9vJwhsfa5VM4JWZCMs63Y30L/o9dclI8dKISnAxr5kXv2fl3nK+0b8nv 32of+3iuYC5U+/hDvvDigD9rmcbsjigGdPFQA84dmdDJs5JZy0+9RomdRx1IJUD3H6br VnoUWOg5qB4brgmsQ+c8HCkAsz94AYei0uJdgA1SF4od4UAdjIAZg3Tf64YVHP27aCqX 4QMsYhPxrApfA+yKiBLaRA6SwavWZ5WHFp9dPvJJm3dJIL56kWD8IN/1QPvnmcRm/6x9 9tSg== 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=S+UHXo2fScCLrBoYkqN6NCKqlM8drcTOel4+gEhl8Lk=; b=z1JSYz6ULLmbeYDCgTQ9s1rgs7OCpkWBKbdmQKWlSkNTuWXQoa2hO5RK2iXCWVMfnO aq1A2Hjh/Uc8YR2BdRtG7RQB+yeITCN8AItZzGW9jockXz7csrVfjuaiaoPKMoePsQd1 lTjRqGZBeeQCtIFk0WacfXIUU1HQKIUzyYBOADj3JzorbA9oDh5ONrggOOkn1CP0mksg 4ZYzRUk01NC7iVFSrHFUaYrk8eLqUmUXqkDy90LcyCVst/FqyJY/BZB5+FZZaXamVqMe 0BL15R+z/nhtiHcL+V2W8PByWJk7Urmb4wP2E266NiE3TjJo2PtnCh9nzObxEqg1VyPm OuRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=TpH2QkXH; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-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 f189-20020a636ac6000000b0042b15a68270si5447286pgc.213.2022.08.25.11.07.35; Thu, 25 Aug 2022 11:07:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@infradead.org header.s=casper.20170209 header.b=TpH2QkXH; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231905AbiHYRx2 (ORCPT + 99 others); Thu, 25 Aug 2022 13:53:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231437AbiHYRxZ (ORCPT ); Thu, 25 Aug 2022 13:53:25 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC7C5BBA50 for ; Thu, 25 Aug 2022 10:53:23 -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=S+UHXo2fScCLrBoYkqN6NCKqlM8drcTOel4+gEhl8Lk=; b=TpH2QkXHF6O8ekHSiPcAZ11Nn7 +aFNT7LuGKOg4G9X6fl+iKjiWRG2xlHB6gmUEumKmu5TMWPL1LecFZhqcCr9qu2G78BqJs78Yn5iF OIVTMHDQ9CmV+H9jjLqj3N/kcym2YE49QA1NTr1clqr7prDmXSYH94yrgn9/f3EZYgepi5m1Nl2gK lueIQRHxrlPjUIHqw5knBPhWK+fVKXRXROjeIAoSKPbCelS++eaThkA3np0uLFrzEIy6mxz2pFRFG 0aHUsYLJc4SFzd2N0okU2+6Pr5FD8vnm7UI8JTs6NftzkPA9+igUUBrtL8okaOkNaKvO/gvHAX3hi rWNV/DfA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oRH2Z-00HROI-5G; Thu, 25 Aug 2022 17:53:15 +0000 Date: Thu, 25 Aug 2022 18:53:15 +0100 From: Matthew Wilcox To: Trond Myklebust Cc: "linux-cachefs@redhat.com" , "linux-nfs@vger.kernel.org" , "daire.byrne@gmail.com" , "anna.schumaker@netapp.com" , "benmaynard@google.com" , "dhowells@redhat.com" , "dwysocha@redhat.com" Subject: Re: [RFC PATCH 2/3] NFS: Add support for netfs in struct nfs_inode and Kconfig Message-ID: References: <20220824093501.384755-1-dwysocha@redhat.com> <20220824093501.384755-3-dwysocha@redhat.com> <429ecc819fcffe63d60dbb2b72f9022d2a21ddd8.camel@hammerspace.com> <216681.1661350326@warthog.procyon.org.uk> <5ab3188affa7e56e68a4f66a42f45d7086c1da23.camel@hammerspace.com> <5dfadceb26da1b4d8d499221a5ff1d3c80ad59c0.camel@hammerspace.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Aug 25, 2022 at 03:32:25PM +0000, Trond Myklebust wrote: > I'm not talking about the transition of dirty->clean. We already deal > with that. I'm talking about supporting large folios on read-mainly > workloads. > > NFS can happily support 1MB sized folios, or even larger than that if > there is a compelling reason to do so. > > However, having to read in the entire folio contents if the user is > just asking for a few bytes on a database-style random read workload > can quickly get onerous. Ah, we don't do that. If the user is only asking for a few bytes and there's no indication that it's part of a streaming read, we allocate & fill a single page, just as before. We adapt to the user's workload and only allocate multi-page folios when there's evidence that it'll be useful to do so.