Skip to content

ext4: fix lazy initialization next schedule time computation in more granular unit

Shaoying Xu linux-ext4 lkml 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/21 patch 2 repliesApplied
  2. v1 posting 1/21 patch 1 replySuperseded

Patches in v1 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/1ext4: fix lazy initialization next schedule time computation in more granular unitfs/ext4/super.c+4 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] [RESEND] ext4: fix lazy initialization next schedule time computation in more granular unit

Description
===========
Ext4 FS has inappropriate implementations on the next schedule time calculation that use jiffies to measure the time for one request to zero out inode table. This actually makes the wait time effectively dependent on CONFIG_HZ, which is undesirable. We have observed on server systems with 100HZ some fairly long delays in initialization as a result. Therefore, we propose to use more granular unit to calculate the next schedule time.

Test
====
Tested the patch in stable kernel 5.10 with FS volume 2T and 3T on EC2 instances. Before the fix, instances with 250HZ finished the lazy initialization in around 2.4x time less than instances with 100HZ.
After the fix, both of them finished within approximately same time.

Patch
=====
Shaoying Xu (1):
ext4: fix lazy initialization next schedule time computation in more
granular unit

 fs/ext4/super.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
Signature · 1 line
2.16.6