Setting Up A Global Consumable Resource in Grid Engine |
Step 1: Configure the "global" complex First create/modify a complex called "global" (the name is reserved, like the complexes which are managing resources on a per host/queue basis are called "host" and "queue"). This can be found by clicking the "Complexes Configuration" button in qmon. Enter the following values for the complex (verilog is used in this example):
% qconf -sc global
Step 2: Configure the "global" host Step 3: View the consumable attribute % qstat -F verilog queuename qtype used/tot. load_avg arch states --------------------------------------------------------------------------- balrog.q BIC 0/4 0.45 solaris64 gc:verilog=10.000000 --------------------------------------------------------------------------- bilbur.q BIC 0/4 0.46 solaris gc:verilog=10.000000 --------------------------------------------------------------------------- dwain.q BIC 0/4 0.82 irix6 gc:verilog=10.000000
See qstat(1) for the various meanings of "gc", etc. (Try
"qstat -F" to see a long list of attributes associated with
each queue). Step 4: Use the consumable attribute % qsub -l vl=1 myjob.sh
% qstat -F vl queuename qtype used/tot. load_avg arch states ---------------------------------------------------------------------------- balrog.q BIC 0/4 0.40 solaris64 gc:verilog=9.000000 ---------------------------------------------------------------------------- gloin.q2 BIC 0/4 0.02 osf4 gc:verilog=9.000000 ---------------------------------------------------------------------------- lis.q BIC 0/4 0.35 glinux gc:verilog=9.000000 ---------------------------------------------------------------------------- ori.q BIC 1/4 0.15 glinux gc:verilog=9.000000 3026 0 sleeper.sh andy t 11/02/1999 15:55:25 MASTER To see which running job requested which resources: % qstat -F vl -r -s r queuename qtype used/tot. load_avg arch states ---------------------------------------------------------------------------- [...] ---------------------------------------------------------------------------- ori.q BIC 1/4 0.12 glinux gc:verilog=9.000000 3026 0 sleeper.sh andy r 11/02/1999 15:55:25 MASTER Full jobname: sleeper.sh Hard Resources: verilog=1 h_fsize=0 (default) |