Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1943565pxb; Mon, 23 Aug 2021 08:14:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMH4h4dXb/sPgL/WBqxajCDPH1ySoIm6CEBchNGMZy3cSsjWarEgGaXxoZ3/Xx30uQ3kvT X-Received: by 2002:a17:906:2495:: with SMTP id e21mr36431008ejb.244.1629731690763; Mon, 23 Aug 2021 08:14:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629731690; cv=none; d=google.com; s=arc-20160816; b=PiIWMAMoLeWX2RP1BrAMtjsFnvxXdNY72mXiqHhHPSgopgR5UDJh5OBLGjc4/Ihuxu XK3o9AwvlH9oXKXcYcMXnvFC4OVbUxNJ3bd9oHbkkowWPdfoCEIrAm3jzQMuXiEptkpc I97QjMUyZw0+gZIVtjNVhnl9/BRtSFGk2gO86NUFBz7lr5ZUIPE4YrUbyWacrpT1Wuw0 8bfeFAyCPIGpuN4zcVAFQBrDUwS2JDHS7Cu3JmC7r3fNTkjhbGRvUZ/pMxYTONCs11CK b9Qd1ttICTj5+DMU/hkkRj7Yx/pabku7nkLy6HsohVz2CFHcADIfS7F3ZBEpD32UzMh9 7cbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=zHsshka57LdVeAEwBFskmUltem0scBimosKO/3TgeyM=; b=uWGeJ971BpvgoY0LMNDLNvk7kGbgAiF3OMikgXzotPYGDQq9X3tyNBxfl8OyWDmnAa vRxdl5WG8oUKBu4dcJcxoz66s3NIdYieTHsluiuBVnQz+JUrJYlaPmTasyFAjxifzrWS NGiYVuPZDGcPeQ8r4MyVlIBi7sZVTH7QvGsYolAWHMaVmw7uX1snZVBdTpJY1s3OxX2o ieO4wbhh158wPTQNVmjbA4qN/1bDt8rJQXcOHZwvChtnAt7AwXCeExfQ86m0pJ0YI9Kx eSPZAd1snaf2L1yjRlGn/ENn+jkxwwF1gOn5v/qDVW4dX/gEv5MCWkhLrnN5XVDZJeEy s1xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=HZBBZT9B; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id df7si14781443edb.87.2021.08.23.08.14.17; Mon, 23 Aug 2021 08:14:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=HZBBZT9B; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229933AbhHWPMM (ORCPT + 99 others); Mon, 23 Aug 2021 11:12:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231140AbhHWPML (ORCPT ); Mon, 23 Aug 2021 11:12:11 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA5B7C061575 for ; Mon, 23 Aug 2021 08:11:27 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 368826855; Mon, 23 Aug 2021 11:11:27 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 368826855 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1629731487; bh=zHsshka57LdVeAEwBFskmUltem0scBimosKO/3TgeyM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HZBBZT9BNCGDd2do3JSwG972J3O4yAz0zoEPshfbSvTP1B93x+3XAfbl3QShCVDIK VOtfpL/5nz0TAt6Lt262AvjCYf5KLfAMBZNfST+5+aGpgqY7QnUm5V9TlPkZBc6BHL TnC8cFaoAW06Xi02zmcR8B8jBm3pPjoz8kWlUFpU= Date: Mon, 23 Aug 2021 11:11:27 -0400 From: "bfields@fieldses.org" To: Trond Myklebust Cc: "linux-nfs@vger.kernel.org" Subject: Re: sporadic generic/154 failure Message-ID: <20210823151127.GB883@fieldses.org> References: <20210823144802.GA883@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Aug 23, 2021 at 03:06:21PM +0000, Trond Myklebust wrote: > On Mon, 2021-08-23 at 10:48 -0400, J. Bruce Fields wrote: > > I'm seeing generic/154 failing sometimes. > > > > It does a "cp --reflink" (which uses FI_CLONE, which results in a > > ->remap_file_range call that NFS maps to the CLONE operation), then > > overwriting parts of the fire, and checking free blocks (with "stat -f > > /path -c "%f") at various points, and failing when the number of free > > blocks is outside an expected range. > > > > I don't know if it might be some caching issue, or something about how > > NFS reports free blocks. > > > > Honestly it looks unlikely to be critical, so for now I'm ignoring > > it.... > > > > XFS backend? Yes. > It could be speculative preallocation. The fact that NFS > can defer closing the file (either due to delegations or due to the > NFSv3 file cache) typically results in it taking longer for XFS to free > up the blocks it preallocated. That again means it takes longer for the > 'space used' to settle to the correct final value. > > https://linux-xfs.oss.sgi.narkive.com/jjjfnyI1/faq-xfs-speculative-preallocation That sounds plausible. --b.