Guru’s,
I could do with some help of you. I have a sever (openSUSE Leap 15.0) which is also my fileserver. My client (openSUSE Leap 15.0) mounts the server disk (/home) over nfs. If I write a file of 1Gb on the server onto /home
arjan@schuurpc:/home/arjan> dd if=/dev/zero of=file1 bs=1GB count=1
1+0 records gelezen
1+0 records geschreven
1000000000 bytes (1,0 GB, 954 MiB) copied, 7,97734 s, 125 MB/s
arjan@schuurpc:/home/arjan>
It’s written at 125Mb/s. If I do the same on the client
arjan@arjanpc:/home/arjan> dd if=/dev/zero of=file1 bs=1GB count=1
1+0 records gelezen
1+0 records geschreven
1000000000 bytes (1,0 GB, 954 MiB) copied, 139,974 s, 7,1 MB/s
arjan@arjanpc:/home/arjan>
The speed drops to 7.1Mb/s. I do except a slower speed but this just to much
I did consider my internal network speed. On the sever I started iperf3 -s and on the client iperf3 -c 10.0.0.150 -d
Here is the output on the sever
Accepted connection from 10.0.0.164, port 36960
5] local 10.0.0.150 port 5201 connected to 10.0.0.164 port 36962
ID] Interval Transfer Bitrate
5] 0.00-1.00 sec 107 MBytes 896 Mbits/sec
5] 1.00-2.00 sec 112 MBytes 938 Mbits/sec
5] 2.00-3.00 sec 112 MBytes 938 Mbits/sec
5] 3.00-4.00 sec 112 MBytes 937 Mbits/sec
5] 4.00-5.00 sec 112 MBytes 938 Mbits/sec
5] 5.00-6.00 sec 112 MBytes 938 Mbits/sec
5] 6.00-7.00 sec 112 MBytes 937 Mbits/sec
5] 7.00-8.00 sec 112 MBytes 938 Mbits/sec
5] 8.00-9.00 sec 112 MBytes 937 Mbits/sec
5] 9.00-10.00 sec 112 MBytes 938 Mbits/sec
5] 10.00-10.05 sec 5.17 MBytes 939 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
ID] Interval Transfer Bitrate
5] 0.00-10.05 sec 1.09 GBytes 934 Mbits/sec receiver
So my internal network is not the problem.
On the server:
/etc/sysconfig/nfs
USE_KERNEL_NFSD_NUMBER="4"
MOUNTD_PORT=""
NFS3_SERVER_SUPPORT="yes"
NFS4_SUPPORT="yes"
SM_NOTIFY_OPTIONS=""
STATD_PORT=""
STATD_HOSTNAME=""
LOCKD_TCPPORT=""
LOCKD_UDPPORT=""
STATD_OPTIONS=""
NFSV4LEASETIME=""
RPC_PIPEFS_DIR=""
SVCGSSD_OPTIONS=""
NFSD_OPTIONS=""
GSSD_OPTIONS=""
MOUNTD_OPTIONS=""
NFS_GSSD_AVOID_DNS="no"
NFS_SECURITY_GSS="no"
The file /etc/nfs.conf.local does not exist.
/etc/nfs.conf reads
[environment]
include = /etc/sysconfig/nfs
include = /etc/nfs.conf.local
[general]
pipefs-directory=$RPC_PIPEFS_DIR
avoid-dns=$NFS_GSSD_AVOID_DNS
[lockd]
port=$LOCKD_TCPPORT
udp-port=$LOCKD_UDPPORT
[mountd]
port= $MOUNTD_PORT
[nfsd]
threads= $USE_KERNEL_NFSD_NUMBER
lease-time=$NFSV4LEASETIME
vers3=$NFS3_SERVER_SUPPORT
vers4=$NFS4_SUPPORT
[statd]
port=$STATD_PORT
name=$STATD_HOSTNAME
/etc/exports reads for /home
/home *(rw,root_squash,sync,no_subtree_check)
On the client /etc/fstab reads for /home
10.0.0.150:/home /home nfs nfsvers=4 0 0
On the server is a firewall however all ports for the internal network are open.
firewall-cmd --list-all-zones
--- many lines deleted ---
trusted (active)
target: ACCEPT
icmp-block-inversion: no
interfaces: eth0 eth2
sources:
services:
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
--- many lines deleted ---
The client is connected via eth0 to the server.
Can somebody explain why my nfs is so terrible slow …
TIA!!