Lines Matching full:echo
4 trap 'echo "ABORTING";exit' 1 2 15
18 h) echo "kernbench v$VERSION by Con Kolivas <kernbench@kolivas.org>"
19 echo "Usage:"
20 echo "kernbench [-n runs] [-o jobs] [-s] [-H] [-O] [-M] [-h] [-v]"
21 echo "n : number of times to perform benchmark (default 5)"
22 echo "o : number of jobs for optimal run (default 4 * cpu)"
23 echo "s : perform single threaded runs (default don't)"
24 echo "H : don't perform half load runs (default do)"
25 echo "O : don't perform optimal load runs (default do)"
26 echo "M : don't perform maximal load runs (default do)"
27 echo "f : fast run"
28 echo "h : print this help"
29 echo "v : print version number"
31 v) echo "kernbench Version $VERSION by Con Kolivas <kernbench@kolivas.org>" ; exit ;;
43 echo "No kernel source found; exiting"
51 echo "$i not found in path, please install it; exiting"
61 echo "Dropping to 3 runs for fast run"
66 echo "Nothing to do; exiting"
71 echo "Are you crazy? trimming number of runs to 10"
76 echo "Can't find proc filesystem; exiting"
82 echo Less than 4Gb ram detected!
83 echo Maximal loads will not measure cpu throughput and may cause a swapstorm!
84 echo If you did not plan this, -M flag is recommended to bypass maximal load.
93 echo $cpus cpus found
94 echo Cleaning source tree...
98 echo Caching kernel source in ram...
106 echo No old config found, using defconfig
107 echo Making mrproper
109 echo Making defconfig...
112 echo Making oldconfig...
120 echo "Half load is no greater than single; disabling"
123 echo "Half load is 2 jobs, changing to 3 as a kernel compile won't guarantee 2 jobs"
127 echo Kernel `uname -r`
128 echo Performing $num_runs runs of
130 echo make
133 echo make -j $halfjobs
136 echo make -j $optijobs
139 echo make -j
141 echo
143 echo All data logged to kernbench.log
146 echo Warmup run...
155 echo $@ | awk '{printf "%.6f %.6f %d", $1 + $2, $1 * $1 + $3, $4 + 1}'
162 echo "No data"
165 echo $1
168 avg=`echo $1 $3 | awk '{print $1 / $2}'`
169 var=`echo $1 $2 $3 | awk '{print ($2 - ($1 * $1) / $3) / ($3 - 1)}'`
170 sdev=`echo $var | awk '{print $1^0.5}'`
171 echo "$avg ($sdev)"
178 echo "Average $runname Run (std deviation):" > templog
179 echo Elapsed Time `show_statistics $temp_elapsed` >> templog
180 echo User Time `show_statistics $temp_user` >> templog
181 echo System Time `show_statistics $temp_sys` >> templog
182 echo Percent CPU `show_statistics $temp_percent` >> templog
183 echo Context Switches `show_statistics $temp_ctx` >> templog
184 echo Sleeps `show_statistics $temp_sleeps` >> templog
185 echo >> templog
195 echo $runname run number $i...