Default English Deutsch
You are here: GSI Wiki>Linux Web>BatchFarm>FairShare (2007-10-31, ThomasRoth)

# Fair Share

Fair share is the name of the LSF method to calculate user priorities.

Scheduling of new jobs of any user is based on this priority. It is calculated taking into account the user's history of batch farm usage:
• the CPU time
• the total run time
• the number of jobs

The priority is re-calculated every time one of these quantities change. Thus a user's priority is lowered once new jobs actually start running () and is gradually going down over time (, ).

The priority list can be displayed with bqueues -l queuename.
• This command shows a snapshot of the priority distribution: users that have a large number of jobs running at that moment or have jobs running for a long time already will then be low on this list. Hence the priority list will never tell why some user's jobs are running while somebody else's jobs are still pending.

## Fairshare Priority Formula

%BEGINLATEX% \begin{displaymath} priority = \frac{number\_shares}{cpu\_time \cdot \texttt{CPU\_TIME\_FACTOR}+run\_time \cdot \texttt{RUN\_TIME\_FACTOR}+(1+job\_slots) \cdot \texttt{RUN\_JOB\_FACTOR}} \end{displaymath} %ENDLATEX%

Number of shares assigned to the users, identical for all users/all queues @ GSI
Cumulative CPU time used by the user.
Total run time of running jobs.
Number of job slots reserved and in use.

A decay factor is applied to the CPU time as well as the total run time, such that after , the or the is at 10% of its original value.

The relative importance of these factors for the calculation of the priority are given by the following values:

• ( Default 0,7 )
• ( Default: 0,7 )
• ( Default 3 )
• ( Default 5 )

-- HelmutKreiser - 19 Sep 2005 -- ThomasRoth - 26 Oct 2007
Topic revision: r6 - 2007-10-31, ThomasRoth - This page was cached on 2021-03-04 - 19:18.

• Categories

Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback | Imprint (german) | Privacy Policy (german)