Whamcloud - gitweb
LU-16169 e2fsck: improve parallel thread balance 06/48806/8
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 8 Oct 2022 06:02:49 +0000 (00:02 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 29 Aug 2023 18:24:14 +0000 (18:24 +0000)
commit4e82819edcafbdd3bb21fde9d86b0a6a80dfcf3d
tree1ad8c51447ffe4a9dc640dae4d2134addb7b5d20
parent3bf271a76463c3d238f342e39f4f2813e7df6442
LU-16169 e2fsck: improve parallel thread balance

Improve the balance of work allocated to each thread by distributing
a more equal number of inodes to each thread, rather than an equal
number of groups.

In some cases in real usage, the number of inodes allocated to
threads with equal numbers of groups can vary by 10x or more, which
leads to pass1 threads having a runtime time roughly propritional
to the number of inodes allocated to them.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Iea964cca33d19170e9b6d88aa725dc878cae6ce2
Reviewed-on: https://review.whamcloud.com/c/tools/e2fsprogs/+/48806
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
e2fsck/e2fsck.h
e2fsck/pass1.c
tests/f_multithread/expect.1
tests/f_multithread_logfile/expect.1
tests/f_multithread_no/expect.1