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

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



For my current purposes its total amount of resources used by all jobs. I am running a personal pool on my laptop and don't want it to crash while testing code.

Thanks,
Matt

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


I guess the question is -- do you want to limit the amount of resources (memory & cpu) that any one job uses on the machine, or limit the total amount of resources used by all the jobs.

-greg

On 11/9/20 9:45 AM, mtwest2718 via HTCondor-users wrote:
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 theInteracting with Daemons tutorial is relevant to this task.

Cheers,
Matt

âââââââ 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:

Hi!

 

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

or

MEMORY = some_amount_of_memory _in_megabytes


And the startd will advertise those amounts instead.


-greg



_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/