1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-12 23:36:44 +00:00
This commit is contained in:
2020-05-03 11:19:51 +08:00
parent 0751608eb2
commit a4c75a7065

View File

@@ -129,6 +129,7 @@ func (scheduler *SchedulerFair) Start() {
} else {
cnt *= 13
}
log.Info(cnt, reserved, pool.TotalGPU, scheduler.UsingGPU)
if cnt+(scheduler.allocatingGPU)*13 > (pool.TotalGPU-scheduler.UsingGPU-reserved)*10 {
scheduler.schedulingMu.Lock()
scheduler.schedulingJobsCnt--
@@ -178,6 +179,7 @@ func (scheduler *SchedulerFair) Start() {
if len(t) == 0 || !InstanceOfGroupManager().groups[t[0].Group].Reserved {
continue
}
log.Info(scheduler.queueUsingGPU)
scheduler.queuesUsingGPUMu.Lock()
if cnt, ok := scheduler.queuesSchedulingCnt[t[0].Group]; ok && cnt > 0 {
scheduler.queuesUsingGPUMu.Unlock()
@@ -748,7 +750,7 @@ func (scheduler *SchedulerFair) UpdateNextQueue() {
}
scheduler.nextQueue = next
scheduler.queueMu.Unlock()
log.Debug("updateNextQueue ->", next)
log.Info("updateNextQueue ->", next)
}
func (scheduler *SchedulerFair) Attach(GPU string, job string) {