From owner-freebsd-fs@freebsd.org Thu Dec 6 02:21:20 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A170D13307DB; Thu, 6 Dec 2018 02:21:20 +0000 (UTC) (envelope-from avv314@gmail.com) Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CB3357656D; Thu, 6 Dec 2018 02:21:16 +0000 (UTC) (envelope-from avv314@gmail.com) Received: by mail-lj1-x229.google.com with SMTP id v1-v6so20256295ljd.0; Wed, 05 Dec 2018 18:21:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=egmjNwC9ybBWfePudLMZya0nBqWcmzMadKa/j9jJEig=; b=Auo2XHvCJkgc+3mXys6Veatk3PHjKP2LCzb88LnZG9aONfZ+NikiuRwEuSjkVTI6+g DG8m1XTyQ9hLnCdzguNkGQNKJZkpZ5WqAqLLyR8kSnOtl63YzaqKOlvYf4OgDQ7dgOo2 dGKpTmIX0l1CQlwuc6YEr8PC4eH74wYMS6SWmZyt2Wn43KtbOldiWiW2WFQKvpt3g4Jq rgCye611aFc9iR3RYkWVShm+xENxcsgF+kSiuFV3lv8pCzoRxeGHZaMClGYkx6wPpZUq 6i7ZDp8BRQ571vENQStMBFYkzIbmo7QoRDtA5SilYrmBOpO2RIR/utwhbL51L/7K5A3m 5aaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=egmjNwC9ybBWfePudLMZya0nBqWcmzMadKa/j9jJEig=; b=H9yT5oNMyJ8A288vQ/9z8d8TW0V3XoY9CR4etUuX84YA9giBAzjIv7mWqf/gX7XVtt QOX6T4CEyIjSnQGG+8FeIkkKfM7l5RS6D41Pp0i3Qz+aoBQQ+hONUoDixyAyZ/ADvaZ4 3GnvfFpaON4LEhCiBJ0H6PvxU8QdP1qOO6WYkxj4Ozx2j4Scc720j5ebOxsgqCox+xXZ WS3MUw4NhFdzwQrg7UBGUL+CM0+d7uBGUjsqLwVj4f+U9QbS9SKYzfQQVcYFc8iGjW0h BTHeKdj/pCfnOjcHhm/WUreY12SVFHuGDF8nbGR5CHNwilmQyM27fF5q+tStvx/UnUIV 6jog== X-Gm-Message-State: AA+aEWZ2rTSFy9i4q/6Etn/JhYlUfr7psw7NCKB//gXxBhZ/FZ+VNtsT PbydpBHufOVnrSN8uFSV+o2/thAuZOJA8pDc20A= X-Google-Smtp-Source: AFSGD/U6sPeqjUCXUsBJclccLT05Ft9vMsYH3zkxHtXK9rQmU1tKtlY7vED+Du5RYdSd1ylIZd2ZKqyvA7TWT83MhRk= X-Received: by 2002:a2e:3603:: with SMTP id d3-v6mr16861327lja.46.1544062875351; Wed, 05 Dec 2018 18:21:15 -0800 (PST) MIME-Version: 1.0 References: <201810291506.w9TF6YAP057202@pdx.rh.CN85.dnsmgr.net> In-Reply-To: From: Andrew Vylegzhanin Date: Thu, 6 Dec 2018 05:21:04 +0300 Message-ID: Subject: Re: NFS + Infiniband problem To: rmacklem@uoguelph.ca, freebsd-net Cc: "Rodney W. Grimes" , freebsd-fs@freebsd.org, freebsd-infiniband@freebsd.org X-Rspamd-Queue-Id: CB3357656D X-Spamd-Result: default: False [-6.46 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE(-2.47)[ip: (-9.42), ipnet: 2a00:1450::/32(-1.51), asn: 15169(-1.30), country: US(-0.09)]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[9.2.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.98)[-0.984,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2018 02:21:21 -0000 Hi, Back to the thread after month. Some prehistory of this case: >>>> 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=3D'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 k >=D1=87=D1=82, 1 =D0=BD=D0=BE=D1=8F=D0=B1. 2018 =D0=B3. =D0=B2 04:46, Andre= w Vylegzhanin : >> =D1=87=D1=82, 1 =D0=BD=D0=BE=D1=8F=D0=B1. 2018 =D0=B3. =D0=B2 3:27, Rick= Macklem : >> >>Also need to test setup with infniband set from connected mode to datagram mode. Tests for datagram mode IPoIB give disappointing results for NFS: just 20 - 40 MB/s for in average for NFS seq reads and even less for writes. And inifniband interface report significant errors on: # netstat -nI ib0 1 input ib0 output packets errs idrops bytes packets errs bytes colls 11267 0 0 1172852 20471 652 42046744 0 15628 0 0 1626860 28387 994 58257440 0 16920 0 0 1761896 30832 1065 63196256 0 13566 0 0 1410424 24882 722 51205964 0 17942 0 0 1867312 32652 1114 67164484 0 9443 0 0 982104 17340 525 35610908 0 Similar transfer speed and errors were got for other protocols: ftp, scp . I've tried to mount NFS share via UDP also, but no success. With UDP, NFS operations are hangs with MTU errors on IB interface: kernel: ib0: packet len 4096 (> 2044) too long to send, dropping. So, in short summary, IPoIB actually inoperable in datagram mode. Any ideas? Regards, Andrew