Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1541831lql; Wed, 13 Mar 2024 00:20:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHnhXIWDDCCxUXCH5lmVDtjmmgmOb4uMVX8Bmv05D1wxQYCov29QEO9NPQWU2ZYjmkFtOQ3pMC047l23Yz4zp5XHCCtufL0paweRbt6g== X-Google-Smtp-Source: AGHT+IHRf4mKiKFwkIjrZUpp866oLNmJuiA72A3EgIyB/F9xcjBzKgsqb7zF6rvABJqb71J9UHyo X-Received: by 2002:a50:aa9d:0:b0:566:f81:41a1 with SMTP id q29-20020a50aa9d000000b005660f8141a1mr8202290edc.22.1710314459696; Wed, 13 Mar 2024 00:20:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710314459; cv=pass; d=google.com; s=arc-20160816; b=C1hdWxYnIrL9ms3JDsJZjO5ANqWRaW3X4j8TFO4txDazo1Ni/XcMZFnVAEyjzvtLyj dHcOG83uf0vFM1xYSaZ7IEplXAJ4Xn9iqK6uCYEmrkVda859TXaIfZ4QJhl5x7Wj0lDi 1VNK5Ts305wq4Lpn05MHZk91GUBsQiI19speW09XKqZONcqDWGE2CapX+SlL1nhNocWv pei4bAMnBfZl9fkNdJ0SEtsYQbbwPbjq/e2jUJ4shIHNXseiuGe8KLYyCUnDiVKxmT3d dlb5IWgl9soHeQlRsxwvYekSClduW+qFtGwl9uxE135ZjpEpolHPSIsB1Bkwzg1alphA t29A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=TbLjGQtcAMjGFwJvyH0tq0KYIqlkWNalPJLvruBlN/Q=; fh=n8BdPOwB5j5bUaMrDL/yeleE5wzju5rG54ApC3TZgYM=; b=csyVNbg8/NB58qidTc06chBfHsOOYOf47SC4igc2u1puAbHfhJXQBEhUzSvDdZ0VoB fGrRog/i/8KL64YwC4h3fcmJ1MqVJNI77C6sc6RAMufCOP4UakblMypstRffgUI4odoj kWlZVhe8Kl/Od7aGJmU7GuF0zAIc0Cjp+p/OFpks6oTt8CoA3GdJ6j02V/Jr5zeUp8tD sYsM/AxyWKJCkPuRVVCRab+Ebxfo1wGa7p4dcZMSS92nNlTziueoyA6mbcXaowKHzYlT iY6uFv3ENQfYOjhvyzzNL4vKd5voQNFggy+VezDwWr3nDu+Q3T+kqoo93nVAGK/mFXmT mqBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=peff.net); spf=pass (google.com: domain of linux-nfs+bounces-2280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2280-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id fe5-20020a056402390500b00568615738e0si2412315edb.63.2024.03.13.00.20.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 00:20:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=peff.net); spf=pass (google.com: domain of linux-nfs+bounces-2280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2280-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 68A9D1F221A5 for ; Wed, 13 Mar 2024 07:20:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A22016428; Wed, 13 Mar 2024 07:20:56 +0000 (UTC) X-Original-To: linux-nfs@vger.kernel.org Received: from cloud.peff.net (cloud.peff.net [104.130.231.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1386315EA2 for ; Wed, 13 Mar 2024 07:20:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=104.130.231.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710314455; cv=none; b=i0h13HDWMTFUnzkc/76It6Sntj2/8mCirJD1Ywy0fVEwNMN0dTGWiapuFyZ2bQoxxpjiXOEdYhQBlB9IHihY3fA29VwgBLBW6wUKdeDO8U9InAqT5cEGejfXLJ3WCB655HUKEkjfY99s89voVCvx910D2HbyhWKEtxg2/HzgRsY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710314455; c=relaxed/simple; bh=9VbXXidcSZA19eF0oXzNuLIBqsBqklaQFnHHBVuJByk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QpOMEVOrYWy2EL6+6FRJAXW4DyK6yu5L/631mVr86SqvrPc6D7Xct7ilZB/F9bWUbnLlSnTNU0p5jXtpcAFrjZBU0/ZQRd87XN+IfMFwkoN1EDqdRMgsnXKAa0Pl/9yycBbNIcOLoJ1acrdUvJXg4IWnrqw3JJBxU4SBlCj9s2w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=peff.net; spf=pass smtp.mailfrom=peff.net; arc=none smtp.client-ip=104.130.231.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=peff.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=peff.net Received: (qmail 30287 invoked by uid 109); 13 Mar 2024 07:20:53 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with ESMTP; Wed, 13 Mar 2024 07:20:53 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 4827 invoked by uid 111); 13 Mar 2024 07:20:57 -0000 Received: from coredump.intra.peff.net (HELO coredump.intra.peff.net) (10.0.0.2) by peff.net (qpsmtpd/0.94) with (TLS_AES_256_GCM_SHA384 encrypted) ESMTPS; Wed, 13 Mar 2024 03:20:57 -0400 Authentication-Results: peff.net; auth=none Date: Wed, 13 Mar 2024 03:20:52 -0400 From: Jeff King To: Chuck Lever Cc: Patrick Steinhardt , git@vger.kernel.org, linux-nfs@vger.kernel.org Subject: Re: t0032 fails on NFS mounts Message-ID: <20240313072052.GC125150@coredump.intra.peff.net> References: Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: +cc Patrick for reftable On Tue, Mar 12, 2024 at 11:10:29AM -0400, Chuck Lever wrote: > Unit test t0032 fails when run on an NFS mount: > > [vagrant@cel t]$ ./t0032-reftable-unittest.sh > not ok 1 - unittests > # > # TMPDIR=$(pwd) && export TMPDIR && > # test-tool reftable > # > # failed 1 among 1 test(s) > 1..1 The output for this test script is particularly unhelpful because it's not using our test harness at all, but just running a bunch of internal tests using a single program. Running with "-v" should give more details about what's failing. I set up a basic loopback server like: mkdir /mnt/{server,client} exportfs -o rw,sync 127.0.0.1:/mnt/server mount -t nfs 127.0.0.1:/mnt/server /mnt/client and then ran: ./t0032-reftable-unittest.sh --root=/mnt/client -v Looks like it fails at: running test_reftable_stack_compaction_concurrent_clean reftable/stack_test.c: 1063: failed assertion count_dir_entries(dir) == 2 Aborted > v2.43.2 seems to work OK. For me, too. Bisecting shows the problem appearing in 4f36b8597c (reftable/stack: fix race in up-to-date check, 2024-01-18). -Peff PS That test seems to run ~20x slower on NFS versus directly on ext4. I'd expect a little overhead, but that's quite a bit.