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.

About Fairshare Scheduling<br />

About Fairshare Scheduling<br />

Fairshare scheduling divides the processing power of the <strong>LSF</strong> cluster among<br />

users and groups to provide fair access to resources.<br />

By default, <strong>LSF</strong> considers jobs for dispatch in the same order as they appear in<br />

the queue (which is not necessarily the order in which they are submitted to<br />

the queue). This is called first-come, first-served (FCFS) scheduling.<br />

If your cluster has many users competing for limited resources, the FCFS policy<br />

might not be enough. For example, one user could submit many long jobs at<br />

once and monopolize the cluster’s resources for a long time, while other users<br />

submit urgent jobs that must wait in queues until all the first user’s jobs are all<br />

done. To prevent this, use fairshare scheduling to control how resources<br />

should be shared by competing users.<br />

Fairshare is not necessarily equal share: you can assign a higher priority to the<br />

most important users. If there are two users competing for resources, you can:<br />

◆ Give all the resources to the most important user<br />

◆ Share the resources so the most important user gets the most resources<br />

◆ Share the resources so that all users have equal importance<br />

Queue-level vs. host partition fairshare<br />

Fairshare policies<br />

You can configure fairshare at either the queue level or the host level.<br />

However, these types of fairshare scheduling are mutually exclusive. You<br />

cannot configure queue-level fairshare and host partition fairshare in the same<br />

cluster.<br />

If you want a user’s priority in one queue to depend on their activity in another<br />

queue, you must use cross-queue fairshare or host-level fairshare.<br />

A fairshare policy defines the order in which <strong>LSF</strong> attempts to place jobs that<br />

are in a queue or a host partition. You can have multiple fairshare policies in<br />

a cluster, one for every different queue or host partition. You can also configure<br />

some queues or host partitions with fairshare scheduling, and leave the rest<br />

using FCFS scheduling.<br />

How fairshare scheduling works<br />

Each fairshare policy assigns a fixed number of shares to each user or group.<br />

These shares represent a fraction of the resources that are available in the<br />

cluster. The most important users or groups are the ones with the most shares.<br />

Users who have no shares cannot run jobs in the queue or host partition.<br />

A user’s dynamic priority depends on their share assignment, the dynamic<br />

priority formula, and the resources their jobs have already consumed.<br />

The order of jobs in the queue is secondary. The most important thing is the<br />

dynamic priority of the user who submitted the job. When fairshare scheduling<br />

is used, <strong>LSF</strong> tries to place the first job in the queue that belongs to the user with<br />

the highest dynamic priority.<br />

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