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

Re: [HTCondor-users] limiting number of core used



What is the proper way to limit the number of cores condor will use?

If you use NUM_CPUS, you'll have more flexibility in how you configure your slots. However, regardless of whether you set NUM_SLOTS or NUM_CPUS, HTCondor will only /assign/ that number of cores to jobs; limiting the number of cores actually /used/ by jobs is another matter entirely. I believe the current best practice is to use cgroups; see section 3.14.15 in the manual. Note that cgroups aren't hard limits; you'd have to assign cpu shares to whatever else on the system is using the other cores to make sure they get their share if there's contention.

- ToddM