[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Condor-users] USER_JOB_WRAPPER environment

Dear all,

I'm for the first time trying to set up condor (version 7.6, debian stable). Currently I have one dedicated machine that acts as Central Manager, Execute and Submit host. This is an SMP machine, which was configured to provide dynamic slots.

Now I want to enforce resource limits on jobs, so that a job which specifies a certain amount of memory requirement cannot exceed that memory limit. I added USER_JOB_WRAPPER = $(LIBEXEC)/condor_limits_wrapper.sh, but this does not work as intended.

I added echo `env` > /tmp/test to the script, to write it's environment to a file.
For standard universe jobs this is the result:
% cat /tmp/test
CONDOR_SCRATCH_DIR=/var/lib/condor/execute/dir_28693 _condor_BIND_ALL_INTERFACES=TRUE PWD=/var/lib/condor/execute/dir_28693 _CONDOR_SLOT=slot1_1 SHLVL=1 _=/usr/bin/env As you can see, _CONDOR_MACHINE_AD, _CONDOR_JOB_AD, and _CONDOR_WRAPPER_ERROR_FILE are not defined.

When submitting the job to the vanilla universe:
% cat /tmp/test
_CONDOR_JOB_PIDS= TMPDIR=/var/lib/condor/execute/dir_29013 _CONDOR_ANCESTOR_26072=29013:1331399998:1171751342 _CONDOR_SCRATCH_DIR=/var/lib/condor/execute/dir_29013 TEMP=/var/lib/condor/execute/dir_29013 PWD=/home/xxxxxxxx/testjob/run _CONDOR_WRAPPER_ERROR_FILE=/var/lib/condor/execute/dir_29013/.job_wrapper_failure _CONDOR_SLOT=1 _CONDOR_ANCESTOR_29013=29014:1331399998:109633735 SHLVL=1 _CONDOR_MACHINE_AD=/var/lib/condor/execute/dir_29013/.machine.ad TMP=/var/lib/condor/execute/dir_29013 _CONDOR_ANCESTOR_26068=26072:1331391506:2264895056 _CONDOR_JOB_AD=/var/lib/condor/execute/dir_29013/.job.ad _CONDOR_JOB_IWD=/home/xxxxxxxx/testjob/run _=/usr/bin/env
Now the environment variables are defined.

Is this behavior intended? The manual seems to claim this should work for both, vanilla and standard universe.

Is there any other way to access ClassAds or enforce resource limits?