Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B39FDCAC5B9 for ; Tue, 30 Sep 2025 02:37:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:Cc: Reply-To:From:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:MIME-Version:Message-ID:Date:To:Sender: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Ewu51n+29Zxboscv5R3dU3j+BhnkQRQNLQkrCq6J+H0=; b=EdMz6LfHZiLWoNcyp+Zd2/b3Dp f9rvFaD/mxIYtv9G77jS8hY4V/IUBD1IJCw5TnGSECcXFk4DhlCGksBOJAf1otRDjQeJYNsvABDc2 vsQ+DajebGt9ThNV6T5uyj84MUY5h3AX7TR1mfAxHYsgI2pUoIxbgGTUb/b6wmX9ZBVw=; Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1v3QF0-00031p-7d; Tue, 30 Sep 2025 02:37:23 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1v3QEy-00031Y-Cz for linux-f2fs-devel@lists.sourceforge.net; Tue, 30 Sep 2025 02:37:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=sAdIw1E8Fnisp+SraOebvpd+dbpoQWz2gU/NsGjWric=; b=F3C6dg7NFEQuJdawpPBrkayEhK t7O4erFCUb3tIV1ZBikgojOZ+heHeLWWyA8RnTKFJHnLYM4FLPSzJkwYDUjlfAyIaer5YVJH5arSv NUwZqBsAxYf30MZ91ppTO2IED/Gsi3vqtcnjeTvQrl9x1Duuvz9bfq15NLpt0PYsx/uQ=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=sAdIw1E8Fnisp+SraOebvpd+dbpoQWz2gU/NsGjWric=; b=g FVpGQ42rJvgJRtW3oQtrXfEUGQZmWA+czIkO0UA9P/gNzublgxfXb7ZI7h9xqEVIjJd54nSpXaNTh deSKvo5wkmP5dTVbLC5j+lN407K/o3mZQZjSbLNOlOn/yaPYx0kIZ61ay8UWHDFBlW8ADb92FbToA 3nZ+9n7bMcqZin7U=; Received: from tor.source.kernel.org ([172.105.4.254]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1v3QEy-0004Sx-R4 for linux-f2fs-devel@lists.sourceforge.net; Tue, 30 Sep 2025 02:37:21 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 344F860324 for ; Tue, 30 Sep 2025 02:37:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF415C4CEF4; Tue, 30 Sep 2025 02:37:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1759199829; bh=cesNJVP4/rITPlUKirhyJV1JzmDLylcIBDXxNfH/qxc=; h=From:To:Cc:Subject:Date:From; b=G1xb+l1qzt1ushTTNQPuxF+N0bx1f+2RlWSdQGdIdXMBvK5ark80BPQ8+t7yGl8s9 dumF+43l7u6ZPtuHKxdBnVdtBazYzxYub1Amsoaf7vos9C1jTPCmeTugvxeU92E9vn nI3bs7JASpSrgkcFAg+JMUpWNCQ2YR6rCQLN853TOakJFKrq+Aq+MsntKw5ZmcE/dv 81QU0fMLXOXfLxZPs2bMANNLAWMAOxyUbb9rsQo81tRG/mJR1RHFoe5g+h0NWYqct+ tPgLp5yeGzXdD0bgzbfl8U17tdbxklrn5qiLatDuqHIojTTjw6knBuZ+ZDRMqLqDBG zzl7wXgbLdH1w== To: linux-f2fs-devel@lists.sourceforge.net Date: Tue, 30 Sep 2025 02:37:00 +0000 Message-ID: <20250930023704.3019074-1-jaegeuk@kernel.org> X-Mailer: git-send-email 2.51.0.618.g983fd99d29-goog MIME-Version: 1.0 X-Headers-End: 1v3QEy-0004Sx-R4 Subject: [f2fs-dev] [PATCH 1/5] f2fs_io: measure a fsync latency X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jaegeuk Kim via Linux-f2fs-devel Reply-To: Jaegeuk Kim Cc: Jaegeuk Kim Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net Signed-off-by: Jaegeuk Kim --- tools/f2fs_io/f2fs_io.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/f2fs_io/f2fs_io.c b/tools/f2fs_io/f2fs_io.c index 2bd5fd001b82..1f6bfcfff556 100644 --- a/tools/f2fs_io/f2fs_io.c +++ b/tools/f2fs_io/f2fs_io.c @@ -160,6 +160,7 @@ static u64 get_current_us() static void do_fsync(int argc, char **argv, const struct cmd_desc *cmd) { int fd; + u64 total_time; if (argc != 2) { fputs("Excess arguments\n\n", stderr); @@ -169,10 +170,12 @@ static void do_fsync(int argc, char **argv, const struct cmd_desc *cmd) fd = xopen(argv[1], O_WRONLY, 0); + total_time = get_current_us(); if (fsync(fd) != 0) die_errno("fsync failed"); - printf("fsync a file\n"); + printf("fsync total_time = %"PRIu64" us\n", + get_current_us() - total_time); exit(0); } -- 2.51.0.618.g983fd99d29-goog _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel