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.

Allowing Jobs to Use Reserved Job Slots<br />

Parallel jobs<br />

◆ Job 2:<br />

Submitting a second job with same requirements will get the same result.<br />

◆ Job 3:<br />

Submitting a third job with same requirements will reserve one job slot,<br />

and reserve all free memory, if the amount of free memory is between 20<br />

MB and 200 MB (some free memory may be used by the operating system<br />

or other software.)<br />

◆ Job 4:<br />

% bsub -W 400 -q backfill -R "rusage[mem=50]" myjob4<br />

The job will keep pending, since memory is reserved by job 3 and it will<br />

run longer than job 1 and job 2.<br />

◆ Job 5:<br />

% bsub -W 100 -q backfill -R "rusage[mem=50]" myjob5<br />

The job will start running. It uses one free slot and memory reserved by<br />

job 3. If the job does not finish in 100 minutes, it will be killed by <strong>LSF</strong><br />

automatically.<br />

◆ Job 6:<br />

% bsub -W 100 -q backfill -R "rusage[mem=300]" myjob6<br />

The job will keep pending with no resource reservation because it cannot<br />

get enough memory from the memory reserved by job 3.<br />

◆ Job 7:<br />

% bsub -W 100 -q backfill myjob7<br />

The job will start running. <strong>LSF</strong> assumes it does not require any memory and<br />

enough job slots are free.<br />

Each process of a parallel job requires 100 MB memory, and each parallel job<br />

needs 4 cpus. The first two of the following parallel jobs will run for 300<br />

minutes.<br />

◆ Job 1:<br />

% bsub -W 300 -n 4 -R "rusage[mem=100]" -q reservation<br />

myJob1<br />

The job will start running and use 4 slots and get 400MB memory.<br />

◆ Job 2:<br />

Submitting a second job with same requirements will get the same result.<br />

◆ Job 3:<br />

Submitting a third job with same requirements will reserve 2 slots, and<br />

reserve all 200 MB of available memory, assuming no other applications<br />

are running outside of <strong>LSF</strong>.<br />

◆ Job 4:<br />

% bsub -W 400 -q backfill -R "rusage[mem=50]" myJob4<br />

The job will keep pending since all available memory is already reserved<br />

by job 3. It will run longer than job 1 and job 2, so no backfill happens.<br />

456<br />

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

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

Saved successfully!

Ooh no, something went wrong!