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

Re: [HTCondor-users] Limit requested cpu cores and RAM

Hi Greg,

For us users working in python land, would this work?
>>> htcondor.params['NUM_CPUS'] = '6'
>>> htcondor.params['MEMORY'] = '2048'
>>> htcondor.reconfig()

I expect not, but am not sure what in the Interacting with Daemons tutorial is relevant to this task.


âââââââ Original Message âââââââ
On Monday, November 9th, 2020 at 5:16 PM, Greg Thain <gthain@xxxxxxxxxxx> wrote:

On 11/9/20 6:44 AM, Guilherme De Sousa wrote:



Iâve been searching through the mailing list and documentation for this and canât seem to find it..


By default, the condor startd will advertise all the memory and all the cores that it discovers on the system.  To override this, you set

NUM_CPUS = some_number


MEMORY = some_amount_of_memory _in_megabytes

And the startd will advertise those amounts instead.