# Faireshare entity / User

**URL:** <https://community.openpbs.org/t/faireshare-entity-user/3859>\
**Category:** Users/Site Administrators\
**Created:** [April 26, 2024, 5:01pm UTC](https://community.openpbs.org/t/faireshare-entity-user/3859 "2024-04-26T17:01:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bert](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@Bert](https://community.openpbs.org/u/Bert)\
**Post date:** [April 26, 2024, 5:01pm UTC](https://community.openpbs.org/t/faireshare-entity-user/3859/1 "2024-04-26T17:01:33Z")

</div>

Hello,

I am able to run jobs with my user account (saf112092). When I list the faireshare usage using pbsfs, my user does not appear:  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/pbspro/original/1X/b6f552df5b9397ba63b1ca43bda6dad463583218.png)

Previously I created a HPC using PBSPro. I am surprised that there is no pbs\_login. Does that means users never have to login? Is this related to the problem above?

Thanks

---

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [April 26, 2024, 8:01pm UTC](https://community.openpbs.org/t/faireshare-entity-user/3859/2 "2024-04-26T20:01:41Z")

</div>

Please refer this document on PBS Pro fairshare

> **[Fairshare Management for Altair PBS Professional](https://altair.com/resource/fairshare-management-for-altair-pbs-professional)**
>
> \<p\>Fairshare is a PBS Professional scheduling tool designed to share a cluster’s limited resources according to cluster usage history and allocated percentage. It's the most direct option to grant a percentage of shared resources on the cluster to...

> **[Understanding Fairshare Usage for Altair PBS Professional](https://altair.com/resource/understanding-fairshare-usage-for-altair-pbs-professional)**
>
> \<p\>Fairshare is an Altair® PBS Professional® scheduling tool designed to share a cluster’s limited resources according to history of cluster usage and the entities’ allocated percentage. Fairshare is the most direct option to grant a percentage of...

> [@Bert](#):
>
> I am able to run jobs with my user account (saf112092). When I list the faireshare usage using pbsfs, my user does not appear:

Please set your scheduler iteration to 30 seconds  
qmgr : set server scheduler\_iteration=30  
Also, please share your sched\_config file : $PBS\_HOME/sched\_priv/sched\_config

---

<div class="post-metadata">

**Author:** ![Bert](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@Bert](https://community.openpbs.org/u/Bert)\
**Post date:** [May 28, 2024, 11:37am UTC](https://community.openpbs.org/t/faireshare-entity-user/3859/3 "2024-05-28T11:37:31Z")

</div>

set server scheduler\_iteration is set at 15.

sched\_config:

round\_robin: False all  
by\_queue: True prime  
by\_queue: True non\_prime  
strict\_ordering: false ALL  
help\_starving\_jobs: true ALL  
max\_starve: 24:00:00  
backfill\_prime: false ALL  
prime\_exempt\_anytime\_queues: false  
primetime\_prefix: p\_  
nonprimetime\_prefix: np\_  
node\_sort\_key: “sort\_priority HIGH unsused” ALL  
provision\_policy: “aggressive\_provision”  
sort\_queues: true ALL  
resources: “ncpus, mem, arch, host, vnode, aoe, slot\_type, group\_id, ungrouped, disk, ngpus, nodearray, vm\_size, lic\_abaqus\_q, lic\_abaqus\_q\_latam, qlist”  
load\_balancing: false ALL  
smp\_cluster\_dist: pack  
fair\_share: true ALL  
unknown\_shares: 10  
fairshare\_usage\_res: cput_pow(lic\_abaqus\_q,5)  
fairshare\_usage\_res: cput_pow(lic\_abaqus\_q\_latam,5)  
fairshare\_entity: Account\_Name  
fairshare\_decay\_time: 1:00:00  
fairshare\_decay\_factor: 0.4  
server\_dyn\_res: “lic\_abaqus\_q !/opt/cycle/pbspro/server\_dyn\_res\_wrapper.sh lic\_abaqus\_q /opt/lmtools/abaqus\_lic abaqus false 0”  
server\_dyn\_res: “lic\_abaqus\_q\_latam !/opt/cycle/pbspro/server\_dyn\_res\_wrapper.sh lic\_abaqus\_q\_latam /opt/lmtools/abaqus\_lic abaqus false 1”  
preemptive\_sched: true ALL  
preempt\_queue\_prio: 150  
preempt\_prio: “express\_queue, normal\_jobs”  
preempt\_order: “SCR”  
preempt\_sort: min\_time\_since\_start  
dedicated\_prefix: ded  
log\_filter: 3328

---

<div class="post-metadata">

**Author:** ![Bert](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@Bert](https://community.openpbs.org/u/Bert)\
**Post date:** [May 28, 2024, 4:13pm UTC](https://community.openpbs.org/t/faireshare-entity-user/3859/4 "2024-05-28T16:13:17Z")

</div>

I found a problem:

in sched\_config i set two fairshare\_usage\_res because I have 2 pools of abaqus licenses one for europe one for latin america:  
fairshare\_usage\_res: cput_pow(lic\_abaqus\_q,5)  
fairshare\_usage\_res: cput_pow(lic\_abaqus\_q\_latam,5)

When printing fairshare usage qith pbsfs, the first line shows the second fairshare usage. Right now nobody is using it since I am in europe and I am the only user (testing and building the HPC).

This is probably why I do not appear.

I will try this:  
fairshare\_usage\_res: cput_pow(lic\_abaqus\_q,5) + cput_pow(lic\_abaqus\_q\_latam,5)

Keep you in touch

---

<div class="post-metadata">

**Author:** ![Bert](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@Bert](https://community.openpbs.org/u/Bert)\
**Post date:** [May 28, 2024, 4:26pm UTC](https://community.openpbs.org/t/faireshare-entity-user/3859/5 "2024-05-28T16:26:03Z")

</div>

Yes it works fine BUT be careful, there should not be any space in the formula like in my previous post. Here is the right way to do it:

fairshare\_usage\_res: cput_pow(lic\_abaqus\_q,5)+cput_ pow(lic\_abaqus\_q\_latam,5)

[root@ip-0A582E84 ~]# pbsfs  
Fairshare usage units are in: cput_pow(lic\_abaqus\_q,5)+cput_pow(lic\_abaqus\_q\_latam,5)  
TREEROOT : Grp: -1 cgrp: 0 Shares: -1 Usage: 1384130 Perc: 100.000%  
unknown : Grp: 0 cgrp: 1 Shares: 10 Usage: 1384130 Perc: 100.000%  
**saf112092 : Grp: 1 cgrp: -1 Shares: 1 Usage: 1384129 Perc: 100.000%**
