1 |
dennisvd |
1582 |
* Parameter passing from JDL -> ( WMS -> ) CREAM -> BLAH -> LRMS |
2 |
|
|
|
3 |
|
|
** Mechanism |
4 |
|
|
|
5 |
|
|
Described best in http://grid.pd.infn.it/cream/field.php?n=Main.ForwardOfRequirementsToTheBatchSystem |
6 |
|
|
The bug http://savannah.cern.ch/bugs/?42288 can be circumvented by setting cerequirements |
7 |
|
|
explicitly. |
8 |
|
|
|
9 |
|
|
*** Set cerequirements in JDL |
10 |
|
|
|
11 |
|
|
** By means of a 'hook' |
12 |
|
|
|
13 |
|
|
- BLAH translates requirements to environment variables; the inequivalencies < and <= |
14 |
|
|
are treated in the same way by appending _Max to the variable name; same with > and >= |
15 |
|
|
which get _Min. |
16 |
|
|
|
17 |
|
|
- environment variables are passed to pbs_local_submit_attributes.sh, if it exists |
18 |
|
|
in $GLITE_LOCATION/bin. |
19 |
|
|
|
20 |
|
|
- this script must decide what to do with the requirements; stdout is going |
21 |
|
|
to the pbs submit script. |
22 |
|
|
|
23 |
|
|
** Example |
24 |
|
|
|
25 |
|
|
In SA3 an example script was created and tested; see https://savannah.cern.ch/task/?9461 |
26 |
|
|
|
27 |
|
|
- the environments are treated like this: |
28 |
|
|
memmin="$GlueHostMainMemoryRAMSize_Min" |
29 |
|
|
if [ -z "$memmin" ]; then |
30 |
|
|
memmin="$GlueHostMainMemoryRAMSize" |
31 |
|
|
fi |
32 |
|
|
if [ "$memmin" -gt 0 ]; then |
33 |
|
|
echo "#PBS -l mem=${memmin}mb" |
34 |
|
|
fi |
35 |
|
|
|
36 |
|
|
** Issues |
37 |
|
|
|
38 |
|
|
|
39 |
|
|
|