Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Oct 2018 08:06:34 -0700 (PDT)
From:      "Rodney W. Grimes" <freebsd-rwg@pdx.rh.CN85.dnsmgr.net>
To:        Andrew Vylegzhanin <avv314@gmail.com>
Cc:        freebsd-infiniband@freebsd.org, freebsd-fs@freebsd.org
Subject:   Re: NFS + Infiniband problem
Message-ID:  <201810291506.w9TF6YAP057202@pdx.rh.CN85.dnsmgr.net>
In-Reply-To: <CA%2BBi_YiHoxFc3wsEPnMeBHWgW-nh6sXQCEgBTb=-nD6-XcjZ%2Bg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Hello everyone,
> 
> I have a several FreeBSD machines connected via Infiniband netwok ( FDR
> switch Mellanox SW3036 + ConnectX-3 VPI cards ).
> One of them is a NAS-server with multiply ZFS pools.
> 
> All kernels (11.2-RELEASE on clients and 12.0-BETA1 (11.2 also tried) on
> server) are with infiniband connected mode (option IPOIB_CM, option SDM)
> and world with OFED stack support. (WITH_OFED='yes').
> 
> File transfers via FTP or SSH between server and clients works almost
> flawless ( ~ 12 Gbit/s ).
> 
> But when I try to copy in/out some significant data via NFS share mounted
> on clients, NFS i/o hangs at all or got extremely slow (couple kB/s)
> transfer speed after uncertain amount of copied data. For example, on the
> one node I can copy 1GB file, and after NFS hang on file with size 30 kb.
> 
> Some details:
> [root@node4 ~]# mount_nfs -o wsize=30000 -o proto=tcp 10.0.2.1:/zdata2 /mnt
                               ^^^^^^^^^^^^
I am not sure what the interaction between page sizes, TSO needs,
buffer needs and all that are but I always use a power of 2 wsize
and rsize.   You might try that.  And as Rick suggested, turn of
TSO, if you can.  Is infiniband using RDMA to do this, if so then
the page size stuff is probably very important, use multiples of
4096 only.


> [root@node4 ~]# dd if=/dev/zero of=/mnt/N1 bs=1m count=1024
> 
> Ctrl-T for "hang" dd
> load: 0.01  cmd: dd 1061 [bo_wwait] 70.95r 0.00u 0.00s 0% 2112k
> load: 0.01  cmd: dd 1061 [bo_wwait] 72.89r 0.00u 0.00s 0% 2112k
> 
> for "slow" dd
> load: 0.00  cmd: dd 2254 [nfsaio] 224.18r 0.00u 0.13s 0% 3132k
> 
> load: 0.00  cmd: dd 2254 [nfsaio] 225.94r 0.00u 0.13s 0% 3132k
> 
> I've tried mount with different wsize option with same result.
> 
> Any help would be greatly appreciated.
> 
> --
> Andrew
> _______________________________________________
> freebsd-infiniband@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-infiniband
> To unsubscribe, send any mail to "freebsd-infiniband-unsubscribe@freebsd.org"
> 

-- 
Rod Grimes                                                 rgrimes@freebsd.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810291506.w9TF6YAP057202>