Say I have a host with 10 slotsn I have applied a user limit to that host as following: SLOT = 5 JOB = 3
Is there a command to find whether this host can run more jobs from that user? OR, Is there a command to find whether the said host is closed for the said user.
Thanks in advance!
Taking your description of your limit, I imagine its definition looks something like this:
Begin Limit
NAME = L1
USERS = user1
SLOTS = 5
JOBS = 3
HOSTS = hostA
End Limit
If I then submit 3 jobs as user1, I can run the blimits -u user1
to see if there are any limits imposed on the user1, or blimits -m hostA
to see if there are any limits relevant to hostA. I can also combine these filters to see if there are any relevant limits imposed on user1 on hostA:
$ blimits -u user1 -m hostA
INTERNAL RESOURCE LIMITS:
NAME USERS QUEUES HOSTS PROJECTS SLOTS MEM TMP SWP JOBS
L1 user1 - hostA - 3/5 - - - 3/3
The last column of this output (JOBS) shows me that this user has reached his limit for jobs on that host (running 3 jobs out of a possible 3 allowed).