Whamcloud - gitweb
LU-12158 mke2fs: avoid too large stride and stripe_width
authorWang Shilong <wshilong@ddn.com>
Tue, 21 May 2019 04:06:39 +0000 (12:06 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 15 Dec 2022 22:29:59 +0000 (15:29 -0700)
commit4ad1642cfde8ae4560acab4a1b0b65436b2cf7c8
treee96a99a65cca72e8a5fcc7134be5d090017977e9
parent976d0865adddc6b93baab3d779099512d3bf5fe0
LU-12158 mke2fs: avoid too large stride and stripe_width

According to benchmarks numbers, too large stripe and stripe_width
will make preassure with ext4 mballoc allocater and hurts performances
finally.
                    2MB Chunk size                 256K Chunk size
stripe_width,stride     Write(MB/s)    Read(MB/s)   Write(MB/s) Read(MB/s)
512,512                 10,810         10,124       10,492      6,923
1024,1024               10,793         10,064       10,431      6,921
2048,2048               8,047          10,080       6,629       7,381
4096,4096               7,350          10,089       6,505       7,282

Performance number comes from Shuichi Ihara.

This patch try to avoid use too large stride and stripe_width when mkfs.
If users really want large value they could do it by specify mkfs options
or run tune2fs later.

Change-Id: I768f1ecb39837338e08842b21b4fca8b98165d2a
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/34767
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
misc/mke2fs.c
tests/filter.sed