Changeset 99
- Timestamp:
- Aug 11, 2009, 10:02:39 PM (15 years ago)
- Location:
- drbl-green-benchmark
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
drbl-green-benchmark/diskfull-benchmark.sh
r98 r99 5 5 log_start=$(date +"%y%m%d-%H%M%S_") 6 6 log_file="/var/log/${log_start}diskfull-benchmark.log" 7 status_file="/var/log/${log_start}diskfull-benchmark-status.log" 7 #status_file="/var/log/${log_start}diskfull-benchmark-status.log" 8 status_file="/dev/null" 8 9 local_zip="/var/log/${log_start}diskfull.tar.gz" 9 10 echo "0. Rebooting...." > $log_file 10 11 echo "0. Rebooting...." 11 /opt/drbl/sbin/dcs -h "$IP_LIST" local 2>&1 > $status_file12 /opt/drbl/sbin/dcs -h "$IP_LIST" local > $status_file 2>&1 12 13 source /home/jazz/.bash_aliases 13 14 up-host-a > /root/.dsh/machines.list 15 rm -f /root/.ssh/known_hosts 14 16 15 17 function mydsh() … … 22 24 echo "[$i] 1. Booting...." >> $log_file 23 25 echo "[$i] 1. Booting...." 24 dsh -a -c "reboot" 2>&1 >> $status_file 26 dsh -a -c "rm -f /var/log/*.time.*" >> $status_file 2>&1 27 dsh -a -c "reboot" >> $status_file 2>&1 25 28 `date >> $log_file` 26 29 sleep 120 … … 41 44 echo "[$i] 4. Running bonnie++ ...." 42 45 `date >> $log_file` 43 # force to run bonnie++ with 512MB RAM (-r), 1024MB (-s)44 mydsh "$i" "bonnie++" "bonnie++ -u root -d /root -r 512 -s 1024"46 # force to run bonnie++ with 128MB RAM (-r), 256MB (-s) 47 mydsh "$i" "bonnie++" "bonnie++ -u root -d /root -r 128 -s 256" 45 48 `date >> $log_file` 46 49 sleep 120 … … 60 63 mydsh "$i" "make-allnoconf" "make -C /tmp/linux-2.6.30 allnoconfig" 61 64 `date >> $log_file` 62 echo "[$i] 5. Running make -j 1 twice ...." >> $log_file63 echo "[$i] 5. Running make -j 1 twice ...."65 echo "[$i] 5. Running make -j 1 once ...." >> $log_file 66 echo "[$i] 5. Running make -j 1 once ...." 64 67 `date >> $log_file` 65 68 mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30" 66 69 mydsh "$i-1" "make-j1" "make -j 1 -C /tmp/linux-2.6.30" 67 mydsh "$i-2" "make-clean" "make clean -C /tmp/linux-2.6.30"68 mydsh "$i-2" "make-j1" "make -j 1 -C /tmp/linux-2.6.30"69 70 `date >> $log_file` 70 71 sleep 120 71 echo "[$i] 6. Running make -j 2 triple ...." >> $log_file72 echo "[$i] 6. Running make -j 2 triple ...."72 echo "[$i] 6. Running make -j 2 once ...." >> $log_file 73 echo "[$i] 6. Running make -j 2 once ...." 73 74 `date >> $log_file` 74 75 mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30" 75 76 mydsh "$i-1" "make-j2" "make -j 2 -C /tmp/linux-2.6.30" 76 mydsh "$i-2" "make-clean" "make clean -C /tmp/linux-2.6.30"77 mydsh "$i-2" "make-j2" "make -j 2 -C /tmp/linux-2.6.30"78 mydsh "$i-3" "make-clean" "make clean -C /tmp/linux-2.6.30"79 mydsh "$i-3" "make-j2" "make -j 2 -C /tmp/linux-2.6.30"80 77 `date >> $log_file` 81 78 sleep 120 82 echo "[$i] 7. Running make -j 3 t riple ...." >> $log_file83 echo "[$i] 7. Running make -j 3 t riple ...."79 echo "[$i] 7. Running make -j 3 twice ...." >> $log_file 80 echo "[$i] 7. Running make -j 3 twice ...." 84 81 `date >> $log_file` 85 82 mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30" … … 87 84 mydsh "$i-2" "make-clean" "make clean -C /tmp/linux-2.6.30" 88 85 mydsh "$i-2" "make-j3" "make -j 3 -C /tmp/linux-2.6.30" 89 mydsh "$i-3" "make-clean" "make clean -C /tmp/linux-2.6.30"90 mydsh "$i-3" "make-j3" "make -j 3 -C /tmp/linux-2.6.30"91 86 `date >> $log_file` 92 87 sleep 120 93 echo "[$i] 8. Running make -j 4 t riple ...." >> $log_file94 echo "[$i] 8. Running make -j 4 t riple ...."88 echo "[$i] 8. Running make -j 4 twice ...." >> $log_file 89 echo "[$i] 8. Running make -j 4 twice ...." 95 90 `date >> $log_file` 96 91 mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30" … … 98 93 mydsh "$i-2" "make-clean" "make clean -C /tmp/linux-2.6.30" 99 94 mydsh "$i-2" "make-j4" "make -j 4 -C /tmp/linux-2.6.30" 100 mydsh "$i-3" "make-clean" "make clean -C /tmp/linux-2.6.30"101 mydsh "$i-3" "make-j4" "make -j 4 -C /tmp/linux-2.6.30"102 95 `date >> $log_file` 103 96 done -
drbl-green-benchmark/diskless-benchmark.sh
r98 r99 5 5 log_start=$(date +"%y%m%d-%H%M%S_") 6 6 log_file="/var/log/${log_start}diskless-benchmark.log" 7 status_file="/var/log/${log_start}diskless-benchmark-status.log" 7 #status_file="/var/log/${log_start}diskless-benchmark-status.log" 8 status_file="/dev/null" 8 9 local_zip="/var/log/${log_start}diskless.tar.gz" 9 10 echo "0. Rebooting...." > $log_file 10 11 echo "0. Rebooting...." 11 /opt/drbl/sbin/dcs -h "$IP_LIST" remote-linux-txt 2>&1 > $status_file12 /opt/drbl/sbin/dcs -h "$IP_LIST" remote-linux-txt > $status_file 2>&1 12 13 source /home/jazz/.bash_aliases 13 14 up-host-a > /root/.dsh/machines.list 15 rm -f /root/.ssh/known_hosts 14 16 15 17 function mydsh() … … 22 24 echo "[$i] 1. Booting...." >> $log_file 23 25 echo "[$i] 1. Booting...." 24 dsh -a -c "reboot" 2>&1 >> $status_file 26 dsh -a -c "rm -f /var/log/*.time.*" >> $status_file 2>&1 27 dsh -a -c "reboot" >> $status_file 2>&1 25 28 `date >> $log_file` 26 29 sleep 120 … … 41 44 echo "[$i] 4. Running bonnie++ ...." 42 45 `date >> $log_file` 43 # force to run bonnie++ with 512MB RAM (-r), 1024MB (-s)44 mydsh "$i" "bonnie++" "bonnie++ -u root -d /root -r 512 -s 1024"46 # force to run bonnie++ with 128MB RAM (-r), 256MB (-s) 47 mydsh "$i" "bonnie++" "bonnie++ -u root -d /root -r 128 -s 256" 45 48 `date >> $log_file` 46 49 sleep 120 … … 60 63 mydsh "$i" "make-allnoconf" "make -C /tmp/linux-2.6.30 allnoconfig" 61 64 `date >> $log_file` 62 echo "[$i] 5. Running make -j 1 twice ...." >> $log_file63 echo "[$i] 5. Running make -j 1 twice ...."65 echo "[$i] 5. Running make -j 1 once ...." >> $log_file 66 echo "[$i] 5. Running make -j 1 once ...." 64 67 `date >> $log_file` 65 68 mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30" 66 69 mydsh "$i-1" "make-j1" "make -j 1 -C /tmp/linux-2.6.30" 67 mydsh "$i-2" "make-clean" "make clean -C /tmp/linux-2.6.30"68 mydsh "$i-2" "make-j1" "make -j 1 -C /tmp/linux-2.6.30"69 70 `date >> $log_file` 70 71 sleep 120 71 echo "[$i] 6. Running make -j 2 triple ...." >> $log_file72 echo "[$i] 6. Running make -j 2 triple ...."72 echo "[$i] 6. Running make -j 2 once ...." >> $log_file 73 echo "[$i] 6. Running make -j 2 once ...." 73 74 `date >> $log_file` 74 75 mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30" 75 76 mydsh "$i-1" "make-j2" "make -j 2 -C /tmp/linux-2.6.30" 76 mydsh "$i-2" "make-clean" "make clean -C /tmp/linux-2.6.30"77 mydsh "$i-2" "make-j2" "make -j 2 -C /tmp/linux-2.6.30"78 mydsh "$i-3" "make-clean" "make clean -C /tmp/linux-2.6.30"79 mydsh "$i-3" "make-j2" "make -j 2 -C /tmp/linux-2.6.30"80 77 `date >> $log_file` 81 78 sleep 120 82 echo "[$i] 7. Running make -j 3 t riple ...." >> $log_file83 echo "[$i] 7. Running make -j 3 t riple ...."79 echo "[$i] 7. Running make -j 3 twice ...." >> $log_file 80 echo "[$i] 7. Running make -j 3 twice ...." 84 81 `date >> $log_file` 85 82 mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30" … … 87 84 mydsh "$i-2" "make-clean" "make clean -C /tmp/linux-2.6.30" 88 85 mydsh "$i-2" "make-j3" "make -j 3 -C /tmp/linux-2.6.30" 89 mydsh "$i-3" "make-clean" "make clean -C /tmp/linux-2.6.30"90 mydsh "$i-3" "make-j3" "make -j 3 -C /tmp/linux-2.6.30"91 86 `date >> $log_file` 92 87 sleep 120 93 echo "[$i] 8. Running make -j 4 t riple ...." >> $log_file94 echo "[$i] 8. Running make -j 4 t riple ...."88 echo "[$i] 8. Running make -j 4 twice ...." >> $log_file 89 echo "[$i] 8. Running make -j 4 twice ...." 95 90 `date >> $log_file` 96 91 mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30" … … 98 93 mydsh "$i-2" "make-clean" "make clean -C /tmp/linux-2.6.30" 99 94 mydsh "$i-2" "make-j4" "make -j 4 -C /tmp/linux-2.6.30" 100 mydsh "$i-3" "make-clean" "make clean -C /tmp/linux-2.6.30"101 mydsh "$i-3" "make-j4" "make -j 4 -C /tmp/linux-2.6.30"102 95 `date >> $log_file` 103 96 done
Note: See TracChangeset
for help on using the changeset viewer.