Skip to content

Commit

Permalink
Merge pull request #34 from redhat-performance/cleanup_msgs
Browse files Browse the repository at this point in the history
Cleanup msgs
  • Loading branch information
dvalinrh authored Aug 2, 2024
2 parents e2b4777 + dd08895 commit 6039fdc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
1 change: 0 additions & 1 deletion specjbb/specjbb_extra/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ if [ $wcpus -gt 256 ]; then
else
stacksize=8192m
fi
echo "$java -Xms${stacksize} -Xmx${stacksize} $xss_value -XX:+UseParallelOldGC $aggressive -XX:+UseBiasedLocking -XX:+UseCompressedOops -XX:SurvivorRatio=24 spec.jbb.JBBmain -propfile $PROPS_FILE" >> /tmp/dave1
$java \
-Xms${stacksize} -Xmx${stacksize} $xss_value -XX:+UseParallelOldGC $aggressive -XX:+UseBiasedLocking -XX:+UseCompressedOops -XX:SurvivorRatio=24 spec.jbb.JBBmain -propfile $PROPS_FILE
date
Expand Down
20 changes: 15 additions & 5 deletions specjbb/specjbb_run
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ process_specjbb_data()
#
# Locate the last created specjbb results
#
lvl1=`ls -td results_*specjbb*tuned* | grep -v tar | tail -1`
lvl1=`ls -td results_*specjbb* | grep -v tar | tail -1`
for lvl2 in `ls -d $lvl1/results_specjbb*`; do
pushd $lvl2 > /tmp/null
csv_file=`pwd`/results_${test_name}.csv
Expand Down Expand Up @@ -189,6 +189,9 @@ process_specjbb_data()
fi
popd > /dev/null
done
if [ -f ${total_data} ]; then
rm ${total_data}
fi
}

#
Expand Down Expand Up @@ -358,9 +361,13 @@ run_specjbb()
#
pushd /tmp > /dev/null
RESULTSDIR=results_${test_name}_${to_tuned_setting}
#
# We do not want any old data.
#
if [[ -f ${RESULTSDIR} ]]; then
rm -rf ${RESULTSDIR}
fi
mkdir ${RESULTSDIR}
rm results_${test_name}_${to_tuned_setting}
cp -R -s ${RESULTSDIR} results_${test_name}_${to_tuned_setting}
mv ${test_name}.out results_${test_name}_${to_tuned_setting}
echo $test_status > results_${test_name}_${to_tuned_setting}/test_results_report
mv $run_dir/results_specjbb results_${test_name}_${to_tuned_setting}/results_${test_name}_${timestamp}
Expand All @@ -382,7 +389,7 @@ run_pbench_pbench_specjbb()
pushd /tmp > /dev/null
RESULTSDIR=results_${test_name}_${tuned_setting}_$(date "+%Y.%m.%d-%H.%M.%S")
mkdir ${RESULTSDIR}
rm results_${test_name}_${to_tuned_setting}
rm -rf results_${test_name}_${to_tuned_setting}
cp -R ${RESULTSDIR} results_${test_name}_${to_tuned_setting}
timestamp=`date | sed "s/ /_/g"`

Expand All @@ -393,6 +400,7 @@ run_pbench_pbench_specjbb()
# Now handle the results file for the pbench run
#
process_specjbb_data
echo $test_status > results_${test_name}_${to_tuned_setting}/test_results_report
tar hcf results_pbench_${test_name}_${to_tuned_setting}.tar results_${test_name}_${to_tuned_setting}
${curdir}/test_tools/save_results --curdir $curdir --home_root $to_home_root --copy_dir /tmp/${RESULTSDIR} --test_name $test_name --tuned_setting=$to_tuned_setting --version NONE --user $to_user
popd > /dev/null
Expand Down Expand Up @@ -607,7 +615,9 @@ popd > /dev/null
pushd $run_dir > /dev/null
cd ..
tar xf /$to_home_root/$to_user/uploads/$specjbb_kit
mkdir specjbb
if [[ ! -d specjbb ]]; then
mkdir specjbb
fi
cd specjbb
tar xf /$to_home_root/$to_user/uploads/$specjbb_kit
cp -R SPECjbb2005/* .
Expand Down

0 comments on commit 6039fdc

Please sign in to comment.