Bugzilla – Bug 4989
PBS environment var limit not tested
Last modified: 2007-08-08 10:17:05
You need to log in before you can comment on or make changes to this bug.
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)."