[torquedev] Tasks in a Job and globally unique session IDs

Garrick Staples garrick at clusterresources.com
Wed Aug 2 14:09:06 MDT 2006


On Wed, Aug 02, 2006 at 02:12:04PM -0700, Diwaker Gupta alleged:
> Hi all,
> 
> I'm trying to understand some job/task related code in resmom/linux.
> First off, include/job.h indicates that a "job" can have many "tasks",
> each task has a unique owner job and each task can run on any assigned
> to a job?
> 
> The code in question is in resmom/linux/mom_mach.c -- in particular,
> the injob() routine. Given a job pointer and the session id of a
> process, the function iterates through all tasks in a job and if the
> session id of the task matches that of the process, it returns true.
> Now if tasks can be distributed across different nodes, and since the
> session IDs need not be globally unique across nodes, can't the
> function give a false positive?
> 
> Or is it the case that the task-list per job maintained by pbs_mom
> contains those subset of tasks that are executed locally?

This last bit is correct.  pbs_mom doesn't have remote tasks' session
ids.



More information about the torquedev mailing list