I also use reverse connection with Torque (same commands used by PBS). <br><br>Here it goes the script that I use to start my PV session (reverse connection and offscreen rendering):<br><br>#====================================================================<br>
#PBS -l nodes=1:ppn=8<br>#PBS -l walltime=12:00:00<br>#PBS -N pv-omp<br>#PBS -j oe<br>#PBS -V<br># PBS -m ae<br># PBS -M <a href="mailto:user@domain.ufrj.br">user@domain.ufrj.br</a><br><br>PVCLIENT=ip.to.pvclient.machine<br>
<br>export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/sw/shared/x86_64/paraview/openmpi/3.4.0/lib/paraview-3.4:/sw/shared/x86_64/Mesa/7.2/lib64<br><br># change directory<br>cd ${PBS_O_WORKDIR}<br><br># get the number of processors and nodes<br>
NUM_PROC=`cat ${PBS_NODEFILE} | wc -l`<br><br># mpi program launch<br>mpirun -np ${NUM_PROC} /sw/shared/x86_64/paraview/openmpi/3.4.0/bin/pvserver --use-offscreen-rendering -rc -ch=${PVCLIENT}<br><br>#====================================================================<br>
<br>Of course, you'll need to leave your pvclient waiting the reverse connection. <br><br>I hope it helps you...<br><br>Regards<br><br>Renato.<br><br><br><br><div class="gmail_quote">On Fri, Apr 17, 2009 at 11:12 AM, Moreland, Kenneth <span dir="ltr"><<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">For what it’s worth, I use reverse connect all the time to connect a server launched with pbs, and it works quite well (although you will have problems if your client is behind a firewall). Reverse connection also has the added advantage of having the connection happen as soon as the pbs job launches; you don’t have to guess how long the job is going to take to launch to connect to the server.<br>
<br>
-Ken<div><div></div><div class="h5"><br>
<br>
<br>
On 4/16/09 2:01 PM, "John Patchett" <<a href="http://patchett@lanl.gov" target="_blank">patchett@lanl.gov</a>> wrote:<br>
<br>
</div></div></span></font><div><div></div><div class="h5"><blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">I have not tried a reverse connection from a batch job to a waiting <br>
client, but it sounds like it should work. Have you tried using a <br>
normal batch script something like:<br>
#PBS -A myproject<br>
#PBS -N paraview<br>
#PBS -j oe<br>
#PBS -l walltime=00:01:00,size=512<br>
cd /myparaviewbindir<br>
mpirun -n 512 ./pvserver --reverse-connection --client-<br>
host=myheadnode<br>
<br>
<br>
as an aside,<br>
forwarding X is generally much slower than it has to be.<br>
My environment makes it very difficult to get the reverse connection <br>
all the way to my desktop but i can do some port forwarding to get <br>
port 11111 from my desktop to the back end node.<br>
ssh -L11111:process0:11111 myheadnode<br>
which would probably work a lot better/faster than forwarding X<br>
We have a some machines that have a gateway and then a front end node, <br>
which gets a lot more complicated, but can still be done with port <br>
forwarding.<br>
<br>
-John.<br>
<br>
On Apr 16, 2009, at 1:47 PM, Jack Gundrum wrote:<br>
<br>
> John,<br>
> If the client is running on the login/head node (with X-forwarding <br>
> to my laptop) and from the client I want to start the parallel<br>
> backend I would enter the commands in the connect gui to choose a <br>
> server. Have you ever tried using qsub this way?<br>
><br>
<br>
<br>
<br>
><br>
> Patchett wrote:<br>
>> Hi Jack,<br>
>> Usually you have to figure out what process 0 is going to be, so <br>
>> you get an interactive session using something like:<br>
>> qsub -I -A myproject -q debug -V -lsize=64,walltime=20:00<br>
>> which I use on one of the machines I use...<br>
>><br>
>> I then do an<br>
>> mpirun -n 1 hostname<br>
>> to find out the first node from MPI's perspective so I can connect <br>
>> to it with a client.<br>
>><br>
>> then:<br>
>> mpirun -n 64 pvserver<br>
>><br>
>> If you are really trying to do batch I think there is still a <br>
>> pvbatch.<br>
>><br>
>> -John.<br>
>> On Apr 16, 2009, at 12:32 PM, Jack Gundrum wrote:<br>
>><br>
>>> Hi,<br>
>>> I would like to launch pvserver from paraview using a PBS script <br>
>>> for submitting thru qsub.<br>
>>> Are there docs or better yet examples that could be shared about <br>
>>> this? - Thanks<br>
>>><br>
>>> --<br>
>>> Jack Gundrum<br>
>>> ITS - Research Computing & Cyberinfrastucture<br>
>>> Penn State University<br>
>>><br>
>>> _______________________________________________<br>
>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>><br>
>>> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>><br>
>>> Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
>>><br>
>>> Follow this link to subscribe/unsubscribe:<br>
>>> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
>><br>
><br>
><br>
> --<br>
> Jack Gundrum<br>
> ITS - Research Computing & Cyberinfrastucture<br>
> Penn State University<br>
><br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
<br>
</span></font></blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
</span></font></div></div><font size="1"><font face="Monaco, Courier New"><span style="font-size: 7.5pt;"><br>
**** Kenneth Moreland<br>
*** Sandia National Laboratories<br>
*********** <br>
*** *** *** email: <a href="http://kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a><br>
** *** ** phone: (505) 844-8919<br>
*** web: <a href="http://www.cs.unm.edu/%7Ekmorel" target="_blank">http://www.cs.unm.edu/~kmorel</a><br>
</span></font></font><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
</span></font>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>