mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
cad6c0c117
configurable limits on jobs on a per queue basis as well as for the total queue system. It is based on the de facto NQS standards and is interoperable with commercial NQS products. PR: 6699 Submitted by: Tony Maher <tonym@angis.org.au>
25 lines
643 B
Bash
25 lines
643 B
Bash
#!/bin/sh
|
|
qmgr <<eof
|
|
#
|
|
create pipe misc-sched run_limit= 40 destination= batch
|
|
enable queue misc-sched
|
|
start queue misc-sched
|
|
#
|
|
create batch_queue batch priority = 10 run_limit = 4 user_limit = 2
|
|
set data_limit = (2gb) batch
|
|
set per_process permfile_limit = (2gb) batch
|
|
set STack_limit = ( 8192kb ) batch
|
|
#
|
|
create batch_queue misc priority = 10 run_limit = 4 user_limit = 1
|
|
set data_limit = (2gb) batch
|
|
set per_process permfile_limit = (50mb) misc
|
|
set STack_limit = ( 8192kb ) misc
|
|
#
|
|
set default batch_request queue batch
|
|
SEt SHell_strategy FIxed = (/bin/csh)
|
|
enable queue batch
|
|
enable queue misc
|
|
start queue batch
|
|
start queue misc
|
|
eof
|