25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Job Execution Environment<br />

Shared user directories<br />

Chapter 2<br />

How the System Works<br />

When <strong>LSF</strong> runs your jobs, it tries to make it as transparent to the user as<br />

possible. By default, the execution environment is maintained to be as close to<br />

the submission environment as possible. <strong>LSF</strong> will copy the environment from<br />

the submission host to the execution host. The execution environment<br />

includes the following:<br />

◆ Environment variables needed by the job<br />

◆ Working directory where the job begins running<br />

◆ Other system-dependent environment settings; for example, resource<br />

usage limits and umask:<br />

Since a network can be heterogeneous, it is often impossible or undesirable to<br />

reproduce the submission host’s execution environment on the execution host.<br />

For example, if home directory is not shared between submission and<br />

execution host, <strong>LSF</strong> runs the job in the /tmp on the execution host. If the<br />

DISPLAY environment variable is something like Unix:0.0, or :0.0, then it<br />

must be processed before using on the execution host. These are automatically<br />

handled by <strong>LSF</strong>.<br />

To change the default execution environment, use:<br />

◆ A job starter<br />

◆ bsub -L<br />

For resource control, <strong>LSF</strong> also changes some of the execution environment of<br />

jobs. These include nice values, resource usage limits, or any other<br />

environment by configuring a job starter.<br />

<strong>LSF</strong> works best when user home directories are shared across all hosts in the<br />

cluster. To provide transparent remote execution, you should share user home<br />

directories on all <strong>LSF</strong> hosts.<br />

To provide transparent remote execution, <strong>LSF</strong> commands determine the user’s<br />

current working directory and use that directory on the remote host.<br />

For example, if the command cc file.c is executed remotely, cc only finds<br />

the correct file.c if the remote command runs in the same directory.<br />

<strong>LSF</strong> automatically creates an .lsbatch subdirectory in the user’s home<br />

directory on the execution host. This directory is used to store temporary input<br />

and output files for jobs.<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!