1 |
The wlcg-wn-env-{pbs,torque} packages consists of a set of scripts to set up |
2 |
the $JOBFEATURES file. This file is generated by the the prologue.user script |
3 |
and contains the following information: |
4 |
jobstart=<job start time> |
5 |
cpu_limit=<maximum CPU limit available, in seconds> |
6 |
wall_limit=<maximum walltime limit available, in seconds> |
7 |
A job can calculate the remaining wall time doing |
8 |
now() - $jobstart + $wall_limit |
9 |
|
10 |
|
11 |
The purpose of each of the files in this packages is: |
12 |
- prologue.user : set up the $JOBFEATURES file |
13 |
- epilogue.user : clean up the $JOBFEATURES file |
14 |
- wlcg-wn-env.conf : configuration file |
15 |
- wlcg-wn-env.sh : set the environment variable JOBFEATURES |
16 |
|
17 |
The wlcg-wn-env.conf can be used to change the default location of the |
18 |
$JOBFEATURES file. If this config file is missing the scripts default to |
19 |
${TMPDIR:-/tmp}/jobfeatures.${PBS_JOBID} |
20 |
|
21 |
There is no wlcg-wn-env.csh script as the JOBFEATURES environment variable |
22 |
is inherited by from the PBS wrapper scripts, which are bash-based. |
23 |
|
24 |
|
25 |
The only difference between the wlcg-wn-env-pbs and wlcg-wn-env-torque packages |
26 |
is the location of the 'mom_priv' directory. For older version of the PBS/Torque |
27 |
client (up to v2.3) the mom_priv directory was found under |
28 |
/var/spool/pbs/mom_priv |
29 |
With the EPEL packaged version of the Torque 2.5 client this was changed to |
30 |
/var/torque/mom_priv. |
31 |
|
32 |
-- |
33 |
Jan Just Keijser - janjust@nikhef.nl |
34 |
Nikhef |
35 |
Amsterdam |
36 |
|