[torquedev] PBS_MAXSVRJOBID and PBS_MAXCLTJOBID

Glen Beane glen.beane at gmail.com
Fri Mar 27 21:42:48 MDT 2009


I was just looking at pbs_ifl.h, and I don't understand the values for
PBS_MAXCLTJOBID.

#define PBS_MAXSVRJOBID		(PBS_MAXSEQNUM + PBS_MAXSERVERNAME +
PBS_MAXPORTNUM + PBS_MAXJOBARRAYLEN + 2 ) /* server job id size */
#define PBS_MAXCLTJOBID		(PBS_MAXSVRJOBID + PBS_MAXSERVERNAME +
PBS_MAXPORTNUM + PBS_MAXJOBARRAYLEN + 2) /* client job id size */


that means PBS_MAXCLTJOBID is set to

PBS_MAXSEQNUM + PBS_MAXSERVERNAME + PBS_MAXPORTNUM +
PBS_MAXJOBARRAYLEN + 2 + PBS_MAXSERVERNAME + PBS_MAXPORTNUM +
PBS_MAXJOBARRAYLEN + 2

how does that even make sense?  Why is a JOBID on a client potentially
larger than one on the server, and what is the deal with adding
PBS_MAXSERVERNAME, PBS_MAXPORTNUM, PBS_MAXJOBARRAYLEN, and 2  twice?


This has always been this way (with the exception of
PBS_MAXJOBARRAYLEN, which was first added in 2.2.x)


More information about the torquedev mailing list