[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ltp-cvs
Subject:    [Ltp-cvs] ltp/testscripts ltpstress.sh,1.23,1.24
From:       Subrata <subrata_modak () users ! sourceforge ! net>
Date:       2007-04-27 7:34:12
Message-ID: E1HhKy4-0005hD-S3 () mail ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/ltp/ltp/testscripts
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv25444/ltp/testscripts

Modified Files:
	ltpstress.sh 
Log Message:
Patch for S390-31/64 Architecture, submitted by "B. N. Poornima"<bnpoorni@in.ibm.com>


Index: ltpstress.sh
===================================================================
RCS file: /cvsroot/ltp/ltp/testscripts/ltpstress.sh,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** ltpstress.sh	29 Nov 2005 22:43:12 -0000	1.23
--- ltpstress.sh	27 Apr 2007 07:34:10 -0000	1.24
***************
*** 44,47 ****
--- 44,48 ----
  datafile="/tmp/ltpstress.data"
  iofile="/tmp/ltpstress.iodata"
+ logfile="/tmp/ltpstress.log"
  interval=10
  Sar=0
***************
*** 60,64 ****
      -i # (in sec)   Interval that 'sar' or 'top' should take snapshots. Default is \
                10 seconds.
      -I iofile       Log results of 'iostat' to a file every interval. Default is \
                "/tmp/ltpstress.iodata".
!     -l logfile      Log results of test in a logfile.
      -m # (in Mb)    Specify the _minimum_ memory load of # megabytes in background. \
                Default is all the RAM + 1/2 swap.
      -n              Disable networking stress.
--- 61,65 ----
      -i # (in sec)   Interval that 'sar' or 'top' should take snapshots. Default is \
                10 seconds.
      -I iofile       Log results of 'iostat' to a file every interval. Default is \
                "/tmp/ltpstress.iodata".
!     -l logfile      Log results of test in a logfile. Default is \
                "/tmp/ltpstress.log"
      -m # (in Mb)    Specify the _minimum_ memory load of # megabytes in background. \
                Default is all the RAM + 1/2 swap.
      -n              Disable networking stress.
***************
*** 104,108 ****
  		iofile=$OPTARG;;
  
!         l)      logfile="-l $OPTARG"
  		LOGGING=1;;
  
--- 105,109 ----
  		iofile=$OPTARG;;
  
!         l)      logfile=$OPTARG
  		LOGGING=1;;
  
***************
*** 202,206 ****
    TOTALSWAP=$(free -m | grep Swap: | awk {'print $2'})
    TESTSWAP=$(($TOTALSWAP / 2))
!   TESTMEM=$(($TESTSWAP + $TOTALRAM))
   #Convert to kilobytes
    memsize=$(($TESTMEM * 1024))
--- 203,212 ----
    TOTALSWAP=$(free -m | grep Swap: | awk {'print $2'})
    TESTSWAP=$(($TOTALSWAP / 2))
!   if [ $TESTSWAP -eq 0 ]; then
!        #if there is no swap in the system, use only the free RAM
!        TESTMEM=$(free -m | grep Mem: | awk {'print $4'})
!   else
!        TESTMEM=$(($TESTSWAP + $TOTALRAM))
!   fi
   #Convert to kilobytes
    memsize=$(($TESTMEM * 1024))
***************
*** 249,255 ****
  output3=${TMPBASE}/ltpstress.$$.output3
  
! ${LTPROOT}/pan/pan -e -p -q -S -t ${hours}h -a stress1 -n stress1 $logfile -f \
                ${TMP}/stress.part1 -o $output1 & 
! ${LTPROOT}/pan/pan -e -p -q -S -t ${hours}h -a stress2 -n stress2 $logfile -f \
                ${TMP}/stress.part2 -o $output2 &
! ${LTPROOT}/pan/pan -e -p -q -S -t ${hours}h -a stress3 -n stress3 $logfile -f \
${TMP}/stress.part3 -o $output3 &  
  echo "Running LTP Stress for $hours hour(s) using $memsize Mb"
--- 255,261 ----
  output3=${TMPBASE}/ltpstress.$$.output3
  
! ${LTPROOT}/pan/pan -e -p -q -S -t ${hours}h -a stress1 -n stress1 -l $logfile -f \
                ${TMP}/stress.part1 -o $output1 & 
! ${LTPROOT}/pan/pan -e -p -q -S -t ${hours}h -a stress2 -n stress2 -l $logfile -f \
                ${TMP}/stress.part2 -o $output2 &
! ${LTPROOT}/pan/pan -e -p -q -S -t ${hours}h -a stress3 -n stress3 -l $logfile -f \
${TMP}/stress.part3 -o $output3 &  
  echo "Running LTP Stress for $hours hour(s) using $memsize Mb"


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Ltp-cvs mailing list
Ltp-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic