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

Re: [Condor-users] limiting memory use of condor jobs

+JobMemoryLimit = 500000
+JobDiskLimit = 10000
+JobTimeLimit = 3600
+JobCpuLimit = 1800
periodic_remove = DiskUsage > JobDiskLimit || ImageSize > JobMemoryLimit || RemoteWallClockTime > JobTimeLimit || RemoteUserCpu > JobCpuLimit

will remove jobs that either
1) use more than 10 MB of disk
2) use more than 500 MB of memory
3) run for more than an hour
4) use more than 30 minutes of CPU

I made (3) and (4) different just for fun, but for an application with a lot of disk reading or
networking it could  make sense.

Cheers, Alex

Hans Wenzel wrote:

Dear all

Is there a way to periodic_remove a Job once the memory use is above some threshold?
like it is done in the diskusage example below?

thanks in advance


In the job requirements
+JobDiskLimit = 10000
periodic_remove = DiskUsage > JobDiskLimit
should prevent the job from using more than e.g. 10 MB in
the session directory. I wouldn't know how to get Condor to
enforce this for a particular file - you would probably have to
build a command wrapper and check the file size in a separate
process if this is important.

Cheers, Alex

Condor-users mailing list