Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6845994iob; Wed, 11 May 2022 06:39:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6IxWlkNP/mIM+7sDRCO6R3xN3LMxW58snsQ2mBxhlJmdCu+6lIFB1YMdng9lkSqO2HPXi X-Received: by 2002:a17:90b:4f4e:b0:1dc:cafb:d48e with SMTP id pj14-20020a17090b4f4e00b001dccafbd48emr5446156pjb.202.1652276368041; Wed, 11 May 2022 06:39:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652276368; cv=none; d=google.com; s=arc-20160816; b=FRo/3zQhMZk8bFvy+6Y//8Oqw9EKsz6lab/y264fEQQVsmINGK0Y4ynB6wVOW+peNd QkvRHl7RN0RR8eOZI+cF8E1dzWWlRPHxAeLdKKfeCHAEAqCG8jTQGlTeAOtNyf0d6lkB fIcXQGfpEKD/gCL6qM7thqQhRqGIBESMZExjTU3DIXvyKzzaPt95evbjVgxMSQo9N4b7 O0A3ai/zKUy9y9Q+g/pHbqIBAyP4XuU8cIkkT2bILwjG+Z6bjbc+i7Tp4q9qZYOtY9Ar WYOXC1oT0XEVIU1dTskGiKipMjUHNZ8/QosLA+mh/N8+r1F9Kqd1wNWtJldY/Fl2vlyQ ZshA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WrYyOlxJvhnmizCJTF8u8wZagauliqwq8fhIfcwZUnI=; b=MGBQ9h85JOFile35ciOwTcUSEMLadz2zSurJt2ykW4262U75vwm0ZRxTcKDP4vAq2C TqZcY9tQbinTbN+hOYWJWo8/65EdvC8Lo1lr+2unxGGjghO0svdL6d+qtf44dsf6jFst PlyypDclplaBfr6Jk/UcbFPmOV8jij/zgC2ig7sriGLN8k9Lrv8oktvtdd4sWZ3yzaX5 +7WeS3Mi0sBPLGXAQxTedfvTDxFN1VjilcGTFxfnfwjO2aOyKxhnGpSvQWYXCjvcUUru QSyLMpgtitC9FTMDJ4Ug9alTHmYYgFIbjnz7sjzJ1aoPMA8VZ5JvXbjfyjd1u/Q3MjN3 5X9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2deGWEjF; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y12-20020aa78f2c000000b0050ce9e406a5si2284863pfr.238.2022.05.11.06.39.01; Wed, 11 May 2022 06:39:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2deGWEjF; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230293AbiEKMiN (ORCPT + 99 others); Wed, 11 May 2022 08:38:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242499AbiEKMiM (ORCPT ); Wed, 11 May 2022 08:38:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BEDE22EA5F; Wed, 11 May 2022 05:38:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 075D5B82219; Wed, 11 May 2022 12:38:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 598DFC340F2; Wed, 11 May 2022 12:38:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652272688; bh=gyTtKqGrdgmxpfgLM/JIRhyOctz/MqSDCYRh45Yfp+A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=2deGWEjFIg1VgIh1TKv9PzyymIsk0XV45P65/6KT+7fgWhx/q7J9Z93XxM0lgkI07 23oYRtnpPjgTC/vPze8yeriSL3XDwctV4KioqFkzfx6dPykma7d+doD/ho8cLanDT/ ebzYoRmFK85QBoksGCChCTVmfYHC+ERfFLMlwC6k= Date: Wed, 11 May 2022 14:38:05 +0200 From: Greg KH To: Wolfgang Walter Cc: stable@vger.kernel.org, Trond Myklebust , Chuck Lever , linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: 5.4.188 and later: massive performance regression with nfsd Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, May 11, 2022 at 12:03:13PM +0200, Wolfgang Walter wrote: > Hi, > > starting with 5.4.188 wie see a massive performance regression on our > nfs-server. It basically is serving requests very very slowly with cpu > utilization of 100% (with 5.4.187 and earlier it is 10%) so that it is > unusable as a fileserver. > > The culprit are commits (or one of it): > > c32f1041382a88b17da5736886da4a492353a1bb "nfsd: cleanup > nfsd_file_lru_dispose()" > 628adfa21815f74c04724abc85847f24b5dd1645 "nfsd: Containerise filecache > laundrette" > > (upstream 36ebbdb96b694dd9c6b25ad98f2bbd263d022b63 and > 9542e6a643fc69d528dfb3303f145719c61d3050) > > If I revert them in v5.4.192 the kernel works as before and performance is > ok again. > > I did not try to revert them one by one as any disruption of our nfs-server > is a severe problem for us and I'm not sure if they are related. > > 5.10 and 5.15 both always performed very badly on our nfs-server in a > similar way so we were stuck with 5.4. > > I now think this is because of 36ebbdb96b694dd9c6b25ad98f2bbd263d022b63 > and/or 9542e6a643fc69d528dfb3303f145719c61d3050 though I didn't tried to > revert them in 5.15 yet. Odds are 5.18-rc6 is also a problem? If so, I'll just wait for the fix to get into Linus's tree as this does not seem to be a stable-tree-only issue. thanks, greg k-h