Restrict Number of Running Jobs with PBS Professional

Maximum Number of Running Jobs a user can submit to a particular queue (512 cores in this example)

qmgr -c "set queue your_queue_name max_run_res.ncpus = [u:PBS_GENERIC=512]"

Minimum Number of Running Jobs a user can submit to a particular queue ( 4 cores in this example)

qmgr -c "set queue your_queue_name resources_min.ncpus=4"

 

Restrict Number of Queued and Running Jobs with PBS Professional

Allow maximum queued jobs limit at Server level

% qmgr -c "set server max_queued = [u:PBS_GENRIC=128]"

Apply maximum queued jobs limit at Queue Level

% qmgr -c "set queue your-queue-name max_queued = [u:PBS_GENRIC=128]"

Apply maximum Running jobs limit at Server Level

% qmgr -c "set server max_run = [u:PBS_GENRIC=128]"

Apply maximum running jobs limit at Queue Level

% qmgr -c "set queue your-queue-name max_run = [u:PBS_GENRIC=128]"