Oracle Linux – "ls -l or du" Commands Hung in NFS Share
APPLIES TO:
Linux OS – Version Oracle Linux 7.0 to Oracle Linux 9.0 [Release OL7 to OL9]
Linux x86_64 on Oracle Public Cloud
SYMPTOMS:
NFS share mounted on Oracle Linux instances as follows:
# cat
/etc/fstab
## nfs mount
<NFS Server Name>:/usr/local/nfs-share/oci-dev /u01/share nfs rw,bg,hard,nointr,tcp,vers=3,timeo=600,rsize=32768,wsize=32768,actimeo=0 0 0
The "ls -l"
or "du"
commands within the NFS share take 3 to 4 minutes to complete.
CAUSE:
The performance degradation is introduced by the NFS mount option "actimeo=0"
.
Setting "actimeo=0"
disables attribute caching on the client. This means that every reference to attributes is satisfied directly from the server though file data is still cached.
0