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

Re: [HTCondor-users] Taking action on job breaching scratch space limit

Please try

use POLICY : WANT_HOLD_IF (DISK_USAGE_EXCEEDED , 105, job exceeded requested disk)

 (This is without quotation marks around the error message)


From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of ervikrant06@xxxxxxxxx <ervikrant06@xxxxxxxxx>
Sent: Wednesday, April 7, 2021 3:00 PM
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: Re: [HTCondor-users] Taking action on job breaching scratch space limit
Thanks for inputs. 

Tomer, I tried your configuration, it doesn't work for me. On the worker node I can see the diskusage is 5GB and the amount of disk allocated to the job is 3GB. RequestDisk is 1GB. 

# condor_who -af RequestDisk diskusage disk
1000000 5120014 3133873
1000000 5120014 3133873

Modified following parameter also on both submit and worker node. Before this modification, it was showing me requestdisk value on the worker node always as 1. 


I am using condor version 8.5.8 which is old but it does seem to have support for policy as per condor_config_val use policy:want_hold_if. 

With condor 8.8.5 (newer) version using exact same configuration seeing following message in /var/log/condor/StartLog which is making startd dead. 

04/07/21 07:45:39 ERROR "Syntax error in WANT_HOLD_REASON _expression_: 'ifThenElse((DiskUsage =!= UNDEFINED && DiskUsage > RequestDisk), ""job exceeded requested disk"", UNDEFINED)'" at line 571 in file /slots/23/dir_1952943/userdir/.tmprZa7ap/BUILD/condor-8.8.5/src/condor_startd.V6/util.cpp

Thanks & Regards,
Vikrant Aggarwal

On Tue, Apr 6, 2021 at 8:22 PM <tomerp@xxxxxxxxxxx> wrote:
Hi Vikrant,

I'm using the following for the same purpose

DISK_USAGE_EXCEEDED = (JobUniverse !=13 && DiskUsage =!= UNDEFINED && DiskUsage > RequestDisk)
use POLICY : WANT_HOLD_IF (DISK_USAGE_EXCEEDED , 105, "job exceeded requested disk")


From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of ervikrant06@xxxxxxxxx <ervikrant06@xxxxxxxxx>
Sent: Tuesday, April 6, 2021 5:36 PM
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: [HTCondor-users] Taking action on job breaching scratch space limit
Hello Experts,

I am trying to take action on the job using more scratch space than allocated.  

CondorDiskSpace attribute is coming from the dynamic script which is called through condor cron. Script is included before putting this configuration. 

CondorDiskSpace = $(CondorDiskSpace:1024)
DiskPerCore =  $(CondorDiskSpace) / $(NUM_CPUS)
chunksdisk = ifThenElse( RequestDisk <= ($(DiskPerCore) * RequestCpus), quantize(RequestCpus, {1}), quantize(RequestDisk, {$(DiskPerCore)}) / $(DiskPerCore))
MODIFY_REQUEST_EXPR_REQUESTDISK = $(chunksdisk) * $(DiskPerCore)

Commented the last two lines in above configuration and added following to keep the test case simple. 


Confirmed from the output of condor_who -l that Disk and DiskUsage appears in output. However, still using scratch space more than allocated, the job keeps on running.  

DiskUsageBreach = (DiskUsage > Disk)
WANT_HOLD = ($(PREEMPT) || $(DiskUsageBreach))

How can we put the job on hold in this scenario once the job uses more disk space than allocated from scratch directory? 

Thanks & Regards,
Vikrant Aggarwal
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting

The archives can be found at: