Scheduler now has a first fit algorithm based on memory, cpu, and watts. Watts need to be set by the user but should be calculated through heuristics. Framework now also works by having a set of tasks and launching them.
This commit is contained in:
parent
6b76e45d6d
commit
bc5e959ade
6 changed files with 142 additions and 83 deletions
2
pcp.go
2
pcp.go
|
@ -7,7 +7,7 @@ import (
|
|||
"os/exec"
|
||||
)
|
||||
|
||||
func main() {
|
||||
func PCP() {
|
||||
cmd := exec.Command("sh", "-c", "pmdumptext -m -l -o -d , -c config")
|
||||
stdout, err := os.Create("./output.txt")
|
||||
cmd.Stdout = stdout
|
||||
|
|
Reference in a new issue