3 Commits

Author SHA1 Message Date
Zhiqiang Liu
5c222949b8 filebench: fix coredump problem with dirwidth=1
If we set dirwidth=1 when defining fileset, run
'filebench -f <wml-test>.f' will cause coredump.
Because we set fileset->fs_meandepth in fileset_populate() as follows,
$ fileset->fs_meandepth=log(entries+leafdirs)/log(meandirwidth).
where meandirwidth is equal to 1 as same with dirwidth in <wml-test>.f.
So fileset->fs_meandepth is set to inf, which will cause endless
recursion of fileset_populate_subdir(). Finally, coredump occurs.

Here, we will use a little bias (0.1) instead of log(1) when
meandirwidth is equal to 1.

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
(cherry picked from commit c417ede6131ab5209beff8e44bf5ec92f5acc26b)
2021-09-16 12:02:06 +08:00
wangxiaomeng
46c075f3ab chang setup to autosetup 2021-07-07 10:24:12 +08:00
nick-slg-kylin
db657465da add README and tar
添加filebench.1
2021-06-30 17:05:38 +08:00