From nobody Mon Oct 9 16:03:13 2023 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 4S43jV63k6z4ww7r for ; Mon, 9 Oct 2023 16:03:26 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) (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 4S43jT6YhLz3Tr7 for ; Mon, 9 Oct 2023 16:03:25 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=V4RSVvxl; spf=pass (mx1.freebsd.org: domain of rick.macklem@gmail.com designates 2607:f8b0:4864:20::632 as permitted sender) smtp.mailfrom=rick.macklem@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1c88b467ef8so26972135ad.0 for ; Mon, 09 Oct 2023 09:03:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696867404; x=1697472204; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Xg0qZfPvLSVzYwAAwhaNuGcs/uTR76mqCOQLRA1F304=; b=V4RSVvxlK70UgDqwKsSmgXDbL5vzZoJeZwowNQ/fU5Jh/UXtu/01qosbOGMsLzV4R2 Wexqbia/rkuJWHRTySvvqKJQhu8X1fBN027WtuGFU/W2Rcz61L1pS5oe8wdngPSFAdFn 0EPSUI1/lqeAuEiFLRyTq8AqDKIU0KAHLZIUEcUsOQlJ+Wz720biIu+HVL8Uk5jwi9Po tFbf2aSGhRbk1gf7/o3BG0weVkx3UnarUem0qgLlrqf1a5BsV2BuTeBq9vZNyDB6wfIc t+BjknlfPaigFPZnHypYTyNbeln8ZX4Ae9+owEWBExrfSl8u7GS6zz8BnJ0l0JRuEMnY V2XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696867404; x=1697472204; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Xg0qZfPvLSVzYwAAwhaNuGcs/uTR76mqCOQLRA1F304=; b=Zs3m76HQ1A26JYcBUk0rUsaEvmKXy6bIG2WnDSeOMORqmcoiIWWD9Fzt/lm+Q0+bHW pbT94JH5ZmCcBc0whlgRaREU/zTxgTIKYnaWsAwIuR25pqVz4DBqnI5g3qzMHYk4YuCh LB+7bqBflzj0NCK4IhACDidTZgtSYAcYeSIyU43UKwem8DtbyboD7K6HuGEVeviVXDNE XqMmP6aZ4fTXyQDiI22LDp6m/cKiXnxxiauH9iSJXfDR9ms8zCIM3YTcqbQl8RbAwEBN Sl6tssQU3wxKewQbGh5vll/pfG6FeB4KCEsA1xKYYsZNC6uFzfE/bp1b0gn9iNDfI4J4 EOow== X-Gm-Message-State: AOJu0Yw6ooXRovAFMbMiCCmYgWo2KdMQC+uftjpB40a2DnW8iWDRN+p8 pEbt/SOiYJFWkz81sERj1mNrW8DhDqvbWnD2pk+C90w= X-Google-Smtp-Source: AGHT+IFsqGLWxrb4u7zZCISpmr4U3EJXvgpA93ydsMsbT/c2qhS/XiDOdh1qoz7gio8d6zcAiF7RbW72HNcmus6hb3Q= X-Received: by 2002:a17:90b:3843:b0:268:7be6:29a5 with SMTP id nl3-20020a17090b384300b002687be629a5mr12879493pjb.9.1696867404348; Mon, 09 Oct 2023 09:03:24 -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 References: In-Reply-To: From: Rick Macklem Date: Mon, 9 Oct 2023 09:03:13 -0700 Message-ID: Subject: Re: FreeBSD 13.2 NFS client mount hangs To: J David Cc: FreeBSD FS Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.91 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.91)[-0.909]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; ARC_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::632:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; TAGGED_FROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Queue-Id: 4S43jT6YhLz3Tr7 On Mon, Oct 9, 2023 at 2:37=E2=80=AFAM J David wr= ote: > > On Mon, Oct 9, 2023 at 1:34=E2=80=AFAM Rick Macklem wrote: > > LocalOwn and LocalOpens indicate that the server did start issuing > > delegations. > > Yes, with that enabled, the Delegs value from "nfsstat -Ec" climbs > into the low thousands. Performance does seem (gut feeling, not > tested) to be improved until the LocalOwns/LocalOpens pile up. > > > All I can think of is that you have an environment where the > > same file(s) get open'd by multiple processes. > > Yes. > > > The "oneopenown" option at least ensures that there is a single > > open owner (without it, each process is a separate open owner). > > I don't know what issue the "It may not work correctly when > Delegations are being issued by a server" warning about oneopenown > refers to. > > Would that potential problem still be a concern if the only filesystem > mounted with oneopenown were also mounted readonly and with nolockd? > (Specifically: ro,nfsv4,minorversion=3D2,tcp,nosuid,noatime,nolockd,oneop= enown) Yes. With "oneopenown" all NFSv4 Opens (not the same as a POSIX open, they are a Windows like open lock) are tied to the same open_owner string. Howev= er, local opens are tied to open_owner strings that are created from the proces= s. --> As such, delegations and "oneopenown" do not mix well. rick > > Thanks!