NFS synchronous or asynchronous?

man nfs:
ac / noac Selects whether the client may cache file attributes. If
neither option is specified (or if ac is specified), the
client caches file attributes.

To improve performance, NFS clients cache file
attributes. Every few seconds, an NFS client checks the
server's version of each file's attributes for updates.
Changes that occur on the server in those small inter‐
vals remain undetected until the client checks the
server again. The noac option prevents clients from
caching file attributes so that applications can more
quickly detect file changes on the server.

In addition to preventing the client from caching file
attributes, the noac option forces application writes to
become synchronous so that local changes to a file
become visible on the server immediately. That way,
other clients can quickly detect recent writes when they
check the file's attributes.

Since default does not set ac or noac the mount is asynchronous.
 
  • Like
Reactions: mcparlandj
That's great news! Vmware sets to synchronous, and using ZFS backed NFS, even with a fast ZIL performance is awful. I did some testing with Proxmox and performance was amazing and I was thinking maybe I was looking at the numbers wrong :)
 
That depends. In general I agree, but one might have no real choice. Depending on the setup, it might be perfectly safe...
 
As far as i know iscsi does asynchronous writes as well. So that makes me think doing asynchronous with NFS is just as sketchy as using vanilla iscsi.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!