[slurm-users] Limiting and tracking license TRES?

Chin,David dwc62 at drexel.edu
Tue Aug 16 16:43:18 UTC 2022

Hello, all:

Reading this old SLUG 2015 slide deck on Slurm TRES: https://slurm.schedmd.com/SLUG15/TRES.pdf
and the slurm.conf man page.

It seems to imply that TRES offers a way to place limits on
license consumption. From slide 3:

Limits on more resources other than CPU/Memory/Nodes
○ GRES, Licenses, etc

though the slide deck doesn't actually show examples of
reporting on or limiting the license TRES.

My Slurm 21.08.8 slurm.conf has:


This works to limit Stata usage to no more than 10 licences
on the cluster.

However, trying to report does not show a valid TRES:

$ sreport cluster utilization --tres="license/stata"
sreport: fatal: No valid TRES given

or just

$ sreport cluster utilization --tres="license"
sreport: fatal: No valid TRES given

Nor can I set a GrpTRES, e.g.

$ sacctmgr modify account fooacct set grptres=license/stata=5
 Unknown option: grptres=license/stata=5
 Use keyword 'where' to modify condition

Is it possible to get sreports on license usage and/or limit license
usage? Am I missing something?

Thanks in advance,

David Chin, PhD (he/him)   Sr. SysAdmin, URCF, Drexel
dwc62 at drexel.edu                     215.571.4335 (o)
For URCF support: urcf-support at drexel.edu

Drexel Internal Data
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20220816/7d438104/attachment-0001.htm>

More information about the slurm-users mailing list