1 Reply Latest reply: Mar 21, 2008 6:12 PM by 807557 RSS

    JavaRTS-2.1ea: GettingStarted examples: run-scenarios.sh bug (Ubuntu)

    807557
      Hi,

      Concerning the GettingStarted examples in JavaRTS-2.1ea (the Linux evaluation download).

      There seems to be a bug in run-scenarios.sh. If /usr/bin/taskset is the location of `taskset',
      PSRSET_CMD2 is never initialized, and
      PSRSET_CMD1 is initialized to taskset2 (which does not exist)

      Excerpt from run-scenarios.sh:
      if [ $OS = "SunOS" ] 
      then
          PSRSET_CMD1="/usr/sbin/psrset -e 1"
          PSRSET_CMD2="/usr/sbin/psrset -e 1"
      else
          if [ -f /bin/taskset ]
          then
           PSRSET_CMD1="/bin/taskset -c 0"
           PSRSET_CMD2="/bin/taskset -c 0,1"
          else
           if [ -f /usr/bin/taskset ]
           then
               PSRSET_CMD1="/usr/bin/taskset1 -c 0"      <--- oops, a typo - taskset1
               PSRSET_CMD1="/usr/bin/taskset2 -c 0,1"   <--- oops, another typo - taskset2 and PSRSET_CMD1
           fi
          fi
      fi
      This is what happens when I run the scenarios:

      sudo ./run-scenarios.sh java ../../bin/java "" GettingStarted.jar
      # -- NonDeterministic Run1 --
      /usr/bin/taskset2 -c 0,1 java -client -XX:+PrintGC -classpath GettingStarted.jar NonDeterministic 5000 20 10 0 0 max 5000 20 10 0 0 min
      ./run-scenarios.sh: 270: */usr/bin/taskset2: not found*
      # -- NonDeterministic run1 completed
      ...


      (Could it be the case that few people have noticed this, because perhaps `taskset' is located in /bin/ on most relevant Linux distros (I'm guessing), but I'm using Ubuntu where taskset is located in /usr/bin/ ?)

      Regards,
      Magnus