From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.239 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795525712; b=YKu/9wFWblVZxGGpEyXL1LYr/kpuz4qfeJPnMZpFPzSRU1e5lkO/67U343Ho1Y4qyHqt UzOCfmCPNfTfUiVB4xWPP7FZ5/jiez/N08VpQ9u1ffEO5aCiPZf0h6MrnEgnDuWjQI/jD cRcPkwQAzO6vzPBoYgw99p/jvNon+LYlFEFoUEMRZdrJ10ct+2jF8sTq7GfQkX5G5htAb si+kl0f/21c8FHEWiHyuWhVfA2vM05D2rwC9u5KZnQ/DV0Kpp6bUUbLXWLJRVIpwgvgyM 8ZnmofkQv4M1pu46gMA0JJkvVVGmqsD6I8TPwGoWb3iPTzNZ5txG94mOYEm5kQaV2hw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795525712; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=SKndPVf6fv+vcZFs47JjiUiTdf9OsnJiNfTCpP00Ae4=; b=hk02K7np7qVMLEI5qD5itmMMSbnd96PCcANVmbPqt3Fz/cloOnISNTYv3nDDs4GalCp2 yv3cVVJc/ykLt2C6qD+QR33FBsjEWopUPKpGxtMHyK3Xcv+ZH6XD7hDKWwKvezONEnH5h ToFb2+pkkNdINKsQOCUia67WbECJ46K3XkkMnghlsiQf40AgAL+sCHutD31xdkW34Q0Ff PW0MI3RYa62TJQGYbUurwtvNPbEI7FOQuFpVY3+a4G15fOtKM7nXwbwDSOzkcjqIrqNPb jddjT1bmj8fN3JkDpYS8TY9JjXSDKlGhWrCLouEBQIPplxTObuu07oH1z37k0Ff8VIQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=QT3py5ik; arc=none smtp.remote-ip=95.215.58.239 Received: from mta1.migadu.com (out-239.mta1.migadu.com [95.215.58.239]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A7C1606A321 for ; Tue, 24 Nov 2026 13:08:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9A7C1606A321 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=QT3py5ik X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=HPXWZ66xG0/7jSLpD6luU5x0piuUjMnwo5mW3igEPTg=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795525709; v=1; x=1796130509; b=QT3py5ikqum6bM+tON3uCk1BgKwC+nXCTH9JFf5IxbJZHlvVY5BfdrswDUNwjzvMKw+4WiY2 Xy8a+2nLTF/aXyJEMwSNdwizW5/1QG46RJd8MlPXtjG1ofv8K9t4ATNZO1sqSrl+AFafsrJTqO0 mZyiKQ40aIaT+GXfslxRlZaY= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id a71e5be8c34d1f0a; Tue, 24 Nov 2026 13:08:29 +0000 X-Mizu-Trace-ID: a71e5be8c34d1f0a X-Migadu-Flow: FLOW_OUT Date: Tue, 24 Nov 2026 14:08:23 +0100 From: "Pankaj Raghav (Samsung)" To: Daejun Park Cc: Dave Chinner , Carlos Maiolino , "linux-xfs@vger.kernel.org" , Christoph Hellwig , Dave Chinner , "Darrick J. Wong" , Amir Goldstein , Brian Foster , "linux-kernel@vger.kernel.org" Subject: Re: (2) [PATCH v2 0/2] xfs: skip redundant fsync cache flushes Message-ID: References: <20261111-xfs-fsync-flush-seq-v2-0-b5c00c25d276@samsung.com> <20261117023345epcms2p5117009330b6c600f68c598d5e08aef5e@epcms2p5> 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: <20261117023345epcms2p5117009330b6c600f68c598d5e08aef5e@epcms2p5> On Tue, Nov 17, 2026 at 11:33:45AM +0900, Daejun Park wrote: > On Wed, Nov 11, 2026 at 05:47:11PM +1100, Dave Chinner wrote: > > On Wed, Nov 11, 2026 at 12:17:10PM +0900, Daejun Park via B4 Relay wrote: > [...] > > > 16 fio jobs of 4k append + fsync in a QEMU guest: 1111 -> 4498 > > > fsyncs/s. > > Correction: fio preallocated these files by default, so they were not > appends. Real appends (--fallocate=none) on the same disk give > 1311 -> 3416 fsyncs/s. > > [...] > > Hence the numbers look promising for low concurrency fsync > > workloads, but I'd really like to know waht happens at the high end > > when log force count rather than per-file fsync latency is the > > performance limiting factor. I suspect that it will improve > > performance by further mitigating the number of log writes and/or > > cache flushes that need to be done, but it really needs to be > > tested.... > > Thanks. When flushes are expensive, v2 is faster from 128 to 512 > clients but writes more log per fsync. When flushes are cheap, v2 sends It looks like the delay caused by flush acted as a group commit delay which allowed for more batching and optimization before the logs were written out? > 60-80% fewer flushes and changes throughput and log writes per fsync > by under 5%. > > Setup: dbench 4.00 -t 30 in a QEMU guest (40 GiB) on a 990 PRO > partition, for-next 48326a2382d8 without and with v2, three runs each, > execute phase only. > > 1) virtio-blk cache=none, volatile write cache on, 8 vCPUs: > > clients MB/s log writes/fsync max_latency ms > 128 1963 -> 6886 0.10 -> 0.12 433 -> 331 > 256 3173 -> 6282 0.11 -> 0.38 312 -> 1956 > 512 4696 -> 5294 0.13 -> 0.37 468 -> 20595 > 1024 4466 -> 4751 0.28 -> 0.38 11128 -> 28947 > 2048 3973 -> 4043 0.25 -> 0.38 21153 -> 21225 > Could you detail your setup and how you measure log writes/fsync and the latency numbers? I can also try to reproduce it locally. -- Pankaj