Changeset 97


Ignore:
Timestamp:
Aug 11, 2009, 6:06:02 PM (15 years ago)
Author:
jazz
Message:
  • update benchmark parameter
Location:
drbl-green-benchmark
Files:
2 edited

Legend:

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

    r96 r97  
    66log_file="/var/log/${log_start}diskfull-benchmark.log"
    77status_file="/var/log/${log_start}diskfull-benchmark-status.log"
     8local_zip="/var/log/${log_start}diskfull.tar.gz"
    89echo "0. Rebooting...." > $log_file
    910echo "0. Rebooting...."
     
    1415function mydsh()
    1516{
    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_file
     17  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
    1718}
    1819
    1920echo "START diskfull Benchmark ...." >> $log_file
    20 for ((i=1;i<=1;i++)); do
     21for ((i=1;i<=10;i++)); do
    2122  echo "[$i] 1. Booting...." >> $log_file
    2223  echo "[$i] 1. Booting...."
     
    2829  echo "[$i] 2. Running dd ...."
    2930  `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"
    3132  `date >> $log_file`
    3233  sleep 120
     
    4041  echo "[$i] 4. Running bonnie++ ...."
    4142  `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"
    4344  `date >> $log_file`
    4445  sleep 120
    4546  echo "[$i] *. Download Kernel ...." >> $log_file
    4647  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`
    4851  echo "[$i] *. Extract Kernel ...." >> $log_file
    4952  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`
    5159  mydsh "$i" "make-allnoconf" "make -C /tmp/linux-2.6.30 allnoconfig"
     60  `date >> $log_file`
    5261  echo "[$i] 5. Running make -j 1 ...." >> $log_file
    5362  echo "[$i] 5. Running make -j 1 ...."
    54   mydsh "$i" "make-clean" "make clean -C /tmp/linux-2.6.30"
    5563  `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"
    5768  `date >> $log_file`
    5869  sleep 120
    5970  echo "[$i] 6. Running make -j 2 ...." >> $log_file
    6071  echo "[$i] 6. Running make -j 2 ...."
    61   mydsh "$i" "make-clean" "make clean -C /tmp/linux-2.6.30"
    6272  `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"
    6479  `date >> $log_file`
    6580  sleep 120
    6681  echo "[$i] 7. Running make -j 3 ...." >> $log_file
    6782  echo "[$i] 7. Running make -j 3 ...."
    68   mydsh "$i" "make-clean" "make clean -C /tmp/linux-2.6.30"
    6983  `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"
    7190  `date >> $log_file`
    7291  sleep 120
    7392  echo "[$i] 8. Running make -j 4 ...." >> $log_file
    7493  echo "[$i] 8. Running make -j 4 ...."
    75   mydsh "$i" "make-clean" "make clean -C /tmp/linux-2.6.30"
    7694  `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"
    78101  `date >> $log_file`
    79102done
     103mydsh "F" "collect" "tar zcvf $local_zip /var/log/*.time.*"
  • drbl-green-benchmark/diskless-benchmark.sh

    r96 r97  
    66log_file="/var/log/${log_start}diskless-benchmark.log"
    77status_file="/var/log/${log_start}diskless-benchmark-status.log"
     8local_zip="/var/log/${log_start}diskless.tar.gz"
    89echo "0. Rebooting...." > $log_file
    910echo "0. Rebooting...."
     
    1415function mydsh()
    1516{
    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_file
     17  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
    1718}
    1819
    19 echo "START Disk-less Benchmark ...." >> $log_file
    20 for ((i=1;i<=1;i++)); do
     20echo "START diskless Benchmark ...." >> $log_file
     21for ((i=1;i<=10;i++)); do
    2122  echo "[$i] 1. Booting...." >> $log_file
    2223  echo "[$i] 1. Booting...."
     
    2829  echo "[$i] 2. Running dd ...."
    2930  `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"
    3132  `date >> $log_file`
    3233  sleep 120
     
    4041  echo "[$i] 4. Running bonnie++ ...."
    4142  `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"
    4344  `date >> $log_file`
    4445  sleep 120
    4546  echo "[$i] *. Download Kernel ...." >> $log_file
    4647  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`
    4851  echo "[$i] *. Extract Kernel ...." >> $log_file
    4952  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`
    5159  mydsh "$i" "make-allnoconf" "make -C /tmp/linux-2.6.30 allnoconfig"
     60  `date >> $log_file`
    5261  echo "[$i] 5. Running make -j 1 ...." >> $log_file
    5362  echo "[$i] 5. Running make -j 1 ...."
    54   mydsh "$i" "make-clean" "make clean -C /tmp/linux-2.6.30"
    5563  `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"
    5768  `date >> $log_file`
    5869  sleep 120
    5970  echo "[$i] 6. Running make -j 2 ...." >> $log_file
    6071  echo "[$i] 6. Running make -j 2 ...."
    61   mydsh "$i" "make-clean" "make clean -C /tmp/linux-2.6.30"
    6272  `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"
    6479  `date >> $log_file`
    6580  sleep 120
    6681  echo "[$i] 7. Running make -j 3 ...." >> $log_file
    6782  echo "[$i] 7. Running make -j 3 ...."
    68   mydsh "$i" "make-clean" "make clean -C /tmp/linux-2.6.30"
    6983  `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"
    7190  `date >> $log_file`
    7291  sleep 120
    7392  echo "[$i] 8. Running make -j 4 ...." >> $log_file
    7493  echo "[$i] 8. Running make -j 4 ...."
    75   mydsh "$i" "make-clean" "make clean -C /tmp/linux-2.6.30"
    7694  `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"
    78101  `date >> $log_file`
    79102done
     103mydsh "F" "collect" "tar zcvf $local_zip /var/log/*.time.*"
Note: See TracChangeset for help on using the changeset viewer.