[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <175158460396.565058.1455251307012063937@noble.neil.brown.name>
Date: Fri, 04 Jul 2025 09:16:43 +1000
From: "NeilBrown" <neil@...wn.name>
To: "Jeff Layton" <jlayton@...nel.org>
Cc: "Trond Myklebust" <trondmy@...nel.org>, "Anna Schumaker" <anna@...nel.org>,
"Chuck Lever" <chuck.lever@...cle.com>,
"Olga Kornievskaia" <okorniev@...hat.com>, "Dai Ngo" <Dai.Ngo@...cle.com>,
"Tom Talpey" <tom@...pey.com>, "Mike Snitzer" <snitzer@...nel.org>,
linux-nfs@...r.kernel.org, linux-kernel@...r.kernel.org,
"Jeff Layton" <jlayton@...nel.org>
Subject:
Re: [PATCH RFC 0/2] nfsd: issue POSIX_FADV_DONTNEED after READ/WRITE/COMMIT
On Fri, 04 Jul 2025, Jeff Layton wrote:
> Chuck and I were discussing RWF_DONTCACHE and he suggested that this
> might be an alternate approach. My main gripe with DONTCACHE was that it
> kicks off writeback after every WRITE operation. With NFS, we generally
> get a COMMIT operation at some point. Allowing us to batch up writes
> until that point has traditionally been considered better for
> performance.
I wonder if that traditional consideration is justified, give your
subsequent results. The addition of COMMIT in v3 allowed us to both:
- delay kicking off writes
- not wait for writes to complete
I think the second was always primary. Maybe we didn't consider the
value of the first enough.
Obviously the client caches writes and delays the start of writeback.
Adding another delay on the serve side does not seem to have a clear
justification. Maybe we *should* kick-off writeback immediately. There
would still be opportunity for subsequent WRITE requests to be merged
into the writeback queue.
Ideally DONTCACHE should only affect cache usage and the latency of
subsequence READs. It shouldn't affect WRITE behaviour.
Thanks,
NeilBrown
Powered by blists - more mailing lists