Re: Help debugging slow nfs (40kB/s); linux client
Wow! Lowering rsize helped a lot! I can get about 4-5MB/s now. I had tried increasing rsize before, but I didn't imagine lowering it would help. Thank you! I'll mess around with some of the other parameters now to optimize: * rsize set in client mount command * nconnect set in client mount command * num_servers set by nfsd flag on the server * vfs.nfs.iothreads set in the sysctl.conf of the server But I welcome any other suggestions of parameters to tune. -Nathan On Sat, Apr 18, 2020 at 2:55 AM Родин Максим wrote: > > Hello, > Try these options: > > sudo mount.nfs -o wsize=8192,rsize=8192 IPADDRESS:/shara /home/myuser/shara/ > > Play with wsize and rsize to achieve better speed. > These are mines. > > 18.04.2020 02:31, Nathan Clement пишет: > > Hello, > > > > I am trying to get an Intel atom mini itx board running as an OpenBSD 6.6 > > NAS. > > I've got the necessary daemons running on the mini itx board: > > > >> doas rcctl ls started > > cron > > httpd > > mountd > > nfsd > > ntpd > > pflogd > > portmap > > slaacd > > smtpd > > sndiod > > sshd > > syslogd > > > > and exports is set up: > > > >> cat /etc/exports > > /home/nathan/shared -alldirs -ro > > > > I am mounting this from my laptop which runs on arch linux at the moment. > > On the linux client machine, this is the relevant line from mount: > > > > 192.168.1.4:/home/nathan/shared on /home/nathan/mnt type nfs > > (rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.4,mountvers=3,mountport=997,mountproto=udp,local_lock=none,addr=192.168.1.4) > > > > I can copy small files over nfs, but anything large takes way too long. > > I've read rsync isn't necessarily the best way to gauge transfer speed, but > > rsync shows I'm getting about 38kB/s transfer speed. For comparison, I > > tried using sshfs to mount the same directory on the itx to the same > > location on the linux system and I get ~1.1MB/s, wow! Even that isn't > > great, but I'm the laptop is on wifi and I figure I can get to more tuning > > later. > > > > It seems clear I'm not (just) dealing with hardware limitations in this nfs > > mount. What else can I do to debug this? > > > > Thanks, > > Nathan > > > > -- > С уважением, > Родин Максим
Re: Help debugging slow nfs (40kB/s); linux client
Hello Nathan, On 17/04/2020 - 19:31, Nathan Clement wrote: [...] I am mounting this from my laptop which runs on arch linux at the moment. On the linux client machine, this is the relevant line from mount: 192.168.1.4:/home/nathan/shared on /home/nathan/mnt type nfs (rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.4,mountvers=3,mountport=997,mountproto=udp,local_lock=none,addr=192.168.1.4) [...] I recently observed (unfortunately, I'm not able to say from when exactly, because I don't use my exports so often...) NSF connection slowing down to the point that it was impossible to make common operations like playing a video or transferring files with significant dimensions. I reverted to the previous performances changing (on the client side) the protocol from TCP to UDP. Of course, YMMV. In my case, both server and client(s) are running OpenBSD (6.6 the server, -current the clients). The point is that I was not able to gather enough information to send an e-mail to bugs@... -- Alessandro De Laurenzis [mailto:jus...@atlantide.mooo.com] Web: http://www.atlantide.mooo.com LinkedIn: http://it.linkedin.com/in/delaurenzis
Re: Help debugging slow nfs (40kB/s); linux client
Hello, Try these options: sudo mount.nfs -o wsize=8192,rsize=8192 IPADDRESS:/shara /home/myuser/shara/ Play with wsize and rsize to achieve better speed. These are mines. 18.04.2020 02:31, Nathan Clement пишет: Hello, I am trying to get an Intel atom mini itx board running as an OpenBSD 6.6 NAS. I've got the necessary daemons running on the mini itx board: doas rcctl ls started cron httpd mountd nfsd ntpd pflogd portmap slaacd smtpd sndiod sshd syslogd and exports is set up: cat /etc/exports /home/nathan/shared -alldirs -ro I am mounting this from my laptop which runs on arch linux at the moment. On the linux client machine, this is the relevant line from mount: 192.168.1.4:/home/nathan/shared on /home/nathan/mnt type nfs (rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.4,mountvers=3,mountport=997,mountproto=udp,local_lock=none,addr=192.168.1.4) I can copy small files over nfs, but anything large takes way too long. I've read rsync isn't necessarily the best way to gauge transfer speed, but rsync shows I'm getting about 38kB/s transfer speed. For comparison, I tried using sshfs to mount the same directory on the itx to the same location on the linux system and I get ~1.1MB/s, wow! Even that isn't great, but I'm the laptop is on wifi and I figure I can get to more tuning later. It seems clear I'm not (just) dealing with hardware limitations in this nfs mount. What else can I do to debug this? Thanks, Nathan -- С уважением, Родин Максим
Help debugging slow nfs (40kB/s); linux client
Hello, I am trying to get an Intel atom mini itx board running as an OpenBSD 6.6 NAS. I've got the necessary daemons running on the mini itx board: > doas rcctl ls started cron httpd mountd nfsd ntpd pflogd portmap slaacd smtpd sndiod sshd syslogd and exports is set up: > cat /etc/exports /home/nathan/shared -alldirs -ro I am mounting this from my laptop which runs on arch linux at the moment. On the linux client machine, this is the relevant line from mount: 192.168.1.4:/home/nathan/shared on /home/nathan/mnt type nfs (rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.4,mountvers=3,mountport=997,mountproto=udp,local_lock=none,addr=192.168.1.4) I can copy small files over nfs, but anything large takes way too long. I've read rsync isn't necessarily the best way to gauge transfer speed, but rsync shows I'm getting about 38kB/s transfer speed. For comparison, I tried using sshfs to mount the same directory on the itx to the same location on the linux system and I get ~1.1MB/s, wow! Even that isn't great, but I'm the laptop is on wifi and I figure I can get to more tuning later. It seems clear I'm not (just) dealing with hardware limitations in this nfs mount. What else can I do to debug this? Thanks, Nathan