From nobody Thu May 19 00:04:14 2022 X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7682C1AEEBE3 for ; Thu, 19 May 2022 00:04:33 +0000 (UTC) (envelope-from kungfujesus06@gmail.com) Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L3VTX46CPz4sXF for ; Thu, 19 May 2022 00:04:32 +0000 (UTC) (envelope-from kungfujesus06@gmail.com) Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-2ff53d86abbso22108767b3.8 for ; Wed, 18 May 2022 17:04:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=iuuGwwt913MtR40RQSGbBTaSEvTJiQa6p38YtstiYMw=; b=lXFBtbGAOjpRGcjnzpIZUfC6KNtgkLR/uPIbgiJs/8yvG3iXk6p0AIFRU2jK//Xx5E LQhR3BcypIBk1OjYF+nOoNrcNMyauDWmTL3EkPVLjZdHjT+VrcYaEpfWvIrei8WqdKsM 7qJKb6LFqavR3IOo4evS/MSf1xRUHTeHRgD6dAz3bO1XdeE+QBWNkRaSvY0WVugpUT7x dN25MSPEYiL+4j6mJN3+S3HAZRf+//5HmvczaeF/bRKpRXHe10bKtCGLEopiw6q5PiIY W2CDXmW91ZIDp6d5DWw+fn8CPZYxqkW7uRrcWKXpaX4SOn2m7sHJ1bQXTwh9x1cTiUbb L5yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=iuuGwwt913MtR40RQSGbBTaSEvTJiQa6p38YtstiYMw=; b=fgaZQyh9kVMNBkDyvn2tva9UwiKBvybK8H2WeViszS7ON11FLv4dOIEFzhTgA2XDC9 5le8NY8q1Of8P/gIUD1GdXnONLNr0SDdBjSeidP7JXkbgFJApBkrAXy8PbxjWeG8zPJJ J3vydGLnwm8hQR5Gxfab7GKPosITO9JB5ieDRT5pTIMuEOs2HdpxSsNi9oAfxDPDhxqu Pir4DStqydnhpRxCWS81gcD9kLG8eHzp0MC4uh7GYIU1wbsFE/bbBYjXd6PI52zAgtOo pm9crQOngOw1sCqUvL9hDaQOO4QKYqMO3xN5Iygwkjy04rBxlS4kQeVb4wysCeNOj7g0 pk5w== X-Gm-Message-State: AOAM53361oDE5hM73GbTwyjuV8Rdk4WyUGWuA6/FxKuA6Lupgl3KdQc3 KhpTvtpvGQQexiymqdz/RJnuWthYZvJuaEmGVQ59szlV73c= X-Google-Smtp-Source: ABdhPJySrHLyCSIOQdvHnYFdmx3KAzyOJ1yRT6OjXAlCq4xXlgtffXQGqNIP8DLwxelYGUp0CxEoP8OtTs2ktQ4jXRs= X-Received: by 2002:a81:2443:0:b0:2eb:4ffe:fab2 with SMTP id k64-20020a812443000000b002eb4ffefab2mr2081609ywk.330.1652918666112; Wed, 18 May 2022 17:04:26 -0700 (PDT) List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 From: Adam Stylinski Date: Wed, 18 May 2022 20:04:14 -0400 Message-ID: Subject: zfs/nfsd performance limiter To: freebsd-fs@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4L3VTX46CPz4sXF X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=lXFBtbGA; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kungfujesus06@gmail.com designates 2607:f8b0:4864:20::112d as permitted sender) smtp.mailfrom=kungfujesus06@gmail.com X-Spamd-Result: default: False [-3.98 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_RHS_MATCH_FROMTLD(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::112d:from]; NEURAL_HAM_SHORT(-0.98)[-0.982]; MLMMJ_DEST(0.00)[freebsd-fs]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N Hello, I have two systems connected via ConnectX-3 mellanox cards in ethernet mode. They have their MTU's maxed at 9000, their ring buffers maxed at 8192, and I can hit around 36 gbps with iperf. When using an NFS client (client = linux, server = freebsd), I see a maximum rate of around 20gbps. The test file is fully in ARC. The test is performed with an NFS mount nconnect=4 and an rsize/wsize of 1MB. Here's the flame graph of the kernel of the system in question, with idle stacks removed: https://gist.github.com/KungFuJesus/918c6dcf40ae07767d5382deafab3a52#file-nfs_fg-svg The longest functions seems like maybe it's the ERMS aware memcpy happening from the ARC? Is there maybe a missing fast path that could take fewer copies into the socket buffer?