Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp894948pxb; Tue, 9 Feb 2021 15:54:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxVb9+DHntNr4YMxxu5b4BGDxdaZVBYMyM927SMcP9ivN1YXsC8EsaR5wbyr2A8Tu1K0CA X-Received: by 2002:a17:906:cc49:: with SMTP id mm9mr207041ejb.450.1612914889492; Tue, 09 Feb 2021 15:54:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612914889; cv=none; d=google.com; s=arc-20160816; b=lgBvSpKPstizvA8Mqswh4GRolyvFr2/UY3as/I0Wv9Yyzc/9nObNZLhLN8UBQB4AzO rqO1Ut//98YE/mV0uj9FEg5c1XSvG4X0vlxRlpatxQSm5gZKYmAof2vJ1u2W2Pyb9YHc Fx1a2MinP9tiG8ENjZPd1mSlu5gj19EYLJUDlrMhIKGcYGdz5teXjcxp4JtxpFKagCJ4 ZCKJ0N4SkOyT9I6Od7VtvGyFuTw9LEowE2O31h+8VMtpqhZjQDTxEppYnFD9kQXxDzmP qmtZA7vV6HL+SZLParLzc3ad6H6clOXrkm9prCLLJznqUQyYCBsKaT43tlkaKDYHZ2AD B04w== 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=iz8v7WB8rAGB4dR54Ek5r1ashQ2mtNeQY3DSOI1ePbM=; b=rBsYsdN6o20RT3aHCrpjxG/H+X0sWV7uoexuQACcKprfDY8tl5/Guk0YkWahzVRU6u EjcHmqU8XirLUUiVhOlGEcyAFlQH91jhS8Ughx/EN8CiH2bGWDpNrX8hnVKqFH0ZXZEl HbgcF8L6S1L39GGoM0rrwvuApzGRuhCK/9njN+hYYif7g/uUqLEBgvlABsmKSE+4gwZP i/Y8HLHJjnlcH0qvFRUTgwFL9NbXmtuujwI0z8+MQmHsAb5+Kpx25TSiobahIcTNruSM sH+D1SUv3fhH9uwn/mmoHamLgFPYziaJSa8mnQMHlqUzm5B0vrsDy24vOcRRsH0XSLwf aWGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=VcBQA8MM; 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 w21si200626edd.421.2021.02.09.15.54.16; Tue, 09 Feb 2021 15:54:49 -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=VcBQA8MM; 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 S233999AbhBIXvx (ORCPT + 99 others); Tue, 9 Feb 2021 18:51:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234129AbhBIWOx (ORCPT ); Tue, 9 Feb 2021 17:14:53 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDA2FC08EC44 for ; Tue, 9 Feb 2021 14:01:37 -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=iz8v7WB8rAGB4dR54Ek5r1ashQ2mtNeQY3DSOI1ePbM=; b=VcBQA8MMzx3QcTXwVmuTEW1jsd wYKfAMFZkSCiFIifea10qRixkxsFSHXIcCtHkkHR4Kea0GwOYmaDVzH0m7zDTNEmrrYSRbhgCLeyw u7IUcthEKP+N+V4ipaz22OBI1NMCZaquvSHvgClYMRbHW3kgNHxxqqMua1tRjwAGxNyMYkQoQ6Nnd iJ+d+SAUYVrP/fSMMo+cdTbOV7tkvoDR1lnPlsFRGQ1csKopW+5Ms6MCVSSwdjZ2Gp82C7WyoniGU ngKPbn9Q3J53KJ1u2gd34evnq9D13S1aMa0/o8wfePbebAub2Efvx3RwT1vRtCJjC5XEwh2MYpGfx TQx03e2w==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1l9b4Z-0080z9-0n; Tue, 09 Feb 2021 22:01:28 +0000 Date: Tue, 9 Feb 2021 22:01:27 +0000 From: Matthew Wilcox To: Chuck Lever Cc: "mgorman@suse.de" , "brouer@redhat.com" , Linux NFS Mailing List , "linux-mm@kvack.org" Subject: Re: Fwd: alloc_pages_bulk() Message-ID: <20210209220127.GB308988@casper.infradead.org> References: <2A0C36E7-8CB0-486F-A8DB-463CA28C5C5D@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Feb 08, 2021 at 05:50:51PM +0000, Chuck Lever wrote: > > We've been discussing how NFSD can more efficiently refill its > > receive buffers (currently alloc_page() in a loop; see > > net/sunrpc/svc_xprt.c::svc_alloc_arg()). I'm not familiar with the sunrpc architecture, but this feels like you're trying to optimise something that shouldn't exist. Ideally a write would ask the page cache for the pages that correspond to the portion of the file which is being written to. I appreciate that doesn't work well for, eg, NFS-over-TCP, but for NFS over any kind of RDMA, that should be possible, right?