[torqueusers] PBSTOP with Torque 4.2.7?

Thomas Dargel td at chemie.hu-berlin.de
Thu Mar 20 01:11:21 MDT 2014


Hi,

  I ran into trouble with pbstop when jumping from torque v2.4.4 to v4.6.2.1,
too.

In my case the harm came out of the subroutine "sub get_info_cmdline {}".
Herein I changed a search pattern for the analysis of "/\s+jobs = (.*)/",
because the output of "qmgr -c 'l n @server'" differs slightly from v2.4.4 to
v4.6.2.1 in the "jobs = "-section.

         elsif (/\s+jobs = (.*)/) {
             $eatingjobs=1;
             $eatingstatus=0;
             $jobs = $1;
             $State_count->{"_anodes"}++;
#  OLD       foreach my $job ( split ( /, /, $jobs ) ) {
             foreach my $job ( split ( /,/, $jobs ) ) {
                 if ( $job =~ m{(\d+)/(\d+)} ) {
                     $Nodes->{$server}{$node}{job}{$1} = $2;
                     $State_count->{"_aprocs"}++;
                 }
             }

And some line later:

         elsif ($eatingjobs) {
            if ($_ =~ /\w/) {
               /^\s+(.*)$/;
               $jobs = $1;
#  OLD         foreach my $job ( split ( /, /, $jobs ) ) {
               foreach my $job ( split ( /,/, $jobs ) ) {
                 if ( $job =~ m{(\d+)/(\d+)} ) {
                     $Nodes->{$server}{$node}{job}{$1} = $2;
                     $State_count->{"_aprocs"}++;
                 }
               }
            }


Good luck,
regards,

  Thomas.

On 20.03.2014 05:53, Sreedhar Manchu wrote:
> Hi,
>
> We use Torque 2.5.12 on our current systems (rhea 5.X). PBSTOP works great with
> this version.
>
> Now I have installed Torque 4.2.7 on a new cluster with CentOS 6.3. But I'm
> having tough time in making pbstop to work well.
>
> Does anyone know how to get it working with 4.2.7? Getting it with yum is not an
> option as it installs a 2.5.X version of Torque.
>
> Thanks in advance,
> Sreedhar.
> New York University.
>
>
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers
>



More information about the torqueusers mailing list