Skip to content
Snippets Groups Projects
Commit 0939ebd9 authored by Wang Di's avatar Wang Di Committed by Oleg Drokin
Browse files

LU-1548 mdssurvey: fix file_count in mds_survey


It should use file_count_per_thread in lctl command,
instead of file_count directly.

Signed-off-by: default avatarWang di <di.wang@whamcloud.com>
Change-Id: I606a988db373c1065544385fdd1dfd42821eef2b
Reviewed-on: http://review.whamcloud.com/3549


Tested-by: Hudson
Tested-by: default avatarMaloo <whamcloud.maloo@gmail.com>
Reviewed-by: default avatarAndreas Dilger <adilger@whamcloud.com>
Reviewed-by: default avatarMinh Diep <mdiep@whamcloud.com>
Reviewed-by: default avatarOleg Drokin <green@whamcloud.com>
parent 13aade5a
No related branches found
No related tags found
No related merge requests found
......@@ -267,6 +267,7 @@ for ((thr = $thrlo; thr <= $thrhi; thr*=2)); do
if (( thr_per_dir <= 0 )); then
continue
fi
file_count_per_thread=$((${file_count}/${thr}))
str=`printf 'mdt %1d file %7d dir %4d thr %4d ' \
$ndevs $file_count $dir_count $thr`
echo "=======================> $str" >> $workf
......@@ -291,7 +292,7 @@ for ((thr = $thrlo; thr <= $thrhi; thr*=2)); do
echo >> ${cmdsf}_${host} \
"$lctl > $tmpfi 2>&1 \
--threads $thr -$snap $devno test_$test -d /$basedir -D $dir_count \
-b $start_number -n $file_count"
-b $start_number -n $file_count_per_thread"
done
pidcount=0
for host in ${unique_hosts[@]}; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment