intel / lkp-tests

Linux Kernel Performance tests
GNU General Public License v2.0
251 stars 153 forks source link

setup/fs: fix ext4 lazyinit performance issue #368

Closed findns94 closed 5 months ago

findns94 commented 5 months ago

During ext4 filesystem performance test, we find newly formatted ext4 fs will create a lazyinit kernel thread in background, which will disturb fio performance test. According to https://www.thomas-krenn.com/en/wiki/Ext4_Filesystem#Lazy_Initialization, it is better to disable lazyinit mechanism to make ext4 performance test result similar to workload in realworld. For ext2, there is no lazyinit mechanism, so the format parameters for ext2 remain as before.

Signed-off-by: Yue Zhao findns94@gmail.com

rli9 commented 5 months ago

thanks for the patch