From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.95.11.211 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796043530; b=aQvZcC4Agb3+hGVE4WTQrPdTb1bwJB7y3i1+QDMnTCG96f88ZaUNgrBFmvg8bjPkQOxE A/ByvbGeJj7dTziGio8lcc9BaO5PYsNYRH9RMlgjP3Ap29U/heUTkcD+FUq7GegB/SfVP 8Tqbf5kl1zRlOV616bU+4rkmhtyAbthrcXI3FyPz4FF0PGqnoo0DU7MelLNf1AGZSHhbR /HdMTGb5+57ueE/SNSMSsCgDiuwTcU5TvgBV2zBnznkTwOjQEYuWR9m3vzYoOENT/MLGa txPGHr8GGzyNM5e4ertsJaq0nD9xT+UhCXuXPQcCZJj3ktQlPtt/+b/GfvS5m+5eefA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796043530; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; bh=1DH5gA2i9kRwKHClAiNeQ7BhWZ6cwy4z9c/C5KI+jKI=; b=gXiZAuOXROiLQCsLnGNaVXUsfs4abNpu0mdsskCfuu4RD2YVHsJ2P7Lm3B+oDGGmxAp7 T8EmslqOAJIS46BkLk9rLNjTB+KtSefHNrEqs5bKWbD2yZesZRno9SF7pcRPfwpcUaQze XShGcEhu0nCJFUH8UMcyCjcMSemomgtZw701c5u1TBUdm1/ZXajNa+j8O+x76PkcjLTwr zbkhz8hye+M0UUMpuPk2mSHiVXpmiQZQrC5ynQnDN1q4siO3tb18Aesl36z6naB6rtme8 Yo2A0ez1Ry2kgrbQGML9e9gZ3TRrCjTd2VKA8M/08ojKLb6B56VjrgW/P/G1Fjg3iUg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.remote-ip=213.95.11.211 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 DD76460A2600; Mon, 30 Nov 2026 12:58:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DD76460A2600 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 69E5768CFE; Mon, 30 Nov 2026 13:58:41 +0100 (CET) Date: Mon, 30 Nov 2026 13:58:41 +0100 From: Christoph Hellwig To: daejun7.park@samsung.com Cc: Carlos Maiolino , linux-xfs@vger.kernel.org, Christoph Hellwig , Dave Chinner , "Darrick J. Wong" , Amir Goldstein , Brian Foster , Pankaj Raghav , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] xfs: skip the fsync flush when a later flush has completed Message-ID: <20261130125841.GB27971@lst.de> References: <20261126-xfs-fsync-flush-seq-v3-1-830f5dd79fae@samsung.com> 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261126-xfs-fsync-flush-seq-v3-1-830f5dd79fae@samsung.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, Nov 26, 2026 at 05:21:02PM +0900, Daejun Park via B4 Relay wrote: > dbench -t 30, MB/s and max latency, mean of 3 runs > 4 AGs, 128 clients: 1968 -> 6857, 0.4 -> 0.4 s > 4 AGs, 256 clients: 3220 -> 6219, 0.3 -> 2.4 s > 4 AGs, 512 clients: 4699 -> 5126, 0.4 -> 22.3 s > 32 AGs, 512 clients: 4812 -> 3256, 0.5 -> 21.6 s > 32 AGs, 512 clients, 1 GiB log: 5095 -> 9353, 0.4 -> 2.2 s > (latencies over a second are unlink() calls in the inodegc throttle) The 32 AGs, 512 default number looks a bit worrysome. What is the file system and log size in this case? > 4 AGs, 256 clients, no flushes: 6527 -> 6369, 13.8 -> 14.7 s > 32 AGs, 512 clients, no flushes: 3515 -> 3419, 28.4 -> 27.8 s > (no flushes: guest queue/write_cache set to write through) And this looks really weird. The changes are fairly minimal, but if reproducible something is wrong as we should not slow down workloads that do not have a volatile write cache. Is this just the extra atomics? Can you check if the overhead disappears if you only maintain the counters if data or rt device cache flushes are needed)? > 1 GiB log). With the 64 MiB log, the patch reaches the inodegc throttle So the default log about is 64MiB?