From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=162.62.58.216 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796186869; b=Keaf3JopvZFM7sWcIMdox0VW0r54NLLuXea+z9gc8ShaB9FyqeUr0uCG+qQjBK1UXZ6s 8py1A1KcdGy6dncGOFQeZjfPbjgMi+naIWMycfPdx+cf4YCoRdMu6qCQK7Zj7ziXFP5Ze vRWwgg3ZYyAiMldxpfvYnDicB6LFIUjHVYFbYHwG73lxAB8GwLFc2M+YOSBBBSQOSNopv cYm5Y5jfWUTLKUU9/zacVSVfRdD/mPghDQnbwK0FjWELIwmq+OLkk7pJ9OqVLxq+pvBIf 5hEQSrQ8tf3wBrm/tZAtQEl7dMJGGwZgU7CVA2szPDjM2IstC4g6UPMy1Gj2iGl0cow== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796186869; h=DMARC-Filter:DKIM-Signature:Received:X-QQ-mid:Message-ID: X-QQ-XMAILINFO:X-QQ-XMRINFO:From:To:Cc:Subject:Date:X-OQ-MSGID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=JN5gNmXSgRmg/v9XT87iyzgcxk620DHKi4PIfw0rH2U=; b=cEOfkr/WT/Gv+SneORAeph0tR9mEcbwj89gBMDl7LQZZrLw/0pH4jc4TwhEvQRpW3ciS t4nmP3jaQe87JhwfAsRWc1bJnOMMQHbzWcfHP1995/fXvzcnmTYRZA+74L1fuglnFwTDi UcoLO29Mrl7K5TnHpAIof80bcf7hu3ueGmCdZ6aqC/Q+6qsIYeWBMPMM58Lsp1rojRSrs hJ5JLQYxkeqN7R9FZhZMRg2A62GGKEjcHCYE66UtmAYLnRS4PVY2ti/U6pK8wM4JFmjIK +W7UKXI+L+1Z9heVUGOCltptOIx2ExLSbRuxzpYP7xtRNl3KXuv0mrGVxIipIOLxy7w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=qq.com; spf=pass smtp.mailfrom=qq.com; dkim=pass header.d=qq.com header.i=@qq.com header.a=rsa-sha256 header.s=s201512 header.b="mbTsI/Pj"; arc=none smtp.remote-ip=162.62.58.216 Received: from out162-62-58-216.mail.qq.com (out162-62-58-216.mail.qq.com [162.62.58.216]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A57D6606A31A; Wed, 2 Dec 2026 04:47:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A57D6606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=qq.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qq.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=qq.com header.i=@qq.com header.a=rsa-sha256 header.s=s201512 header.b=mbTsI/Pj DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1796186857; bh=JN5gNmXSgRmg/v9XT87iyzgcxk620DHKi4PIfw0rH2U=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=mbTsI/Pj4cPul3cgAiipJC1ECxAUkfiXhufqLxpX01qzxsjekq4y1XRnYWfuG6hTp QLlIXyNUmSxoAogc7IxZ/P/6ZV1XVZqEh0x5p9aiT4y2yhHaS5XBjBGNg2oiqjgKxo PA7NlgUhtnxYPLDoIUYc9hBCXRLhx1ac9DmvygFM= Received: from localhost.localdomain ([14.22.11.164]) by newxmesmtplogicsvrsza53-0.qq.com (NewEsmtp) with SMTP id BE3058E8; Wed, 02 Dec 2026 12:47:35 +0800 X-QQ-mid: xmsmtpt1796186855tisyzqaj5 Message-ID: X-QQ-XMAILINFO: Od8VqZhFMB3NR+ZmTA0TMrrIMOEKbOrJ5t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ieYIxbptKwUHCtGFJUjEjSCuQg== X-QQ-XMRINFO: Mp0Kj//9VHAxzExpfF+O8yhSrljjwrznVg== From: MingTao Huang <1037827920@qq.com> To: Dave Chinner , Brian Foster Cc: Carlos Maiolino , "Darrick J . Wong" , Chandan Babu R , MingTao Huang , linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, MingTao Huang <1037827920@qq.com> Subject: Re: [PATCH] xfs: fix skipped flushing items not counted in xfsaild_push() Date: Wed, 2 Dec 2026 12:47:23 +0800 X-OQ-MSGID: <20261202044723.3175617-1-1037827920@qq.com> X-Mailer: git-send-email 2.43.7 In-Reply-To: References: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Dave and Brian, Sorry for the long delay in following up. I've been tied up with other work for the past two months and only recently had time to get back to this. I revisited the vmcore from the original xfsaild soft lockup and found that xfsaild and a stress-ng lockbus worker were running on the two SMT threads of the same physical core at dump time. The lockbus stressor is part of the mixed workload in our stability suite. It exercises locked atomic operations that cross cache-line boundaries. These split locks can stall memory accesses on other CPUs, and the SMT sibling suffers the most. In our comparison tests, xfsaild used roughly 3-4x as much CPU time per counted AIL push decision when the lockbus worker ran on its SMT sibling as when it ran on a separate physical core. I reproduced the soft lockup by generating a large batch of metadata with a burst of directory creation and pinning xfsaild and a lockbus worker to the same physical core. The original vmcore showed many AIL items sharing one LSN. As Dave pointed out, the batch cutoff currently requires both count > 1000 and an LSN change, so xfsaild can queue a large delwri batch within a single LSN group. In the original vmcore, count reached 5485 in that push. The AIL scan and delwri submission loops have no explicit reschedule points. With our PREEMPT_NONE default, xfsaild can run through both phases without a context switch. My current read is that the same-core lockbus load stretched an already large push enough to keep the watchdog task from being scheduled before the timeout. I'm not sure whether running the lockbus stressor alongside filesystem stress is a meaningful part of Linux stability testing, or whether it mostly creates a pathological load that real systems would not see. Would it make sense to drop it from our mixed stability workload? Thanks, MingTao