From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=203.254.224.34 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795660299; b=0bVU4GbN+C/QuRvZO7GHfaUGG2n/mAtH1+2C/7NPo0XzOguyRPxo7l7qw/4zT8vh2GqE dt/x2wWDPmt9Sj6XB4KXxaxOPKdPXlSBgKkauS0t30UCEF4nGmfEVkc0JwJfxWhEDeV2z 0BYs/xToGpcdTdTrR4E2UgaJDaIV075dpqnvfBS14FMbmBwH9VpZDmyMpTQT42lzumLhP zkoAWzfj349nmL9p4WVFA4dXO9vg9eiLzKh3+5wPiSXd/IRwEB2sIJ1ETjJ62hjrEGoM2 tzl1qOn6C+j9sigKAy9TnJubqNHI9CRnWSHqA9vzd1K2z5Bgy5F5Ta4k9AaTAMs4S8A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795660299; h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:Received:Received: Mime-Version:Subject:Reply-To:Sender:From:To:CC:X-Priority: X-Content-Kind-Code:In-Reply-To:X-CPGS-Detection:X-Drm-Type: X-Msg-Generator:X-Msg-Type:X-Reply-Demand:Message-ID:Date: X-CMS-MailID:Content-Transfer-Encoding:Content-Type:X-Sendblock-Type: CMS-TYPE:X-CPGSPASS:X-CPGSPASS:cpgsPolicy:X-CFilter-Loop: X-CMS-RootMailID:References; bh=Dq6OBzQdHUbs/BzDJCNRfQdk6Xw3G/4Db/gI/OgFZSs=; b=GpWkIMcvIIVb3TfQD1SAGIOPvoMN6wfhyigL38ZZTdSFw+yKQkaIC1djmP+k/hEYw8b2 4I2zWNP7zh4bpz/2aSZGMS42wvU0RBFLh9lbxTj7ym83LGmOdW6YPAOFXJ3I+CnTDRrp2 glszPllavY8Yl+RsTMxHRWDbWPlO4CA5ZZTORrYLuqgf3BLrq/WjRn5vU1pCxxSnQ2qHI 6R9JHt3T6VZ3hAkMt6wdtiXhJUSMXz275wHuGrMujdTQhHOMHx7CRImZNQ8Rpp/fFGKlg tgYBxE6Bd648l1n+MCVdJZRoIrPx2Aq0iUcPam8jXyEDRVkXesrq0GOxfJtsDSqrdvQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass header.d=samsung.com header.i=@samsung.com header.a=rsa-sha256 header.s=mail20170921 header.b=Ki00RmGm; arc=none smtp.remote-ip=203.254.224.34 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) (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 BC93D606A31E for ; Thu, 26 Nov 2026 02:31:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BC93D606A31E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=samsung.com header.i=@samsung.com header.a=rsa-sha256 header.s=mail20170921 header.b=Ki00RmGm Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20261126023130epoutp04d2fd59ac2ffda41037161354bd25a364~rd4Uxdyp50088000880epoutp04u for ; Thu, 26 Nov 2026 02:31:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20261126023130epoutp04d2fd59ac2ffda41037161354bd25a364~rd4Uxdyp50088000880epoutp04u DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1795660290; bh=Dq6OBzQdHUbs/BzDJCNRfQdk6Xw3G/4Db/gI/OgFZSs=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=Ki00RmGmAUmAFRSQpvSl9fMNY1toHGO+OgfTpzgmTy9k+z0sjL9I9/URcjNeNxUQW 6zqdOBg5geJq3a3gR069TbbUfLlVqeOObCCtlUHZFj702hRNbKaiI+7iwUcYXezmkK 3QqZzf1Sf7LCLylutVbl8VNN9CBStMHwsnpAO7Vc= Received: from epsnrtp04.localdomain (unknown [182.195.42.156]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPS id 20261126023129epcas2p419befa3754bc98095d9901f6835d3a5f~rd4UXsAxB0124701247epcas2p4z; Thu, 26 Nov 2026 02:31:29 +0000 (GMT) Received: from epcas2p3.samsung.com (unknown [182.195.38.202]) by epsnrtp04.localdomain (Postfix) with ESMTP id 4jZgXd5F2fz6B9mB; Thu, 26 Nov 2026 02:31:29 +0000 (GMT) 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 Subject: RE:(2) (2) [PATCH v2 0/2] xfs: skip redundant fsync cache flushes Reply-To: daejun7.park@samsung.com Sender: Daejun Park From: Daejun Park To: "Pankaj Raghav (Samsung)" 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" , Daejun Park X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: X-CPGS-Detection: blocking_info_exchange X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20261126023129epcms2p114dbcd5fc1669a670ed09e71a24f44f2@epcms2p1> Date: Thu, 26 Nov 2026 11:31:29 +0900 X-CMS-MailID: 20261126023129epcms2p114dbcd5fc1669a670ed09e71a24f44f2 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P X-CPGSPASS: Y X-CPGSPASS: Y cpgsPolicy: CPGSC10-223,Y X-CFilter-Loop: Reflected X-CMS-RootMailID: 20261111064724epcas2p11498de70e50f2fbf4e21d5e7a723e01d References: <20261111-xfs-fsync-flush-seq-v2-0-b5c00c25d276@samsung.com> <20261117023345epcms2p5117009330b6c600f68c598d5e08aef5e@epcms2p5> On Tue, Nov 24, 2026 at 02:08:23PM +0100, Pankaj Raghav (Samsung) wrote: > 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? At 128 clients, where neither kernel stalls in unlink(), v2 does 18% more log writes per fsync (0.10 -> 0.12 in my table). The large increase from 256 clients comes with the unlink() stalls. [...] > Could you detail your setup and how you measure log writes/fsync and the > latency numbers? Setup 1 is a QEMU guest with 8 vCPUs. Its disk is an 80 GiB partition of a Samsung 990 PRO, attached as virtio-blk with cache=none. The kernel is for-next 48326a2382d8 without XFS_DEBUG, KASAN or lockdep, with and without v2. Each run does mkfs.xfs with defaults and then "dbench -t 30 N" with the client.txt load file from dbench. Log writes per fsync is the change in the first field of the "log" line in /proc/fs/xfs/stat over the dbench execute phase, divided by the xfs_file_fsync() calls that bpftrace counts over the same phase. max_latency is the value dbench prints. The values over 1 s are unlink() calls. > I can also try to reproduce it locally. Thanks, that would help. Best regards, Daejun