Merged in schedPolSwitchConfigFile (pull request #8)
SchedPolSwitchConfigFile Approved-by: Akash Kothawale <akothaw1@binghamton.edu>
This commit is contained in:
parent
b569bd3060
commit
b877d31cb8
6 changed files with 71 additions and 16 deletions
|
@ -20,6 +20,13 @@ type baseSchedPolicyState struct {
|
|||
SchedPolicyState
|
||||
// Keep track of the number of tasks that have been scheduled.
|
||||
numTasksScheduled int
|
||||
// Distribution of tasks that the scheduling policy is most appropriate for.
|
||||
// This distribution corresponds to the ratio of low power consuming tasks to
|
||||
// high power consuming tasks.
|
||||
TaskDistribution float64 `json:"taskDist"`
|
||||
// The average variance in cpu-share per task that this scheduling policy can cause.
|
||||
// Note: This number corresponds to a given workload.
|
||||
VarianceCpuSharePerTask float64 `json:"varCpuShare"`
|
||||
}
|
||||
|
||||
func (bsps *baseSchedPolicyState) switchIfNecessary(spc SchedPolicyContext) {
|
||||
|
|
Reference in a new issue