Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 737142877DE for ; Mon, 27 Oct 2025 15:04:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761577489; cv=none; b=kauIYBHhK7RGwK4KIEuqnP73cl46fjd2L2sHhAiNVAz79mftSN6Qoa6kPokdQ+SOtzPfRz6HjYNUx84wI8jzTOii/c3YheeU1qBcUSfxtcHrf/bieEK9UVO4kQsCfcGXwHjfYWt3VW8gDKiUoHbOWHnyuMxtyd23MQEs96uTJmo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761577489; c=relaxed/simple; bh=8e8z5WZvasntUMG4r9AZq2/GYZypyz5m+oe2ELhm1Ko=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=GukoIzU6CY8P4a3Y4UhaCR+0HEJCUlXrIfpIwJHUPfVrhldUeGjJHMMzO2zdUEnx480iyr57zr3vJGaOpjeGV7yVpyhjBHQecGtHMjfOAMEMT6xf+w9E81dgJs4CuJ+oPWYOthNhymjt32V2IwbonJLMx+jkSg60j8mHy/vb4Bo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CKTgvQ/q; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CKTgvQ/q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24FF4C4CEF1; Mon, 27 Oct 2025 15:04:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1761577488; bh=8e8z5WZvasntUMG4r9AZq2/GYZypyz5m+oe2ELhm1Ko=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=CKTgvQ/qnTtkkWErGd+G7Z9zkdL1YQuf1NJmHK5K4824zchD6f/v421jU8t1JKX4V FWTUvH3boLp0gIgQVGW1Lxe7F+6N0eKtPWsMcLvy12lCf44S3uwycQkcBvOkxHTU/C wVercQQ0XT53PT5OzqFt6Eww+PIMYhZkTCOzTKT+nsMusJMTxANrNPgW2GVcGBKFhk MPUKPCfUwIbx6oWSbQm4GxlqdfSoDvoOQxGzftbKnnsmgsJqWmKAmbrsDohzHFNIBo crmV/X99uWek/LbiSTJLHUfJJNKo3udApsn5j5rbNs+lWbxs5MyxNO6QF7g6wSi+Tl tnFLqklmecAaw== Message-ID: <7093445f-604a-4bfd-9104-b9f70138ed07@kernel.org> Date: Mon, 27 Oct 2025 11:04:47 -0400 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 05/14] NFSD: @stable for direct writes is always NFS_FILE_SYNC To: Mike Snitzer , Christoph Hellwig Cc: NeilBrown , Jeff Layton , Olga Kornievskaia , Dai Ngo , Tom Talpey , linux-nfs@vger.kernel.org, Chuck Lever References: <20251024144306.35652-1-cel@kernel.org> <20251024144306.35652-6-cel@kernel.org> <3c3774a9-a1f1-46a8-a81f-ebc3dde228c3@kernel.org> Content-Language: en-US From: Chuck Lever Organization: kernel.org In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 10/27/25 10:58 AM, Mike Snitzer wrote: >>> The current approach of using IOCB_DSYNC|IOCB_SYNC have performed >>> really well on modern NVMe servers. >> NVMe does not implement a concept called servers. > But you're aware that servers have NVMe devices in them.. that's all I > meant. All of these NFSD_IO_DIRECT changes have been developed and > tested in modern servers with 8 NVMe, see: > https://www.youtube.com/watch?v=tpPFDu9Nuuw > > (NOTE: results covered in this session did _not_ have the benefit > of NFSD responding to client with NFS_FILE_SYNC to avoid COMMIT, the > ability to do so was discussed at Bakeathon and was acted on with > these latest NFSD Direct patchsets). This is why I suspect that leaving direct writes as UNSTABLE, rather than promoting them to FILE_SYNC, is probably not going to make much difference to Jonathan's benchmark results. That's just a guess though. IOW the memory costs of sticking with UNSTABLE + COMMIT have already been demonstrated, and it's low. The v8 of this series will go back to that idea, and if you want, you can benchmark it again. If it regresses, we can stick with FILE_SYNC. It's just ones and zeroes, as they say. -- Chuck Lever