From nobody Fri Nov 08 15:58:48 2024 X-Original-To: freebsd-net@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 4XlNsc3pyXz5cRPF for ; Fri, 08 Nov 2024 15:59:00 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (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 "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XlNsc1z7fz4l3Q for ; Fri, 8 Nov 2024 15:59:00 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5cec93719ccso2967938a12.2 for ; Fri, 08 Nov 2024 07:59:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731081539; x=1731686339; 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=5Xc8Dx0lSFyoG3hvCAzXNOeTy3ya6g4Mk9S3VzSfMTU=; b=MMEnlaO3hXBVdPTyBD0CiPS9+QM58iHD1JL3Lf3mHwxQOUsTaatwvA/NLivk9pkTld 78K6KBsdLjwps4zdgSETwB2tz2GHwUK1nO+rCOafG9tcQpICBTrL5MBayoH8rV9Fj4zk k9wnCV1PtZ5ItP19IjwzgQ2UAJSqfwF0HhWO0XsEvf4Wl1k8d+btSyF/WzyIPHIcmDvw gLkPdxMKvFBsoCVC/eQmdZxwL2dAkx3lyUlwv+AzNZKkDpvyVu7/yyRUkdMCbfSVJCqF /9hJJnN7+GtHTs/DFI8ncuE1puhSu17Dla4SVLs+7VdNTaz+ORtFntNf9WA/rZqdyQRt A+mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731081539; x=1731686339; 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=5Xc8Dx0lSFyoG3hvCAzXNOeTy3ya6g4Mk9S3VzSfMTU=; b=WjtjMZK+PTG3rpf3///bXnDMeI0Vu3gU5D9v051XIZzMCmLiDrHxoaM/+QJ0qFX02Q 9cxNy3eEFv5hjrgQaBu31WiIuvRbktRhRsxHJHSQO0AT6LJyS6Nod3MXcqKMY6Niur6q gPetlizTwfBWk3uxmnXsibrXyDByPSjuRUBiByT49qSebg9S4nAdQQzyRBBQKrICUT6J KdcAPmBPS1duO3ZLHV7WN/ZX1TjxqLe2QIq4nGXoX0BikM45J3OD8SA7xDhNlrGa1qng VJYHJYfpI/eJ0P8m/jLOtyJl+RwkgzLsRDCh/wpwqeMRroObRBkmtI6Iu9FQAqfs/g6n nwww== X-Forwarded-Encrypted: i=1; AJvYcCWNUSpUOkZjkMglR2n8ogsL6e7BSmXKZYYgzrz6XsCnHr+LL1icIcDKXbIVn4M7l+PYyVYNL+1xsRhpxQ==@freebsd.org X-Gm-Message-State: AOJu0Yz1qc0w+dcGhn47/ONsPfD3+9H80l/J1S8Fwh4EiMuJ49/wk5DS CQ+X5pJ8psVOViPtr+7WgV2GHPMB6GrxYMr6KCsAFY3ZwRcKTvrLQM53RihKkA7yHlYEt92zLd1 LgTdH6TryQWagwqn0LgjaZYmpA1eBEIQ= X-Google-Smtp-Source: AGHT+IGLpx6uiGrLIofHdRFWgA0Xaf1fL2G13RvSC/JHr1RM49MqvMLh9sjKG6xZOczjDEuCufwtr84VzDoVXGOxzlo= X-Received: by 2002:a05:6402:13ce:b0:5ce:ddd4:7c2f with SMTP id 4fb4d7f45d1cf-5cf0a30c5dcmr2820681a12.7.1731081538416; Fri, 08 Nov 2024 07:58:58 -0800 (PST) List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 References: <8187509e-c9fb-403f-8569-28ba58425cff@FreeBSD.org> <9BD96F0F-363F-45BF-B3AF-BDEBD4B46175@neville-neil.com> In-Reply-To: From: Rick Macklem Date: Fri, 8 Nov 2024 07:58:48 -0800 Message-ID: Subject: Re: An interesting anomaly in NFS client... To: George Neville-Neil Cc: Mark Saad , freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4XlNsc1z7fz4l3Q X-Spamd-Bar: ---- On Thu, Nov 7, 2024 at 9:41=E2=80=AFPM George Neville-Neil wrote: > > > > On 7 Nov 2024, at 13:59, Rick Macklem wrote: > > > On Thu, Nov 7, 2024 at 9:34=E2=80=AFAM George Neville-Neil wrote: > >> > >> > >> > >> On 7 Nov 2024, at 4:15, Mark Saad wrote: > >> > >>>> > >>>> On Nov 7, 2024, at 12:29=E2=80=AFAM, Andriy Gapon = wrote: > >>>> > >>>> =EF=BB=BFOn 07/11/2024 02:43, George Neville-Neil wrote: > >>>>> Howdy, > >>>>> We've been digging into an interesting possible issue in the FreeBS= D NFS client. Here is the scenario. I have a FreeBSD VM on my Mac, the Mac = is the NFS server, the VM is the client. > >>> > >>> What are you using to run the vm ? What architecture is the vm ? What= about the Mac ? > >> > >> qemu, aarch64, M3 Mac. > >> > >> I doubt this is the source of the issue. > >> > >> I was poking through the code and I wonder if a slight time skew might= be an issue. I'm going to check into that. The VM and the Mac both us NT= P to stay in sync with the world, but who knows... > > Hi George, > > > > I'll take a look at the packet trace later, but... > > > > If you can easily reproduce the issue, do a: > > # nfsstat -E -c -z > > - before reproducing it, and a > > # nfsstat -E -c > > - after. Then look at the Cache Info: at the end of the output. > > > > I'll give that a look, and the thing that Mark found is also interesting.= I might ask Warner about it tomorrow, we're both at the Dev Summit. When I looked at the packet trace, I saw a lot of GETATTRs for different directories. If they are different directories and not the same ones over and over again, caching will not be the issue. (Btw, the attribute caching code hasn't changed in decades, afaik.) Have fun at the dev summit, rick > > Thanks, > George