Changeset 97
- Timestamp:
- Aug 11, 2009, 6:06:02 PM (15 years ago)
- Location:
- drbl-green-benchmark
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
drbl-green-benchmark/diskfull-benchmark.sh
r96 r97 6 6 log_file="/var/log/${log_start}diskfull-benchmark.log" 7 7 status_file="/var/log/${log_start}diskfull-benchmark-status.log" 8 local_zip="/var/log/${log_start}diskfull.tar.gz" 8 9 echo "0. Rebooting...." > $log_file 9 10 echo "0. Rebooting...." … … 14 15 function mydsh() 15 16 { 16 dsh -a -c "date > /var/log/$2.time.$1; /usr/bin/time - o /var/log/$2.time $3; cat /var/log/$2.time >> /var/log/$2.time.$1; date >> /var/log/$2.time.$1" 2>&1 >> $status_file17 dsh -a -c "date > /var/log/$2.time.$1; /usr/bin/time -a -o /var/log/$2.time.$i $3; date >> /var/log/$2.time.$1" >> $status_file 2>&1 17 18 } 18 19 19 20 echo "START diskfull Benchmark ...." >> $log_file 20 for ((i=1;i<=1 ;i++)); do21 for ((i=1;i<=10;i++)); do 21 22 echo "[$i] 1. Booting...." >> $log_file 22 23 echo "[$i] 1. Booting...." … … 28 29 echo "[$i] 2. Running dd ...." 29 30 `date >> $log_file` 30 mydsh "$i" "dd" "dd if=/dev/zero of=/root/E2CC.img bs=1M count= 500"31 mydsh "$i" "dd" "dd if=/dev/zero of=/root/E2CC.img bs=1M count=1024" 31 32 `date >> $log_file` 32 33 sleep 120 … … 40 41 echo "[$i] 4. Running bonnie++ ...." 41 42 `date >> $log_file` 42 mydsh "$i" "bonnie++" "bonnie++ -u root -d /root -s 500"43 mydsh "$i" "bonnie++" "bonnie++ -u root -d /root -s 2000" 43 44 `date >> $log_file` 44 45 sleep 120 45 46 echo "[$i] *. Download Kernel ...." >> $log_file 46 47 echo "[$i] *. Download Kernel ...." 47 mydsh "$i" "download-kernel" "wget -O /tmp/linux-2.6.30.tar.bz2 http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.tar.bz2" 48 `date >> $log_file` 49 mydsh "$i" "download-kernel" "wget -O /tmp/linux-2.6.30.tar.bz2 http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.tar.bz2 -o /tmp/linux-2.6.30.log" 50 `date >> $log_file` 48 51 echo "[$i] *. Extract Kernel ...." >> $log_file 49 52 echo "[$i] *. Extract Kernel ...." 50 mydsh "$i" "extrac-kernel" "tar jxvf /tmp/linux-2.6.30.tar.bz2 -C /tmp" 53 `date >> $log_file` 54 mydsh "$i" "extrac-kernel" "tar jxvf /tmp/linux-2.6.30.tar.bz2 -C /tmp; rm -f /tmp/linux-2.6.30.tar.bz2" 55 `date >> $log_file` 56 echo "[$i] *. Configure Kernel ...." >> $log_file 57 echo "[$i] *. Configure Kernel ...." 58 `date >> $log_file` 51 59 mydsh "$i" "make-allnoconf" "make -C /tmp/linux-2.6.30 allnoconfig" 60 `date >> $log_file` 52 61 echo "[$i] 5. Running make -j 1 ...." >> $log_file 53 62 echo "[$i] 5. Running make -j 1 ...." 54 mydsh "$i" "make-clean" "make clean -C /tmp/linux-2.6.30"55 63 `date >> $log_file` 56 mydsh "$i" "make-j1" "make -j 1 -C /tmp/linux-2.6.30" 64 mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30" 65 mydsh "$i-1" "make-j1" "make -j 1 -C /tmp/linux-2.6.30" 66 mydsh "$i-2" "make-clean" "make clean -C /tmp/linux-2.6.30" 67 mydsh "$i-2" "make-j1" "make -j 1 -C /tmp/linux-2.6.30" 57 68 `date >> $log_file` 58 69 sleep 120 59 70 echo "[$i] 6. Running make -j 2 ...." >> $log_file 60 71 echo "[$i] 6. Running make -j 2 ...." 61 mydsh "$i" "make-clean" "make clean -C /tmp/linux-2.6.30"62 72 `date >> $log_file` 63 mydsh "$i" "make-j2" "make -j 2 -C /tmp/linux-2.6.30" 73 mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30" 74 mydsh "$i-1" "make-j2" "make -j 2 -C /tmp/linux-2.6.30" 75 mydsh "$i-2" "make-clean" "make clean -C /tmp/linux-2.6.30" 76 mydsh "$i-2" "make-j2" "make -j 2 -C /tmp/linux-2.6.30" 77 mydsh "$i-3" "make-clean" "make clean -C /tmp/linux-2.6.30" 78 mydsh "$i-3" "make-j2" "make -j 2 -C /tmp/linux-2.6.30" 64 79 `date >> $log_file` 65 80 sleep 120 66 81 echo "[$i] 7. Running make -j 3 ...." >> $log_file 67 82 echo "[$i] 7. Running make -j 3 ...." 68 mydsh "$i" "make-clean" "make clean -C /tmp/linux-2.6.30"69 83 `date >> $log_file` 70 mydsh "$i" "make-j3" "make -j 3 -C /tmp/linux-2.6.30" 84 mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30" 85 mydsh "$i-1" "make-j3" "make -j 3 -C /tmp/linux-2.6.30" 86 mydsh "$i-2" "make-clean" "make clean -C /tmp/linux-2.6.30" 87 mydsh "$i-2" "make-j3" "make -j 3 -C /tmp/linux-2.6.30" 88 mydsh "$i-3" "make-clean" "make clean -C /tmp/linux-2.6.30" 89 mydsh "$i-3" "make-j3" "make -j 3 -C /tmp/linux-2.6.30" 71 90 `date >> $log_file` 72 91 sleep 120 73 92 echo "[$i] 8. Running make -j 4 ...." >> $log_file 74 93 echo "[$i] 8. Running make -j 4 ...." 75 mydsh "$i" "make-clean" "make clean -C /tmp/linux-2.6.30"76 94 `date >> $log_file` 77 mydsh "$i" "make-j4" "make -j 4 -C /tmp/linux-2.6.30" 95 mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30" 96 mydsh "$i-1" "make-j4" "make -j 4 -C /tmp/linux-2.6.30" 97 mydsh "$i-2" "make-clean" "make clean -C /tmp/linux-2.6.30" 98 mydsh "$i-2" "make-j4" "make -j 4 -C /tmp/linux-2.6.30" 99 mydsh "$i-3" "make-clean" "make clean -C /tmp/linux-2.6.30" 100 mydsh "$i-3" "make-j4" "make -j 4 -C /tmp/linux-2.6.30" 78 101 `date >> $log_file` 79 102 done 103 mydsh "F" "collect" "tar zcvf $local_zip /var/log/*.time.*" -
drbl-green-benchmark/diskless-benchmark.sh
r96 r97 6 6 log_file="/var/log/${log_start}diskless-benchmark.log" 7 7 status_file="/var/log/${log_start}diskless-benchmark-status.log" 8 local_zip="/var/log/${log_start}diskless.tar.gz" 8 9 echo "0. Rebooting...." > $log_file 9 10 echo "0. Rebooting...." … … 14 15 function mydsh() 15 16 { 16 dsh -a -c "date > /var/log/$2.time.$1; /usr/bin/time - o /var/log/$2.time $3; cat /var/log/$2.time >> /var/log/$2.time.$1; date >> /var/log/$2.time.$1" 2>&1 >> $status_file17 dsh -a -c "date > /var/log/$2.time.$1; /usr/bin/time -a -o /var/log/$2.time.$i $3; date >> /var/log/$2.time.$1" >> $status_file 2>&1 17 18 } 18 19 19 echo "START Disk-less Benchmark ...." >> $log_file20 for ((i=1;i<=1 ;i++)); do20 echo "START diskless Benchmark ...." >> $log_file 21 for ((i=1;i<=10;i++)); do 21 22 echo "[$i] 1. Booting...." >> $log_file 22 23 echo "[$i] 1. Booting...." … … 28 29 echo "[$i] 2. Running dd ...." 29 30 `date >> $log_file` 30 mydsh "$i" "dd" "dd if=/dev/zero of=/root/E2CC.img bs=1M count= 500"31 mydsh "$i" "dd" "dd if=/dev/zero of=/root/E2CC.img bs=1M count=1024" 31 32 `date >> $log_file` 32 33 sleep 120 … … 40 41 echo "[$i] 4. Running bonnie++ ...." 41 42 `date >> $log_file` 42 mydsh "$i" "bonnie++" "bonnie++ -u root -d /root -s 500"43 mydsh "$i" "bonnie++" "bonnie++ -u root -d /root -s 2000" 43 44 `date >> $log_file` 44 45 sleep 120 45 46 echo "[$i] *. Download Kernel ...." >> $log_file 46 47 echo "[$i] *. Download Kernel ...." 47 mydsh "$i" "download-kernel" "wget -O /tmp/linux-2.6.30.tar.bz2 http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.tar.bz2" 48 `date >> $log_file` 49 mydsh "$i" "download-kernel" "wget -O /tmp/linux-2.6.30.tar.bz2 http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.tar.bz2 -o /tmp/linux-2.6.30.log" 50 `date >> $log_file` 48 51 echo "[$i] *. Extract Kernel ...." >> $log_file 49 52 echo "[$i] *. Extract Kernel ...." 50 mydsh "$i" "extrac-kernel" "tar jxvf /tmp/linux-2.6.30.tar.bz2 -C /tmp" 53 `date >> $log_file` 54 mydsh "$i" "extrac-kernel" "tar jxvf /tmp/linux-2.6.30.tar.bz2 -C /tmp; rm -f /tmp/linux-2.6.30.tar.bz2" 55 `date >> $log_file` 56 echo "[$i] *. Configure Kernel ...." >> $log_file 57 echo "[$i] *. Configure Kernel ...." 58 `date >> $log_file` 51 59 mydsh "$i" "make-allnoconf" "make -C /tmp/linux-2.6.30 allnoconfig" 60 `date >> $log_file` 52 61 echo "[$i] 5. Running make -j 1 ...." >> $log_file 53 62 echo "[$i] 5. Running make -j 1 ...." 54 mydsh "$i" "make-clean" "make clean -C /tmp/linux-2.6.30"55 63 `date >> $log_file` 56 mydsh "$i" "make-j1" "make -j 1 -C /tmp/linux-2.6.30" 64 mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30" 65 mydsh "$i-1" "make-j1" "make -j 1 -C /tmp/linux-2.6.30" 66 mydsh "$i-2" "make-clean" "make clean -C /tmp/linux-2.6.30" 67 mydsh "$i-2" "make-j1" "make -j 1 -C /tmp/linux-2.6.30" 57 68 `date >> $log_file` 58 69 sleep 120 59 70 echo "[$i] 6. Running make -j 2 ...." >> $log_file 60 71 echo "[$i] 6. Running make -j 2 ...." 61 mydsh "$i" "make-clean" "make clean -C /tmp/linux-2.6.30"62 72 `date >> $log_file` 63 mydsh "$i" "make-j2" "make -j 2 -C /tmp/linux-2.6.30" 73 mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30" 74 mydsh "$i-1" "make-j2" "make -j 2 -C /tmp/linux-2.6.30" 75 mydsh "$i-2" "make-clean" "make clean -C /tmp/linux-2.6.30" 76 mydsh "$i-2" "make-j2" "make -j 2 -C /tmp/linux-2.6.30" 77 mydsh "$i-3" "make-clean" "make clean -C /tmp/linux-2.6.30" 78 mydsh "$i-3" "make-j2" "make -j 2 -C /tmp/linux-2.6.30" 64 79 `date >> $log_file` 65 80 sleep 120 66 81 echo "[$i] 7. Running make -j 3 ...." >> $log_file 67 82 echo "[$i] 7. Running make -j 3 ...." 68 mydsh "$i" "make-clean" "make clean -C /tmp/linux-2.6.30"69 83 `date >> $log_file` 70 mydsh "$i" "make-j3" "make -j 3 -C /tmp/linux-2.6.30" 84 mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30" 85 mydsh "$i-1" "make-j3" "make -j 3 -C /tmp/linux-2.6.30" 86 mydsh "$i-2" "make-clean" "make clean -C /tmp/linux-2.6.30" 87 mydsh "$i-2" "make-j3" "make -j 3 -C /tmp/linux-2.6.30" 88 mydsh "$i-3" "make-clean" "make clean -C /tmp/linux-2.6.30" 89 mydsh "$i-3" "make-j3" "make -j 3 -C /tmp/linux-2.6.30" 71 90 `date >> $log_file` 72 91 sleep 120 73 92 echo "[$i] 8. Running make -j 4 ...." >> $log_file 74 93 echo "[$i] 8. Running make -j 4 ...." 75 mydsh "$i" "make-clean" "make clean -C /tmp/linux-2.6.30"76 94 `date >> $log_file` 77 mydsh "$i" "make-j4" "make -j 4 -C /tmp/linux-2.6.30" 95 mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30" 96 mydsh "$i-1" "make-j4" "make -j 4 -C /tmp/linux-2.6.30" 97 mydsh "$i-2" "make-clean" "make clean -C /tmp/linux-2.6.30" 98 mydsh "$i-2" "make-j4" "make -j 4 -C /tmp/linux-2.6.30" 99 mydsh "$i-3" "make-clean" "make clean -C /tmp/linux-2.6.30" 100 mydsh "$i-3" "make-j4" "make -j 4 -C /tmp/linux-2.6.30" 78 101 `date >> $log_file` 79 102 done 103 mydsh "F" "collect" "tar zcvf $local_zip /var/log/*.time.*"
Note: See TracChangeset
for help on using the changeset viewer.