[GE users] PVM tight integration

Reuti reuti at staff.uni-marburg.de
Wed Apr 12 10:32:14 BST 2006


Am 12.04.2006 um 11:03 schrieb davide cittaro:

> I tried to see what the rsh wrapper does, adding some 'echo' to  
> custom files...
> Surprisingly, to me, there is no echo to the files and I've checked
> over all nodes...
> Is it possible that the rsh wrapper is not called at all? Tell me  
> if I'm right:
>
> -I add a -catch_rsh option to the PE
> -this causes start_pvm to be launched with -n NODE and -c options
> -the -c options is interpreted to start_pvm that does:
>
>  if (catch_rsh)
>    {
>       rsh_argv[0]="rsh";
>       rsh_argv[1]=nodename;
>       rsh_argv[2]=argv[optind];
>       rsh_argv[3]=argv[optind+1];
>       rsh_argv[4]=NULL;
>
>       execvp(rsh_argv[0], &rsh_argv[0]);
>
> This means to me that start_pvm calls 'rsh' in any case... regardless
> that a symlink to rsh wrapper has been created in $TMPDIR...

No. From man execvp:

        The functions execlp and execvp will duplicate the actions of  
the shell in searching for an executable file if the speci-
        fied  file  name does not contain a slash (/) character.  The  
search path is the path specified in the environment by the
        PATH variable.  If this variable isn't specified, the default  
path ``:/bin:/usr/bin''  is  used.   In  addition,  certain
        errors are treated specially.

Are you replacing the $PATH and remove the $TMPDIR, which is usually  
the first entry in the SGE generated $PATH? Then you could try:

export PATH=$TMPDIR:$PATH

in all scripts before any qrsh call.

-- Reuti


> Once the qsub has been launched I have
>
>  5299     1  5299 /opt/n1ge6/bin/lx26-amd64/sge_execd
> 25862  5299 25862  \_ sge_shepherd-39700 -bg
> 25863 25862 25863      \_ /bin/sh -f /opt/n1ge6/pvm/startpvm.sh
> -catch_rsh /opt/n1ge6/omix/spool/node1/active_jobs/39700.1/pe_hostfile
> node1.sge.ifom-ieo-campus.it /usr/share/pvm3
> 25871 25863 25863          \_ /opt/n1ge6/pvm/bin/lx24-amd64/start_pvm
> -h 8 -n node1.sge.ifom-ieo-campus.it -c /usr/share/pvm3/lib/pvmd
> /tmp/39700.1.bofh.q/hostfile
> 25872 25871 25863              \_ rsh node1.sge.ifom-ieo-campus.it
> /usr/share/pvm3/lib/pvmd /tmp/39700.1.bofh.q/hostfile
> 25875 25872 25863                  \_ [rsh] <defunct>
>
> on the head node, indicating no qrsh activity, hence no tight
> integration... The output of ps command is slightly different to the
> one showed on the howto page...
>
> --
> dawe
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail: users-help at gridengine.sunsource.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list