LSF Version 7.3 - Platform LSF Configuration Reference

PJOB_LIMIT
Syntax
PJOB_LIMIT=float
Description
Per-processor job slot limit for the queue.
Maximum number of job slots that this queue can use on any processor. This limit is configured
per processor, so that multiprocessor hosts automatically run more jobs.
Default
Unlimited
POST_EXEC
Syntax
POST_EXEC=command
Description
Enables post-execution processing at the queue level. The POST_EXEC command runs on
the execution host after the job finishes. Post-execution commands can be configured at the
application and queue levels. Application-level post-execution commands run before queue-
level post-execution commands.
The POST_EXEC command uses the same environment variable values as the job, and, by
default, runs under the user account of the user who submits the job. To run post-execution
commands under a different user account (such as root for privileged operations), configure
the parameter LSB_PRE_POST_EXEC_USER in lsf.sudoers.
When a job exits with one of the queue’s REQUEUE_EXIT_VALUES, LSF requeues the job
and sets the environment variable LSB_JOBPEND. The post-execution command runs after
the requeued job finishes.
When the post-execution command is run, the environment variable LSB_JOBEXIT_STAT
is set to the exit status of the job. If the execution environment for the job cannot be set up,
LSB_JOBEXIT_STAT is set to 0 (zero).
For UNIX:
The pre- and post-execution commands run in the /tmp directory under /bin/sh -c,
which allows the use of shell features in the commands. The following example shows valid
configuration lines:
PRE_EXEC= /usr/share/lsf/misc/testq_pre >> /tmp/pre.out
POST_EXEC= /usr/share/lsf/misc/testq_post | grep -v "Hey!"
LSF sets the PATH environment variable to
PATH='/bin /usr/bin /sbin /usr/sbin'
The stdin, stdout, and stderr are set to /dev/null
To allow UNIX users to define their own post-execution commands, an LSF administrator
specifies the environment variable $USER_POSTEXEC as the POST_EXEC command. A
user then defines the post-execution command:
setenv USER_POSTEXEC /path_name
lsb.queues
306 Platform LSF Configuration Reference