Limit the maximum number of running cores for all users


Is there a way to limit the maximum number of running core for all whole users in PBSPro with pbs_sched like MAUI?

Example: In maui.cfg it is possible to declare this:

# users
USERCFG[DEFAULT] MAXPROC=100 # default user cpu limit

In PBS I found the command: qmgr -c “s s max_run_res.ncpus=[u:foo=100]”, but do I need to execute this command for every single user?


Is there a group all of your users belong to?

qmgr -c "s s max_run_res.ncpus=[g:users=100]"

Hi @mkaro.

No there isn’t. But if this is the only way, I can try to create it.


That’s the only solution I’m aware of because wildcards aren’t an option. Using groups might also offer some flexibility if there are a subset of users needing a higher limit. Hope that helps.

Try -
qmgr -c “set server max_run_res.ncpus=[u:PBS_GENERIC=100]”

This means it is a generic limit for every user



Thanks @arungrover