Parallel job processing in PBS queuing system
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Parallel job processing in PBS queuing system




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Parallel job processing in PBS queuing system  
zuheyr


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-30-04 01:09 AM

Hello,

In Linux or unix platform, is there any way to syncronize two jobs using PBS
or any other tool!?

I want to run 2 programs in 2 different jobs, stop
them at syncronized points get the results and rerun
them.

Could please somebody help me...

Many thanks,

Zuheyr Alsalihi








[ Post a follow-up to this message ]



    Re: Parallel job processing in PBS queuing system  
Kevin Rodgers


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-30-04 01:09 AM

zuheyr wrote:
> I want to run 2 programs in 2 different jobs, stop them at syncronized
> points get the results and rerun them.

How about :

#!/bin/sh

program_1 &
program_1_pid=$!

program_2 &
program_2_pid=$!

at now+10min << EOF
kill -STOP $program_1_pid
kill -STOP $program_2_pid
# get the results here
kill -CONT $program_1_pid
kill -CONT $program_2_pid
EOF

--
Kevin Rodgers






[ Post a follow-up to this message ]



    Re: Parallel job processing in PBS queuing system  
zuheyr alsalihi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-30-04 03:46 PM

Dear Kevin.

Thnk you! Such a scheme indeed works, but there are
two things that worry me:

1-When stopping a program, where does it continue when
I continue it...? How can I assure that it will continue from
a given fixed point!?

2-The arbitrary timing, but I guess I can manipulate the stopping by
examining an output file.

As an alternative I was checking the use of an mpi function to
run 2 executables in one job using

MPI_COMM_SPAWN_MULTIPLE

what do you think? Then I can control the processes and do communications!?

Well, many thanks it was very instructive...

Regards

Zuheyr

"Kevin Rodgers" <ihs_4664@yahoo.com> wrote in message
news:415AD3A2.1020800@yahoo.com...
> zuheyr wrote: 
>
> How about :
>
> #!/bin/sh
>
> program_1 &
> program_1_pid=$!
>
> program_2 &
> program_2_pid=$!
>
> at now+10min << EOF
> kill -STOP $program_1_pid
> kill -STOP $program_2_pid
> # get the results here
> kill -CONT $program_1_pid
> kill -CONT $program_2_pid
> EOF
>
> --
> Kevin Rodgers
>







[ Post a follow-up to this message ]



    Re: Parallel job processing in PBS queuing system  
Robert Newson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-03-04 02:13 AM

zuheyr alsalihi wrote:

> Dear Kevin.
>
> Thnk you! Such a scheme indeed works, but there are
> two things that worry me:
>
> 1-When stopping a program, where does it continue when
> I continue it...? How can I assure that it will continue from
> a given fixed point!?

Signals are like user controlled interrupts.  When the SIGSTOP is received,
the program is interrupted doing whatever it was doing and executes the
SIGSTOP handler, which can only do one thing as it cannot be changed from
its default behaviour: stop the process running at that point.  When the
SIGCONT is received, the default behaviour for that handler is for the
process to then resume from the point at which it was stopped.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:12 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register