You are not logged in.

#1 2022-07-15 22:19:30

HCF
Member
Registered: 2016-04-10
Posts: 19

NFS4 - Sudden Decrease in Transfer Speed

As of two weeks ago or so, my NFS transfer speeds have slowed down significantly. Whereas previously I would get about 400MB/s+ write speed to my NAS, I am now experiencing about 20MB/s. Transfer performance via SMB/SFTP is unchanged, and as expected. The problem seems to be isolated to my NFS shares.

Interestingly, when booting clonezilla (latest Debian base) with the same mount options to back up my workstation, speeds are normal.

I have changed to the LTS kernel, with no change.

Is this a known issue? My Google-fu failed me.

nfsstat -m

/home/xxx from xxx.xxx.0.1:/mnt/xxx
 Flags:	rw,noatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=xxx.xxx.0.11,local_lock=none,addr=xxx.xxx.0.1

Last edited by HCF (2022-07-15 22:20:33)

Offline

#2 2022-07-16 05:40:27

-thc
Member
Registered: 2017-03-15
Posts: 209

Re: NFS4 - Sudden Decrease in Transfer Speed

I use two NFS connections (Debian server and NAS) via a 1 GBit network with slightly different parameters.

/mnt/xxx from cxxx:/txx
 Flags:	rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=14,retrans=2,sec=sys,clientaddr=192.168.xxx.xx,local_lock=none,addr=192.168.xxx.2

/mnt/xxxx from fxxx:/vxxxxxx/sxx
 Flags:	rw,relatime,vers=4.1,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=14,retrans=2,sec=sys,clientaddr=192.168.xxx.xx,local_lock=none,addr=192.168.xxx.5

They still work at full speed (113 MB/s).

Offline

#3 2022-07-16 09:23:36

HCF
Member
Registered: 2016-04-10
Posts: 19

Re: NFS4 - Sudden Decrease in Transfer Speed

I changed the 'relatime' option and also tried version 4.1, neither of which make any difference. I just don't understand how this could have changed over the last two weeks or so, I did not touch a single setting...

Might have to switch to SMB hmm

Offline

#4 2022-07-16 10:25:01

-thc
Member
Registered: 2017-03-15
Posts: 209

Re: NFS4 - Sudden Decrease in Transfer Speed

Did the firmware of the NAS change?
Did you reboot the NAS?

Offline

#5 2022-07-16 15:10:51

seth
Member
Registered: 2012-09-03
Posts: 30,948

Re: NFS4 - Sudden Decrease in Transfer Speed

Do you have the same slowdown w/ nfs-cp?
Do you test the performance from the console or some GUI desktop (where an eager file indexer might be indexing your NAS or some fancy filemanager stats every change because it considers the NAS a local FS or … other variables might interfere)?

Offline

#6 2022-07-16 20:19:08

HCF
Member
Registered: 2016-04-10
Posts: 19

Re: NFS4 - Sudden Decrease in Transfer Speed

-thc wrote:

Did the firmware of the NAS change?
Did you reboot the NAS?

No change

seth wrote:

Do you have the same slowdown w/ nfs-cp?
Do you test the performance from the console or some GUI desktop (where an eager file indexer might be indexing your NAS or some fancy filemanager stats every change because it considers the NAS a local FS or … other variables might interfere)?

I used Nautilus and cp. While nfs-ls works, nfs-cp keeps giving me permission errors. Could this be a reason? Mounting via mount/fstab works without issues.

Failed to mount nfs share : mount_cb: RPC error: Mount failed with error MNT3ERR_ACCES(13) Permission denied(13)

Last edited by HCF (2022-07-16 20:19:40)

Offline

#7 2022-07-16 21:23:31

seth
Member
Registered: 2012-09-03
Posts: 30,948

Re: NFS4 - Sudden Decrease in Transfer Speed

I used … cp

in the multi-user.target or a gnome session?

While nfs-ls works, nfs-cp keeps giving me permission errors.

For what exact command and does your current user (according to nfs-ls) have write permissions for the path you tried?

Offline

#8 2022-07-16 22:28:33

HCF
Member
Registered: 2016-04-10
Posts: 19

Re: NFS4 - Sudden Decrease in Transfer Speed

multi-user.target with termux and bashtop/cp.

UID/GID are not aligned, if that's what you are asking. My NFS server maps all NFS clients to a NAS-specific one.

//EDIT:
Tried the below command with and without sudo

nfs-cp fallocate.img nfs://xxx.xxx.0.1:/mnt/xxx

//EDIT2:
I have now tried with multiple Linux-based live images (except for Arch Linux, that one is next), and they all work OOTB. Something must be wrong with my Arch Linux settings...

Last edited by HCF (2022-07-17 00:51:50)

Offline

Board footer

Powered by FluxBB