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.

Configuring Resource Allocation Limits<br />

Example 8<br />

Begin Limit<br />

NAME = 10_percent_mem<br />

# Resources:<br />

MEM = 10%<br />

QUEUES = all ~queue1<br />

USERS = ugroup1 ~user1<br />

PER_HOST = hgroup1<br />

End Limit<br />

Limit users in the develop group to 1 job on each host, and 50% of the<br />

memory on the host.<br />

Begin Limit<br />

NAME = develop_group_limit<br />

# Resources:<br />

SLOTS = 1<br />

MEM = 50%<br />

#Consumers:<br />

USERS = develop<br />

PER_HOST = all<br />

End Limit<br />

Example 9 Limit software license lic1, with quantity 100, where user1 can use 90<br />

licenses and all other users are restricted to 10.<br />

Begin Limit<br />

USERS<br />

LICENSE<br />

user1<br />

([lic1,90])<br />

(all ~user1) ([lic1,10])<br />

End Limit<br />

lic1 is defined as a decreasing numeric shared resource in lsf.shared.<br />

To submit a job to use one lic1 license, use the rusage string in the -R option<br />

of bsub specify the license:<br />

% bsub -R "rusage[lic1=1]" my-job<br />

Example 10<br />

Example 11<br />

Jobs from crash project can use 10 lic1 licenses, while jobs from all other<br />

projects together can use 5.<br />

Begin Limit<br />

LICENSE PROJECTS<br />

([lic1,10]) crash<br />

([lic1,5]) (all ~crash)<br />

End Limit<br />

lic1 is defined as a decreasing numeric shared resource in lsf.shared.<br />

Limit host to 1 job slot per processor:<br />

Begin Limit<br />

NAME<br />

= default_limit<br />

SLOTS_PER_PROCESSOR = 1<br />

PER_HOST<br />

= all<br />

End Limit<br />

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