25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Configuring Resource Allocation Limits<br />

% bjobs<br />

JOBID USER STAT QUEUE FROM_HOST EXEC_HOST JOB_NAME SUBMIT_TIME<br />

824 user1 RUN normal hostA hostA sleep 1000 Jan 22 16:38<br />

825 user1 RUN normal hostA hostA sleep 1000 Jan 22 16:38<br />

826 user1 RUN normal hostA hostA sleep 1000 Jan 22 16:38<br />

827 user1 PEND normal hostA sleep 1000 Jan 22 16:38<br />

Only one job (827) remains pending because the more restrictive limit of 3 in<br />

lsb.resources is enforced:<br />

% bjobs -p<br />

JOBID USER STAT QUEUE FROM_HOST JOB_NAME SUBMIT_TIME<br />

827 user1 PEND normal hostA sleep 1000 Jan 22 16:38<br />

Resource (slot) limit defined cluster-wide has been reached;<br />

Equivalent<br />

conflicting limits<br />

New limits in lsb.resources that are equivalent to existing limits in<br />

lsb.users, lsb.hosts, or lsb.queues, but with a different value override<br />

the existing limits. The equivalent limits in lsb.users, lsb.hosts, or<br />

lsb.queues are ignored, and the value of the new limit in lsb.resources is<br />

used.<br />

For example, a per-user job slot limit in lsb.resources is equivalent to a<br />

MAX_JOBS limit in lsb.users, so only the lsb.resources limit is enforced,<br />

the limit in lsb.users is ignored:<br />

Begin Limit<br />

NAME = slot_limit<br />

PER_USER =all<br />

SLOTS = 3<br />

End Limit<br />

Example limit configurations<br />

Each set of limits is defined in a Limit section enclosed by Begin Limit and<br />

End Limit.<br />

Example 1<br />

Example 2<br />

user1 is limited to 2 job slots on hostA, and user2’s jobs on queue normal<br />

are limited to 20 MB of memory:<br />

Begin Limit<br />

HOSTS SLOTS MEM SWP TMP USERS QUEUES<br />

hostA 2 - - - user1 -<br />

- - 20 - - user2 normal<br />

End Limit<br />

Set a job slot limit of 2 for user user1 submitting jobs to queue normal on host<br />

hosta for all projects, but only one job slot for all queues and hosts for project<br />

test:<br />

Begin Limit<br />

HOSTS SLOTS PROJECTS USERS QUEUES<br />

hosta 2 - user1 normal<br />

- 1 test user1 -<br />

End Limit<br />

264<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!