Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Catalina: extremely slow traversing NFS based directories from Linux Ubuntu 20.04

  • MacOS: Catalina 10.15.7
  • Previous Linux server: circa 2010 based Fedora
  • New install: Linux Ubuntu 20.04 on the exact same HW
  • Network running at 1000mbps.


I recently upgraded a Linux server from a circa 2010 based Fedora to Ubuntu 20.04. With Fedora, no NFS problems at all.


I use Finder to mount nfs shares. However, when traversing the NFS file system, Finder, or /usr/bin/ls, are extremely slow at traversing those NFS directories. For example, it takes 15-20 seconds to display the top level directories, which contained all of 9 directories.


If I use /usr/bin/ls to get a directory listing, I get:


macmini: /Volumes/u2/Pictures > time ls -l

nfs server 192.168.1.21:/u2: lockd not responding

nfs server 192.168.1.21:/u2: lockd alive again

...

real 2m9.13s

user 0m0.00s

sys 0m0.01s


So eventually is will show me the listing, but to take over 2 minutes to display a grand total of 35 directories and files? Somethings not right. When I had Fedora as the server, this completed immediately. So I need to fix this.


An interesting aspect to this is that it seems to be only related traversing directories. I can transfer files at close 1g speeds:


Transfer time of a 2.7gb file:


    • NFS: 98mb/sec transfer speed
    • SFTP; 111gb/sec transfer speed


Not the same, but close enough for now given that I have a bigger fish to fry. With top speed of a 1g network, I should get somewhere between 110-125mb/sec, that's not bad.


I think this has something to do with the locks daemon and the lockd not responding messages being output


Anyone have a solution or an article to read to help resolve this issue? Much appreciated.



Thanks, Jim






Mac mini 2018 or later

Posted on Mar 20, 2021 7:07 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 20, 2021 7:35 AM

jbalson3 wrote:

I think this has something to do with the locks daemon and the lockd not responding messages being output

I don't doubt it.


It is curious that you would encounter this problem after upgrading a 2010 install. When I search for this problem, I encounter a solution from 2009: NFS volume, lockd not responding - Apple Community

Similar questions

1 reply
Sort By: 
Question marked as Top-ranking reply

Mar 20, 2021 7:35 AM in response to jbalson3

jbalson3 wrote:

I think this has something to do with the locks daemon and the lockd not responding messages being output

I don't doubt it.


It is curious that you would encounter this problem after upgrading a 2010 install. When I search for this problem, I encounter a solution from 2009: NFS volume, lockd not responding - Apple Community

Reply

Catalina: extremely slow traversing NFS based directories from Linux Ubuntu 20.04

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.