Hi there:
I have been trying to use the following line to user workstations to make sure that when they are not in use by the user(for more than an hour hand a half) add it to the farm. And kill the job/go back to owner mode when user start using the workstation.
Couple of problems:
- For some reason the workstation starts a job even though the user was away only for 15 minutes [but looking at condor_status -state show the KbdIdle right that the KbIdle was more that 540 minutes] - Is kbIdle number cumulative(condor_status -state)
- Sometime I see that CPU usage going through the roof and then it it stops ..?
How do other places implement this ..?
MINUTE = 60
HOUR = (60 * $(MINUTE))
StateTime = (CurrentTime - EnteredCurrentState)
ActivityTimer = (CurrentTime - EnteredCurrentActivity)
NonCondorLoadAvg = (LoadAvg - CondorLoadAvg)
BackgroundLoad = 0.3
HighLoad = 0.5
KeyboardBusy = KeyboardIdle < 5
CPU_Idle = $(NonCondorLoadAvg) <= $(BackgroundLoad)
CPU_Busy = $(NonCondorLoadAvg) >= $(HighLoad)
WANT_SUSPEND = False
WANT_VACATE = True
#Start the render on the defined slot if there has been no keyboard activity
START = $(CPU_Idle) && (KeyboardIdle > 5400) && (ConsoleIdle > 5400)
#When we see keyboard activity, try to nicely kill the job
PREEMPT = ((ConsoleIdle < 1 ) || (KeyboardIdle < 1 ))
MachineMaxVacateTime = 1
#Kill job
Kill = (( ConsoleIdle < 1 ) || ( KeyboardIdle < 1 ))
Thanks
/Biju