Andres,

The server OS is Jammy and the client OS is also jammy.

The export options look as follows for a sample export:
/home/ubuntu/test1 *(rw,sync,insecure,no_subtree_check,fsid=1)

For strace, my workflow was something as follows:

Server:
Update /etc/exports file and perform exportfs -ra
Verify exports using showmount -e
Start strace using this command:
sudo strace -tt -T -p $(pgrep -d',' 'rpc.mountd') -o strace_jammy_ppa.log

Client:
Attempt mount using this command:
time sudo mount -o rw,hard,rsize=1048576,wsize=1048576,vers=3,nointr,tcp,sync 
${SERVER_IP}:${NFS_DIR} ${LOCAL_DIR}

To repeat the experiment, we don't need to restart the server daemons
but instead, just doing an exportfs -ra should do the job.

As far as the slowness is concerned, I understand that maybe in non
custom filesystems, it might not be that evident but the number of statx
calls iiuc should be reproducible since I was able to do that in
situations where I was using ext4 directly which is what /home/ubuntu is
in my case. However, I have set my config to use 16 mountd threads so
not sure if that might be having an impact. Can you see if increasing
the number of mountd processes helps you observe the difference with
statx?

For a single mount, I saw 42 statx calls with the patch which isn't the case 
without the patch:
ubuntu@vm-machine-s82gbm-3ojtydo:~$ grep statx 
mount_ppa_ubuntu_patch_single_trace.log | wc -l
42

I've also attached the entire strace logs for your reference to compare
to ensure that with the ppa builds, we are indeed seeing somewhat
similar calls.




** Attachment added: "strace_logs_statx_ubuntu_ppa.rtf"
   
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/2091737/+attachment/5847720/+files/strace_logs_statx_ubuntu_ppa.rtf

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2091737

Title:
  Slow NFS Mounts with nfs-utils 1:2.6.1-1ubuntu1.2 (Regression from
  1:1.3.4-2.5ubuntu3)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/2091737/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to