Ticket 3434 - fairshare
Summary: fairshare
Status: RESOLVED INFOGIVEN
Alias: None
Product: Slurm
Classification: Unclassified
Component: Configuration (show other tickets)
Version: 16.05.2
Hardware: Linux Linux
: 4 - Minor Issue
Assignee: Alejandro Sanchez
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2017-01-26 13:31 MST by George Garrett
Modified: 2017-02-16 01:18 MST (History)
1 user (show)

See Also:
Site: Columbia University
Slinky Site: ---
Alineos Sites: ---
Atos/Eviden Sites: ---
Confidential Site: ---
Coreweave sites: ---
Cray Sites: ---
DS9 clusters: ---
Google sites: ---
HPCnow Sites: ---
HPE Sites: ---
IBM Sites: ---
NOAA SIte: ---
NoveTech Sites: ---
Nvidia HWinf-CS Sites: ---
OCF Sites: ---
Recursion Pharma Sites: ---
SFW Sites: ---
SNIC sites: ---
Tzag Elita Sites: ---
Linux Distro: ---
Machine Name:
CLE Version:
Version Fixed:
Target Release: ---
DevPrio: ---
Emory-Cloud Sites: ---


Attachments

Note You need to log in before you can comment on or make changes to this ticket.
Description George Garrett 2017-01-26 13:31:18 MST
Is there a way to set RawShares to decimals, or must it be an integer? 

$ sacctmgr modify account where name=stats set fairshare=0.1
sacctmgr: error: Invalid value for FairShare (0.1)

We'd like to give some accounts a fraction of a share (for example 0.1). If not, is the recommended way to address this by multiplying all of our RawShares by a larger factor?
Comment 1 Alejandro Sanchez 2017-01-28 07:20:19 MST
(In reply to George Garrett from comment #0)
> Is there a way to set RawShares to decimals, or must it be an integer? 
> 
> $ sacctmgr modify account where name=stats set fairshare=0.1
> sacctmgr: error: Invalid value for FairShare (0.1)

Hi George. FairShare is internally stored in the shares_raw uint32_t field from the slurmdb_assoc_rec_t struct:

        uint32_t shares_raw;       /* number of shares allocated to
                                    * association */

So in short, you can't provide decimal values.

> We'd like to give some accounts a fraction of a share (for example 0.1). If
> not, is the recommended way to address this by multiplying all of our
> RawShares by a larger factor?

I'd say yes, you can multiply all of your RawShares by a larger factor if you want this account to have a FairShare value smaller than your current minimum, assuming the current minimum is 1.

Does it make sense?
Comment 2 George Garrett 2017-02-15 12:38:59 MST
Yes, that makes sense. Thank you for the response. This bug can be closed.