Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10926398rwr; Fri, 12 May 2023 15:31:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6LazB4hxBkqNRPK2Yf4ur6nKksxvGXZ+m8eWbkFgCe3OEyIRCsGOT5fN+GhFUAAh8SHjDa X-Received: by 2002:a05:6a20:12cb:b0:104:1ab7:8242 with SMTP id v11-20020a056a2012cb00b001041ab78242mr7342065pzg.43.1683930719533; Fri, 12 May 2023 15:31:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683930719; cv=none; d=google.com; s=arc-20160816; b=zXw3UBhl1LNXQwDY0Hcb3Sr+1tLmR+s/AKoGsySJh3IA6sLhL8ayZggW/6TZpYpkcG zW6WwN0tErVuDuDazRZU2VA+V4GwvCDCO+GCSWRVQgN8/ttLIp1bG4rqOVmiScUWmwhS SjrcIUWWXhLbhuZW0Su8zmnDlW6xA+sny8XFYC7kcMejq0K3eLxncGmtioU+8kd08g81 K7Zr/dBfyHNcubbCbbiIaLp/r4B+ihvCBJYYbUyScNIqM8F3iUyEkAZU2hDRwRVvU++I ELSRWwbxIS6IIG664uJ96n9Do5hk+qsV8ziAMvhBWqiJimQfxpRz0U09o+nnG59wrsPa +U8w== 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=Tswq+u/7DnQKUWsxaX/TPusQBjaxLqyKXFCG1j3y7qs=; b=ZHGOQ8AEt57ASOktgBpCi/at5u7TJeS5FgHmDdY9Q+y+AGEGA19avTDbK8Da14d5m7 VUalx2eb3jKdxPoRi+B8msqfiCWU/YO5GyFcSZWAciMgFrEnsies4Ni8m6f7uNjESYGM 5uv2/AuMgBCazB3XmEFb0oRay/eD9dGwdB8RTMQvM5oWJk85Jb+r1PV5giJtcSOO30kU 27onaLoVLLLPHCgno9hcvqxiwSkiNM1E804MYoP/SZ9jSq9RZZMn5NB23tLoCyoiFqRV zECBYhg9kVOANB84OhW3nGfyTJkgcDpvjkHCBK+1LFHaCNpfC9eI9Q6cX3177gd5OAQV zHrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fromorbit-com.20221208.gappssmtp.com header.s=20221208 header.b=aeXAEAA5; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s65-20020a637744000000b0053090c5d094si3162759pgc.648.2023.05.12.15.31.47; Fri, 12 May 2023 15:31:59 -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=@fromorbit-com.20221208.gappssmtp.com header.s=20221208 header.b=aeXAEAA5; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238499AbjELWBo (ORCPT + 99 others); Fri, 12 May 2023 18:01:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231562AbjELWBl (ORCPT ); Fri, 12 May 2023 18:01:41 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0FC77D80 for ; Fri, 12 May 2023 15:01:39 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-643557840e4so11297188b3a.2 for ; Fri, 12 May 2023 15:01:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fromorbit-com.20221208.gappssmtp.com; s=20221208; t=1683928899; x=1686520899; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Tswq+u/7DnQKUWsxaX/TPusQBjaxLqyKXFCG1j3y7qs=; b=aeXAEAA56W6n0qLu8KBmP6FMNpeolNOZVZzCJeUznOjWaq2WwaDBSoC4NoM35QJW0P S6Ydo8TmmOWNnSP7i9cUEVhnSf3XErAs/UM/LYCDYqKDaaxemTxDPmv4wOxQE2eheJx3 UctwHZtqKmEIhSLCCY4RQNsUwpigdpdBdkQW1z6L5/42PSi3ewXC7YEiQBFXEgy3qMLk KDkl8BHJH7ey4gJyCqHTAhW5qc5uuMPRANRHl2KSClA6dxbiYrV1PwDej/4HKWqEYn7Z Y7FpjPQy5yxbMTnYzYJFvIiQ458bVEpIC6X2smSH8+8N9DH//62QLEq+0YuJbBaxJFlp IeNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683928899; x=1686520899; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Tswq+u/7DnQKUWsxaX/TPusQBjaxLqyKXFCG1j3y7qs=; b=cYeho698xnfTscMlTVFvjveLsme/fKwU3ZHX9J+j9Q9Nh+RKjteP45l8jy4vTqVREO NYwvs+7unjkq3gXO+F3smJx000Olo/8LTy3YL9lFDkmcXqqf0O3eoD3DMM6FiqO3m5zI W4+xfT0xMBLdsGGaMVPApS0DTTMd5avcybXBP1L8t+EXLI+2Be0DzSCE+3vTPOLUXX8e HjIN14nkOLB74AWxVEpIshdpKIy8SOWydr4W0IdGGX4fchfqZLL1UjlHqgkIkBI0b5pD 6DLFgAkiwMmVfNMveBJKkOkHMi0ixACafND3jg50Y9St5y+thdXCTRl6MJOEdui5Fv9k XcLw== X-Gm-Message-State: AC+VfDwAwiPVyX4EelZMLRB9p/ZQvKiqe8EE1bamQUUe08kVaMDyLy27 A9A5nN+t1EGzSdkHP9bZ/JB80w== X-Received: by 2002:a05:6a00:cc3:b0:63b:84a4:7b0 with SMTP id b3-20020a056a000cc300b0063b84a407b0mr34888943pfv.30.1683928899318; Fri, 12 May 2023 15:01:39 -0700 (PDT) Received: from dread.disaster.area (pa49-181-88-204.pa.nsw.optusnet.com.au. [49.181.88.204]) by smtp.gmail.com with ESMTPSA id j23-20020aa79297000000b00642e9b3c868sm7482384pfa.59.2023.05.12.15.01.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 15:01:38 -0700 (PDT) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1pxapT-00EYwR-20; Sat, 13 May 2023 08:01:35 +1000 Date: Sat, 13 May 2023 08:01:35 +1000 From: Dave Chinner To: Tycho Andersen 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: <20230512220135.GD3223426@dread.disaster.area> 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: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 09:16:36AM -0600, Tycho Andersen wrote: > 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. If inodegc is stuck, then it's only a matter of time before the filesystem will completely lock up and you'll have to cycle the machine anyway. This patch merely kicks the can down the road a few minutes, it doesn't change anything material. -Dave. -- Dave Chinner david@fromorbit.com