[torquedev] Tasks in a Job and globally unique session IDs
diwaker.lists at gmail.com
Wed Aug 2 15:12:04 MDT 2006
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?
More information about the torquedev