Skip to contentSkip to conversation

Fix to get the right IO bandwidth

PATCH In review Jaegeuk Kim via Linux-f2fs-devel 1 participant 2 messages Dec 12, 2025 – Dec 15, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix to get the right IO bandwidth

---
 tools/f2fs_io/f2fs_io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/f2fs_io/f2fs_io.c +1 -1
index 35c367bd67e7..4429e0b0459c 100644
@@ -1093,7 +1093,7 @@ static void do_read(int argc, char **argv, const struct cmd_desc *cmd)
 	printf("Read %"PRIu64" bytes total_time = %"PRIu64" us, BW = %.Lf MB/s, "
 		"IO time = %"PRIu64" us, mlock time = %"PRIu64" us, print %u bytes:\n",
 		read_cnt, get_current_us() - io_time_start,
-		((long double)read_cnt / (get_current_us() - io_time_start)),
+		((long double)read_cnt / (io_time_end - io_time_start)),
 		io_time_end - io_time_start,
 		mlock_time_end - mlock_time_start,
 		print_bytes);
Signature · 8 lines
2.52.0.305.g3fc767764a-goog



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel