From: Yongpeng Yang <[email protected]>
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel