Bug 4989 - PBS environment var limit not tested
: PBS environment var limit not tested
Status: NEW
: unspecified
: Macintosh All
: P3 minor
: ---
Assigned To:
  Show dependency treegraph
Reported: 2007-02-05 10:36 by
Modified: 2007-08-08 10:17 (History)



You need to log in before you can comment on or make changes to this bug.

Description From 2007-02-05 10:36:30
This problem was encountered on OSG and reported by Alain Roy...

In the PBS jobmanager script, used by both GRAM 2 and GRAM 4.  When it
constructs the PBS submit file, there is a potential problem. 
It puts the environment variables into a PBS directive, like this:
#PBS -v var1=val1,var2=val2...

All versions of OpenPBS and PBSPro limit that line to be 2048 characters.
Torque limits it to 32K.  If it's longer, it breaks the submission, in a
variety of ways. 

The scripts should add a MAX_ENV_LENGTH parameter and test the constructed env
length before submitting the job.  A job exceeding the length should be failed
and return a message.  Something like "Local Resource Manager environment
directive max length exceeded.  job length submitted was (4000) max length for
PBS is 2048)."