Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2169656lqb; Mon, 27 May 2024 09:59:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVfhqDnNdd593ImJ/jwo82G3Vq7IiMsTzOwndI5I1s2WNvB9d5nNyOcvArtZWsgYJbDWcejifXklurynvo3Fw8c2chbWhRDvXHTkjSyhw== X-Google-Smtp-Source: AGHT+IGaOOMpCuuQ6s2L9gy7njaxAO2C29MEp/Gshei7CubBHig3zaJtdwBQgdP6BBCiDm8Q99my X-Received: by 2002:a17:903:2311:b0:1f3:30f3:985f with SMTP id d9443c01a7336-1f448839e09mr108819235ad.35.1716829180793; Mon, 27 May 2024 09:59:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716829180; cv=pass; d=google.com; s=arc-20160816; b=bQdsf1Z2pPsneszNWtYUO0WaRQX9ghd7fe7TKR8lm/6Chm0MYuGuAT6WrntRfB31RF cUzNGai2yzlk4MhS2bfW0vCMXn72GGqxrIH5rcg0x9pryIJDA93fSp8stvJpJ5Nw+lc2 w8/74UWyYrn6II2axd/hsP1CJhZ58rVAiOHZ09AOdiyN81gZgdufBsvLVLpQYjBSv8q7 xnpJ2P99AMzK0XF6nFuvnZVIGpJ/g8niYAa8QbCo9/6edQOP3QNaHakk6wJ22Wc790YX HkliM+Ias+FhFBPm7CS5sqJ7fiq9O7iV7DQ6SEjb3Nm8evIuv2mj4qVVlanBqSWYFnpo l8Jg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=8EKRG22z1xnqyUg5G8bRLOhT2RWzJZUcC73o1Yr1tDo=; fh=+am2lmm4Njqt07YFLXCtuL9a8jCC1hTpWkJ4JL4Bsxc=; b=JjlzP6Dh3PxNR8xrupWlZXNBTMRAYXGRAUW2o1RJtPJujwzGJPJaqY4sRAuNf5r9a3 eVeCr2qeEa8lhE6HmmR4OcC/7OW9mTij0wqecKBtecmjUzslN2bDB4WtBj4PLJQHfXZu KGKroQVFmHnJsWFew7oaS0lYhTMu0bHyNJF8UmURE4lmCoKofz078Jm56HOpvAgOLoe8 7xtJ8BsrDtJmrj1XjlZF3eJ7PKelYtdN8AhkDayHoecm8q0IBjCs/vkELhyTx2b8Jz3f 04hVKlV9jc6CVmLZnhlGnCjHltYQJn5VchCyJ/mvbI+koAFtrJ42gwxHw18+e4Sg4rfr jJhA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="DJ/FbSdF"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-nfs+bounces-3419-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3419-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c99999asi62450915ad.347.2024.05.27.09.59.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 09:59:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3419-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="DJ/FbSdF"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-nfs+bounces-3419-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3419-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8EF2CB22B00 for ; Mon, 27 May 2024 16:36:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF4507347D; Mon, 27 May 2024 16:36:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="DJ/FbSdF" X-Original-To: linux-nfs@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 C714061FDB; Mon, 27 May 2024 16:36:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716827783; cv=none; b=TGtqT4JXayeueEIImpJT4QE/Wy9LUOtzSEicfjiTsV/NcGE2RTcbIdkF0GIdUgo2/8hwdHuIajBfQyP0SBM7IRmyjc/s26wEP4bf3/YqC+XMq9zu35GZn/8VazB6sGAvXovmyRf6NbsFqoKaphn5I+YZqtpCYs7GvN1L4QmYpIY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716827783; c=relaxed/simple; bh=p/AcaZr6TQ0ufKxEuDnUWDVfPD8xmPPtDJJOswjtURc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qeCq838CoPKJHkC7Cm4P9zZlly1tXoEgrKrFo7ye+KlCcpbMYRnVf1TVc0tOcLKmKkK4oeflO5IBsSLkkx3y6QbJtxSyXE4bxmTiKooYPHdhclJz21sC4LN5PKaG/toOCjN0x7hvVINJOWHjlAfrwdLTgq+UHQezppRgrihMCK4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=DJ/FbSdF; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=8EKRG22z1xnqyUg5G8bRLOhT2RWzJZUcC73o1Yr1tDo=; b=DJ/FbSdF9ms7pCqDA3oiKoFFIp GuXHVsBBtYTej2LgFzqL9+NQ8Sm1ny6A2lIhJHwWOCNU6RQAa6idFA3VgYFJkVkUa2kuY6FdT++3E U1RtI0LKO7l0KdNmAgyf2UpjbR/LKxgeJ2ZVNnClTIzhBrldGXJ+qXpm1CP6DqvHu+KqDGFhw430i uMwuMTejBrNN7t4wCI+vgmfgGWbYgoD6V7JKukSemnloWJh91Vy4zS/kE789mAUYQL1MSkxRH0m69 BA/GWDcN+98vfpxrDXrH5GuL5SjTMH2CkfSpJtr7WN5bjzCVv1RF/uGqp8qPATND0IK1n5csSnOgW SpW9CAoQ==; Received: from 2a02-8389-2341-5b80-3177-e4c1-2108-f294.cable.dynamic.v6.surfer.at ([2a02:8389:2341:5b80:3177:e4c1:2108:f294] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBdKd-0000000Ft6E-38vQ; Mon, 27 May 2024 16:36:20 +0000 From: Christoph Hellwig To: Trond Myklebust , Anna Schumaker , Matthew Wilcox Cc: linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: support large folios for NFS Date: Mon, 27 May 2024 18:36:07 +0200 Message-ID: <20240527163616.1135968-1-hch@lst.de> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html 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. Diffstat: fs/nfs/file.c | 4 +++- fs/nfs/inode.c | 1 + mm/filemap.c | 40 +++++++++++++++++++++++++--------------- 3 files changed, 29 insertions(+), 16 deletions(-)