NFS: the new millennium
NFS: the new millennium
Posted Jun 26, 2022 12:15 UTC (Sun) by willy (subscriber, #9762)In reply to: NFS: the new millennium by neilbrown
Parent article: NFS: the new millennium
Posted Jun 26, 2022 21:05 UTC (Sun)
by janfrode (guest, #244)
[Link]
I don't think other NFS clients support larger than 1 MB rsize/wsize, which seems unfortunate for this kind of storage backend.
Posted Jun 27, 2022 23:31 UTC (Mon)
by neilbrown (subscriber, #359)
[Link]
I suspect you are correct.
Or what about writing lots of small files. The NFS client doesn't need to COMMIT until the writeback timer fires, or memory reclaim wants the cache back, or a sync() is requested. Would it not be more efficient to commit when there are lots of dirty files, rather than once for each file?
But the real point is that EVERY other layer in the storage stack has the two phases: write then sync/flush/commit. Why are you so sure that NFS doesn't benefit from also have the same two phases?
NFS: the new millennium
NFS: the new millennium
How about a database update that needs to perform lots of random writes before a sync is needed? Any single NFS write must be contiguous, so there must be several. Without the v3 COMMIT, every one of those random writes would need to be committed before the write could return.