Skip Nav

Use $WORK_DIR When Reading or Writing Files to Speed File I/O

On Lightning, Predator, Spirit, and the Utility Server, PBS automatically creates a $WORK_DIR directory for your batch job in $WORKDIR. Executing jobs should use $WORK_DIR for reading and writing files. This has some advantages:

  1. Files in $WORK_DIR are exempt from the scrubber while the job is running.
  2. Using $WORK_DIR will prevent more than one job from writing to the same file.
  3. Files in $WORK_DIR are not subject to a quota, unlike $HOME.

The only permanent, locally-available storage available to batch jobs are the Lustre-based /work* file systems.