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

Re: [HTCondor-users] RANK question; slots unclaimed on a single computer

On 8/7/2014 5:03 PM, Ralph Finch wrote:
In the condor submit file, I want jobs to go to desktop computers as a
function of both computer speed and number of cores left
something like

RANK = Kflops * $(NumberOfCoresUnclaimed)

Curious, why do you want to rank based on number of cores left? Is the idea that you want to fill machines breadth first (i.e. to run eight jobs, you want to use one core on eight machines instead of eight cores on one machine) ? If you want run breadth first with static slots, perhaps you could just do something really simple like

  RANK = 10000 - SlotID

so that you prefer to use Slot1 on all machines, then Slot2 on all machines, etc. You could even stick this into NEGOTIATOR_POST_JOB_RANK so it happens for all jobs, without users having to put anything in their submit files...

My question is, how do I get the number of unclaimed cores in a single

I think Ben answered that nicely, assuming you are using static slots of course.