I have a program that does some setup work, forks several times, and exits. The child processes do most of the heavy computing.
Will torque kill the child processes when it detects the parent process exiting?
I have a program that does some setup work, forks several times, and exits. The child processes do most of the heavy computing.
Will torque kill the child processes when it detects the parent process exiting?
http://www.clusterresources.com/torquedocs21/2.3cancelingjobs.shtml says that all processes associated with the job are killed. I believe that is true for all schedulers since it is clearly the desired behavior.
Torque will not kill the job or the child processes when the original process exists, as this would prevent a job from launch one program after another in sequence, for example, since this workflow would cause the job to terminate after the first program exited if Torque initiated cleanup and job termination upon that event.
You can, of course, verify any of this experimentally using the Torque system you intend to use.