All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] [RESEND] ext4: fix lazy initialization next schedule time computation in more granular unit
@ 2021-09-02 16:44 Shaoying Xu
  2021-09-02 16:44 ` [PATCH 1/1] " Shaoying Xu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Shaoying Xu @ 2021-09-02 16:44 UTC (permalink / raw)
  To: tytso, adilger.kernel; +Cc: linux-ext4, linux-kernel, benh, shaoyi

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(-)

-- 
2.16.6


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

end of thread, other threads:[~2021-10-07 14:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-02 16:44 [PATCH 0/1] [RESEND] ext4: fix lazy initialization next schedule time computation in more granular unit Shaoying Xu
2021-09-02 16:44 ` [PATCH 1/1] " Shaoying Xu
2021-09-20 19:56 ` [PATCH 0/1] [RESEND] " Shaoying Xu
2021-10-07 14:21 ` Theodore Ts'o

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.