Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4275002pxj; Tue, 8 Jun 2021 10:21:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzVDj/XbYoz1rHRR+dNavw2YOcepNGrcgPI2WwWD+Ebwnj0Ygq2jHO157TA78LCEd9igKI X-Received: by 2002:a17:906:3c44:: with SMTP id i4mr24670770ejg.135.1623172911383; Tue, 08 Jun 2021 10:21:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623172911; cv=none; d=google.com; s=arc-20160816; b=SB4jlMRs8QbddnAueM45/8EVL8A2noJXzi9tLTJuyf1nbTlvMb9pd3FFBt6OOaJutD VOG9jukKOfI2bcV0OLoJu5zJ+gousr00dUbyRs3Sf85IY/3E2APdofREPbahIg6R2GfI Luzi+jIgDi53tFIKqOo4AqU856N1DFw2+HkHvaCNivexMoBbALqc3CuusQBm7G44AjFQ bfzmBRYKuJP0seRI83Gszr6RrHx8jUuW7cg9dsSNlRLJ8IvGL4jeDeao0uHeMX76H3hI 3pG/Jqt1lpWcSZr+VQmDgUZlEOqu+PttPh5dVtz1xflz9uFKE36+wGd9iy2OyGGu4f8K wCFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:from:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date :dkim-signature:dkim-filter; bh=2hQ+IhZOkW/0IERB/C1JhYCR/JFt50N0MUYyTTPmzUk=; b=jGdGJIrSNKhtyAxoNIi0b9eErNvnR4gE4WB2gTOosg8pM0LMT9x4Ou9b4IT5rkgD0t olyHDrOs8DjSHO2JKhOR9TaI4L9iPr8ljs930yrfOLPA3BOrRtdgjR+ep+iaUXhHMBS9 udZG3VG3bbPwDhe2HetT0KbihVq62OtrGa4XQ37cU0gAvGNcuwg+eIA/WLEGKDSM86zS /ckRwK7ziSYl8EA9U8Ypq1BlO4Vu8XCf7xj5vnX1MOuYM3bhD8oRG1cn49SbUWoznTr0 R6+CWwWXasK02EYLGdCsRXdIt2ipPggf8KZi3b2jIHPyO+eyh5kcukCgAR19h0kutdS9 lJIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=Sk830VBR; 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 4si229325ejr.388.2021.06.08.10.21.21; Tue, 08 Jun 2021 10:21:51 -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=Sk830VBR; 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 S233158AbhFHRWL (ORCPT + 99 others); Tue, 8 Jun 2021 13:22:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233005AbhFHRWK (ORCPT ); Tue, 8 Jun 2021 13:22:10 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 162ABC061574 for ; Tue, 8 Jun 2021 10:20:16 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 9C36D685B; Tue, 8 Jun 2021 13:20:15 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 9C36D685B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1623172815; bh=2hQ+IhZOkW/0IERB/C1JhYCR/JFt50N0MUYyTTPmzUk=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=Sk830VBRLQT7h0r/ezL5Ysrt6IqvmmTjGHEcbYCQaelenfkxspK/qiqwCmAasaA5G QDlwX+2vwCytqt3rzgdB65EPhRsA0U8wk+f9xWOOToW3cO75Aqdlh9VD0BmfSSCflH G3Gj3RgkhOgAMK8sdpCRaWt1QQoLZB6tcIMONC3Q= Date: Tue, 8 Jun 2021 13:20:15 -0400 To: Frank van der Linden Cc: Wang Yugui , linux-nfs@vger.kernel.org Subject: Re: nfsd dead loop when xfstests generic/531 Message-ID: <20210608172015.GB22685@fieldses.org> References: <20210531125948.2D37.409509F4@e16-tech.com> <20210601165535.GA3102@dev-dsk-fllinden-2c-d7720709.us-west-2.amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210601165535.GA3102@dev-dsk-fllinden-2c-d7720709.us-west-2.amazon.com> User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Jun 01, 2021 at 04:55:35PM +0000, Frank van der Linden wrote: > On Mon, May 31, 2021 at 12:59:51PM +0800, Wang Yugui wrote: > > > > > > Hi, > > > > nfsd dead loop when xfstests generic/531 > > > > linux kernel of nfs server: 5.10.41 > > linux kernel of nfs client: 5.10.41 > > > > > > nfsd dead loop when xfstests generic/531 > > > > linux kernel of nfs server: 5.10.41 > > linux kernel of nfs client: 5.10.41 > > This is a known issue. generic/531 opens a large number of files, causing > the nfsd file cache code to walk a very long LRU list of open files. For > v4, there will be a lot of long term opens (because of the OPEN call), > and they all end up on that list. > > So, the basic issue is, that the nfsd file cache is a good match for > v3 semantics, but less so for v4 semantics. > > I posted an experimental patch to work around the issue: > > https://lore.kernel.org/linux-nfs/20201020183718.14618-4-trondmy@kernel.org/T/#m869aa427f125afee2af9a89d569c6b98e12e516f > > The rhashtable patch has issues, so disregard that one, but the other one > is a basic fix for this issue. It has one other issue that I noticed (refcount > error), but that is easily fixed. > > I should update the patch and formally post it.. That would be great. --b.