Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10457939rwr; Fri, 12 May 2023 08:22:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5avvbjcIx15t8xZErVW+BKTwyURaqTImXu4kJ4cXcuxSxmLmk3NZd5VyzQjUUWyATdYEZb X-Received: by 2002:a05:6a20:42a9:b0:100:a2ca:7ca8 with SMTP id o41-20020a056a2042a900b00100a2ca7ca8mr21659498pzj.54.1683904964810; Fri, 12 May 2023 08:22:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683904964; cv=none; d=google.com; s=arc-20160816; b=lYPq2dEI3romY3uvSxQnE6EUKpUdfgtKvCghD+cjkHOSobbVIlWnPL9jYgX7azxHZr qNcPihiQwRcHU5aXZi+mWfvZp++IKfy9n9MGXIrsWKnHxYD9lSQ4glaMDmY2zTSEVsmd x/qkbgQjq5GNn2zKTw8gcIb1Iwzbv9UdXmT8Wvuf98mesIDuJtVDKejQ1dBDgVYyTyFv UdMdooYL1gUA/Q/Fm8G+b44dplwnwsCb+celWh+KQruCAAMO4fbfoCd8uq5TMz9LhRdJ DpzDoysuAH0+qo2LWMbcxJ1ZM8De4JdSVbNzHcnDXwG48TbjroiW2Px5a3qtQbXJc+e3 PAGA== 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:feedback-id :dkim-signature:dkim-signature; bh=xtkb0nJV/iS7JIfrwakr/gfmwjRljCPV+qLudxkRwvA=; b=FXP/DKm1ELtfDtCO/ZKADxHcjsBYxg6jL6/nf7AWFCTeNYZzdvIBbUGt5br1CmcXBP Bfp9dBz3SRkMXLffohoPCbNWwvBhazyiIqV7zaRCYC5X6tFjRX7aA1UMkB77eO9uyVq7 ka597ml7dLmATWB2u3qq4LKF6o0tQCGVSa2Wr0fwSpnWNpXeGbQzzlpAxZuSt/Z/t5pT f7ml1k/6dTTPPH2T5ELKXYddPl1wXiqHUBsIgc/IOwrXTeuE4shTyeMs8pbAO5HlkaZP 0A0HdxUNU8BtPpajS8jmAXCopIhb3MHNDfWz/iax8449m56mcT339EBja6nyzFesHq2V kMxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tycho.pizza header.s=fm3 header.b=sBX9ErKR; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=WdXbKy6B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d16-20020a637350000000b0052c74f7adfdsi9022245pgn.837.2023.05.12.08.22.29; Fri, 12 May 2023 08:22:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@tycho.pizza header.s=fm3 header.b=sBX9ErKR; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=WdXbKy6B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241690AbjELPQn (ORCPT + 99 others); Fri, 12 May 2023 11:16:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232739AbjELPQl (ORCPT ); Fri, 12 May 2023 11:16:41 -0400 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 778EA5BA5; Fri, 12 May 2023 08:16:40 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 95F223200907; Fri, 12 May 2023 11:16:39 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 12 May 2023 11:16:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tycho.pizza; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1683904599; x=1683990999; bh=xt kb0nJV/iS7JIfrwakr/gfmwjRljCPV+qLudxkRwvA=; b=sBX9ErKRfkz9Ul1g96 LV+tKo1DkSmM49i8E+NsCfLc9uZA1ibWE5qlYXjZUkoLkc4f+KAO52Y3jpCeB6hr xzS3uPmQFCcRSevNIP29Yf+84wW/iwjpLQy6TY/ZlSGuJmFIY/xnMO3SQFTaQpJF FormSQyKFuvnB10Po/Z4bduNspwBs7f7pAipK6q6zHcnopoRJ5wGNrDC4g75ZM2l skaUdemsMa+iiAxNYS5byhFL69rMFy+UzpNaiRDLkKQGRu86DTUJyif6FxcOnuvC 9Opx1QNWICUcBkmvT12ndteLx3Czy9LX4VIqt11/eUpK02J9+462hbFgL3EBgDJs PXjw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1683904599; x=1683990999; bh=xtkb0nJV/iS7J Ifrwakr/gfmwjRljCPV+qLudxkRwvA=; b=WdXbKy6BLe1bFynIaA8GGQIwotTaw pbWzDihwlD9aVcvLcNQKkInousioevCf1ybERYVHQ2f5WWEAdwRpE0MG3p4JpoiP e29Z+2UL9V88UTVGIqoNrDBBJNJEshG2wSPZhVOxoj9E7wOvY4wV95HYY+wnk0iF QX351PyYZMkDaK3ISmGW9e41bV9QuxG9fKby3kHhewOs5lO1aib2JnL5+wL4ksMH tRVBzwne97msGrMT2TeTuOzpfBhcngoq2ThPjkgSe0iUEAXBOF8nrJ+rkq2wbyZ7 NOgweavZ3ztN2iN52qwUSnKlvs5i74JoWy+3+oQGfJJ4n1uQ+J+h4TI4A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeehtddgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepvfihtghh ohcutehnuggvrhhsvghnuceothihtghhohesthihtghhohdrphhiiiiirgeqnecuggftrf grthhtvghrnhepueettdetgfejfeffheffffekjeeuveeifeduleegjedutdefffetkeel hfelleetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epthihtghhohesthihtghhohdrphhiiiiirg X-ME-Proxy: Feedback-ID: i21f147d5:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 12 May 2023 11:16:37 -0400 (EDT) Date: Fri, 12 May 2023 09:16:36 -0600 From: Tycho Andersen To: Dave Chinner Cc: "Darrick J . Wong" , linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, Tycho Andersen , "Eric W. Biederman" Subject: Re: [PATCH] xfs: don't do inodgc work if task is exiting Message-ID: References: <20230511151702.14704-1-tycho@tycho.pizza> <20230512014547.GA3223426@dread.disaster.area> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230512014547.GA3223426@dread.disaster.area> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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-kernel@vger.kernel.org On Fri, May 12, 2023 at 11:45:47AM +1000, Dave Chinner wrote: > > Yeah, this is papering over the observed symptom, not addressing the > root cause of the inodegc flush delay. What do you see when you run > sysrq-w and sysrq-l? Are there inodegc worker threads blocked > performing inodegc? I will try this next time we encounter this. > e.g. inodegc flushes could simply be delayed by an unlinked inode > being processed that has millions of extents that need to be freed. > > In reality, inode reclaim can block for long periods of time > on any filesystem, so the concept of "inode reclaim should > not block when PF_EXITING" is not a behaviour that we guarantee > anywhere or could guarantee across the board. > > Let's get to the bottom of why inodegc has apparently stalled before > trying to work out how to fix it... I'm happy to try, but I think it is also worth applying this patch. Like I said in the other thread, having to evac a box to get rid of an unkillable userspace process is annoying. Thanks for the debugging tips. Tycho