Linux-f2fs-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [f2fs-dev] [PATCH v2 0/3] f2fs: reduce checkpoint write latency under metadata-intensive workloads
@ 2026-01-13 15:21 Yongpeng Yang
  2026-01-13 15:21 ` [f2fs-dev] [PATCH v2 1/3] f2fs: add write latency stats for NAT and SIT blocks in f2fs_write_checkpoint Yongpeng Yang
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Yongpeng Yang @ 2026-01-13 15:21 UTC (permalink / raw)
  To: Chao Yu, Jaegeuk Kim; +Cc: Yongpeng Yang, Yongpeng Yang, linux-f2fs-devel

From: Yongpeng Yang <yangyongpeng@xiaomi.com>

This patch series addresses long checkpoint write latency observed under
workloads with frequent metadata operations. Analysis shows that the main
bottleneck is high synchronous read latency of NAT blocks during checkpoint
processing.

The series implements the following improvements:

1. Add flush time stats for NAT and SIT blocks. This stats helps
identify which phase of the checkpoint thread contributes most to the
latency.

2. Readahead all NAT blocks required for the read-modify-write phase
before actual writes. This reduces the synchronous wait time for
individual NAT block reads, significantly lowering checkpoint duration.

Test results show that with NAT block readahead, the total flush time
of NAT blocks is reduced by more than 90% under similar access patterns.

---
v2:
- Replace list_for_each_entry_safe with list_for_each_entry in patch
3/3.

Yongpeng Yang (3):
  f2fs: add write latency stats for NAT and SIT blocks in
    f2fs_write_checkpoint
  f2fs: change size parameter of __has_cursum_space() to unsigned int
  f2fs: optimize NAT block loading during checkpoint write

 fs/f2fs/checkpoint.c |  4 +++-
 fs/f2fs/f2fs.h       |  6 ++++--
 fs/f2fs/node.c       | 13 ++++++++++++-
 3 files changed, 19 insertions(+), 4 deletions(-)

-- 
2.43.0



_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-01-22 23:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-13 15:21 [f2fs-dev] [PATCH v2 0/3] f2fs: reduce checkpoint write latency under metadata-intensive workloads Yongpeng Yang
2026-01-13 15:21 ` [f2fs-dev] [PATCH v2 1/3] f2fs: add write latency stats for NAT and SIT blocks in f2fs_write_checkpoint Yongpeng Yang
2026-01-20 12:27   ` Chao Yu via Linux-f2fs-devel
2026-01-13 15:21 ` [f2fs-dev] [PATCH v2 2/3] f2fs: change size parameter of __has_cursum_space() to unsigned int Yongpeng Yang
2026-01-20 12:27   ` Chao Yu via Linux-f2fs-devel
2026-01-13 15:23 ` [f2fs-dev] [PATCH v2 3/3] f2fs: optimize NAT block loading during checkpoint write Yongpeng Yang
2026-01-20 12:32   ` Chao Yu via Linux-f2fs-devel
2026-01-22 23:50 ` [f2fs-dev] [PATCH v2 0/3] f2fs: reduce checkpoint write latency under metadata-intensive workloads patchwork-bot+f2fs--- via Linux-f2fs-devel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox