Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp234759lqb; Tue, 28 May 2024 14:06:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXHtlOXvJdp/J+FfyPa36WpkQS+ugV305uMh0/unLS+evGKdkF1bhQVAW7W5NPTDGT4hvVvAxeBgxBi1YvvqPkh/WuoyXSZZyBPMApUgg== X-Google-Smtp-Source: AGHT+IH0yssvawyIICrf8DmEDhyDBwsP/geYTBcKnU0uDdBz3S12Z+InMkIBnnVlnzZclfe3fMut X-Received: by 2002:a05:6512:36c1:b0:51f:6132:2803 with SMTP id 2adb3069b0e04-529645e337cmr6799799e87.17.1716930368225; Tue, 28 May 2024 14:06:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716930368; cv=pass; d=google.com; s=arc-20160816; b=nU9Tv0Q6UhgUoyDLHw0yeegNr/zolhtaSDgNrhtn2cVQUrGkyw2saBLfROyzUR1EQo zKJlMXzBPAMULEVeSW8ixubV0ffoWgRI8umeZLNZO5H6EV93KavUMtmnF2ollXrk8w5i M3vEPg8B5O4Okzwy6DNUvE2Nqq+hiWubHHlVw0mXTNApuIWhAiAk9lh57HVYcZXtNBvp ZhQ+VWX1k1Kel2+6XJOE2lQSjCUqsQK3gIVyBTgYMr2mW5MM1yNLoQ87VJwlHXCMXvt6 iH6lDYmXrz0+tGuJqqE/bJ96zk5ej3dq40E2hBO4lEwbYiYr3KYo5+i4Wravao+2JHur RcAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HBLV8SvG69KfYXPdP3B1zrE6MIyDczjFiBRIaa4NQ3A=; fh=jgotHe3n9bSvUUqViLCrEcHmuySCZvE4HsIL2r/mw0E=; b=o91QY7a+bIOJyO2sgAdXBf6Tw36YCakJLQDAv89MPwpXPWe276dhLEL0NG4I+a8Icx fu9JQD+KETRRqCklCGNEFSFyFRzVbBCkOSxP5oOza1XdN2mYJUKwLeyP8iLZJp1nPyAn whpsoTQq5EqPbzKDMJ8pJaPisb334DakSnpLgCrIBS9Tsz7nWN4bBcGi01MitMeEHUE1 1E++Y0soA7Woa6SVlceMww8vLe349rMdE+Z6NnNNkXLMbIAEmqX3tAYdcmN49j5mSV+R c+2MNeUBPLNn2rT6jYCTCNdgCdz7KvK2L/t5MdxEGlE5N6s68jvmHhi/uUkjdA0yEcBK yLBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=rC0QR5IT; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-nfs+bounces-3451-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3451-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626c800dd5si544596466b.95.2024.05.28.14.06.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 14:06:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3451-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=rC0QR5IT; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-nfs+bounces-3451-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3451-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BAC9D1F23B0F for ; Tue, 28 May 2024 21:06:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07C3E16F0F9; Tue, 28 May 2024 21:06:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="rC0QR5IT" X-Original-To: linux-nfs@vger.kernel.org Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F316B224D1; Tue, 28 May 2024 21:06:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716930363; cv=none; b=Pvq1GpSKT/92bSnQTjaZe4pvcAqUYs8AyVNvness7OwUblOkSN176QWRkPfeLpuLGyx5Zz7pze7X3B7N5GhWJJOy8aI8cRHqMK5qLhynaFx5fM72tprQbFXALpFcqwNoBfJYV8lYzxV5JoXK9PqZCPaTzd9+V4zd/0uK5mUufq0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716930363; c=relaxed/simple; bh=Z0GgS2XxzTLFcL4ineMAYqGOyHY9Kfgtq8U+6irNxOE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=e1K9MQ3FCM+/eAC/Fa0MF/nE/knNm6wOKCJCc7SrpSlmuxKWKNbegGhUqIfsXxUnuEpeIQSLChHOflESFBtIPWzfA9cEt7Y/n2Ju7uLpa2pWBDGkzCUVHm8GFNLUbMZXqMXuojwt/uQpd4UCSOvcAFp44Jbvsvmlqpwihvf4VOs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=rC0QR5IT; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org 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=HBLV8SvG69KfYXPdP3B1zrE6MIyDczjFiBRIaa4NQ3A=; b=rC0QR5ITv2CA9Ipf7v+jUm8llu xzdDQMbhnzOIDI3OH1SAqaHlK2Lz9spkp881yIjwb4PNHEDohJRk6hpNKEqope0BcIFdIhR3BtlJH j7QeU5vdHO44akhrm4ABPYEQzHchL5DKyX3E/gdm0FokRbrG+lKXIVT62PJ9f+ElX7rE5B0tUT05C 8l7SvB97uifbOq6ESv7yAFZWXQKTkTINBWxB/Ddo8pXSsQAn0Zb8zakKUvElhf52vhCWSYRp1X8bT 3md4wcANgHxkNkzY0al3ZvCPB2gSVPebVtnnnbkv+hy7WYRQGZek8GyYvwOQ3Bu78KuS/Wkts4uiy jQ88WT7w==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC418-000000093ou-43mF; Tue, 28 May 2024 21:05:59 +0000 Date: Tue, 28 May 2024 22:05:58 +0100 From: Matthew Wilcox To: Christoph Hellwig Cc: Trond Myklebust , Anna Schumaker , linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: Re: support large folios for NFS Message-ID: References: <20240527163616.1135968-1-hch@lst.de> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240527163616.1135968-1-hch@lst.de> On Mon, May 27, 2024 at 06:36:07PM +0200, Christoph Hellwig wrote: > Hi all, > > this series adds large folio support to NFS, and almost doubles the > buffered write throughput from the previous bottleneck of ~2.5GB/s > (just like for other file systems). > > The first patch is an old one from willy that I've updated very slightly. > Note that this update now requires the mapping_max_folio_size helper > merged into Linus' tree only a few minutes ago. Kind of surprised this didn't fall over given the bugs I just sent a patch for ... misinterpreting the folio indices seems like it should have caused a failure in _some_ fstest.