Changeset 99


Ignore:
Timestamp:
Aug 11, 2009, 10:02:39 PM (15 years ago)
Author:
jazz
Message:
  • tiny update - tuning time parameters
Location:
drbl-green-benchmark
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • drbl-green-benchmark/diskfull-benchmark.sh

    r98 r99  
    55log_start=$(date +"%y%m%d-%H%M%S_")
    66log_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"
     8status_file="/dev/null"
    89local_zip="/var/log/${log_start}diskfull.tar.gz"
    910echo "0. Rebooting...." > $log_file
    1011echo "0. Rebooting...."
    11 /opt/drbl/sbin/dcs -h "$IP_LIST" local 2>&1 > $status_file
     12/opt/drbl/sbin/dcs -h "$IP_LIST" local > $status_file 2>&1
    1213source /home/jazz/.bash_aliases
    1314up-host-a > /root/.dsh/machines.list
     15rm -f /root/.ssh/known_hosts
    1416
    1517function mydsh()
     
    2224  echo "[$i] 1. Booting...." >> $log_file
    2325  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
    2528  `date >> $log_file`
    2629  sleep 120
     
    4144  echo "[$i] 4. Running bonnie++ ...."
    4245  `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"
    4548  `date >> $log_file`
    4649  sleep 120
     
    6063  mydsh "$i" "make-allnoconf" "make -C /tmp/linux-2.6.30 allnoconfig"
    6164  `date >> $log_file`
    62   echo "[$i] 5. Running make -j 1 twice ...." >> $log_file
    63   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 ...."
    6467  `date >> $log_file`
    6568  mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30"
    6669  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"
    6970  `date >> $log_file`
    7071  sleep 120
    71   echo "[$i] 6. Running make -j 2 triple ...." >> $log_file
    72   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 ...."
    7374  `date >> $log_file`
    7475  mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30"
    7576  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"
    8077  `date >> $log_file`
    8178  sleep 120
    82   echo "[$i] 7. Running make -j 3 triple ...." >> $log_file
    83   echo "[$i] 7. Running make -j 3 triple ...."
     79  echo "[$i] 7. Running make -j 3 twice ...." >> $log_file
     80  echo "[$i] 7. Running make -j 3 twice ...."
    8481  `date >> $log_file`
    8582  mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30"
     
    8784  mydsh "$i-2" "make-clean" "make clean -C /tmp/linux-2.6.30"
    8885  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"
    9186  `date >> $log_file`
    9287  sleep 120
    93   echo "[$i] 8. Running make -j 4 triple ...." >> $log_file
    94   echo "[$i] 8. Running make -j 4 triple ...."
     88  echo "[$i] 8. Running make -j 4 twice ...." >> $log_file
     89  echo "[$i] 8. Running make -j 4 twice ...."
    9590  `date >> $log_file`
    9691  mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30"
     
    9893  mydsh "$i-2" "make-clean" "make clean -C /tmp/linux-2.6.30"
    9994  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"
    10295  `date >> $log_file`
    10396done
  • drbl-green-benchmark/diskless-benchmark.sh

    r98 r99  
    55log_start=$(date +"%y%m%d-%H%M%S_")
    66log_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"
     8status_file="/dev/null"
    89local_zip="/var/log/${log_start}diskless.tar.gz"
    910echo "0. Rebooting...." > $log_file
    1011echo "0. Rebooting...."
    11 /opt/drbl/sbin/dcs -h "$IP_LIST" remote-linux-txt 2>&1 > $status_file
     12/opt/drbl/sbin/dcs -h "$IP_LIST" remote-linux-txt > $status_file 2>&1
    1213source /home/jazz/.bash_aliases
    1314up-host-a > /root/.dsh/machines.list
     15rm -f /root/.ssh/known_hosts
    1416
    1517function mydsh()
     
    2224  echo "[$i] 1. Booting...." >> $log_file
    2325  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
    2528  `date >> $log_file`
    2629  sleep 120
     
    4144  echo "[$i] 4. Running bonnie++ ...."
    4245  `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"
    4548  `date >> $log_file`
    4649  sleep 120
     
    6063  mydsh "$i" "make-allnoconf" "make -C /tmp/linux-2.6.30 allnoconfig"
    6164  `date >> $log_file`
    62   echo "[$i] 5. Running make -j 1 twice ...." >> $log_file
    63   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 ...."
    6467  `date >> $log_file`
    6568  mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30"
    6669  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"
    6970  `date >> $log_file`
    7071  sleep 120
    71   echo "[$i] 6. Running make -j 2 triple ...." >> $log_file
    72   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 ...."
    7374  `date >> $log_file`
    7475  mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30"
    7576  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"
    8077  `date >> $log_file`
    8178  sleep 120
    82   echo "[$i] 7. Running make -j 3 triple ...." >> $log_file
    83   echo "[$i] 7. Running make -j 3 triple ...."
     79  echo "[$i] 7. Running make -j 3 twice ...." >> $log_file
     80  echo "[$i] 7. Running make -j 3 twice ...."
    8481  `date >> $log_file`
    8582  mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30"
     
    8784  mydsh "$i-2" "make-clean" "make clean -C /tmp/linux-2.6.30"
    8885  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"
    9186  `date >> $log_file`
    9287  sleep 120
    93   echo "[$i] 8. Running make -j 4 triple ...." >> $log_file
    94   echo "[$i] 8. Running make -j 4 triple ...."
     88  echo "[$i] 8. Running make -j 4 twice ...." >> $log_file
     89  echo "[$i] 8. Running make -j 4 twice ...."
    9590  `date >> $log_file`
    9691  mydsh "$i-1" "make-clean" "make clean -C /tmp/linux-2.6.30"
     
    9893  mydsh "$i-2" "make-clean" "make clean -C /tmp/linux-2.6.30"
    9994  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"
    10295  `date >> $log_file`
    10396done
Note: See TracChangeset for help on using the changeset viewer.