Powercap policy and PCP config from commandline.
Added command line arguments corresponding to powercapping policy and pcp config file path.
This commit is contained in:
parent
b8f2248810
commit
c9d4e66236
4 changed files with 22 additions and 17 deletions
|
@ -17,8 +17,8 @@ import (
|
|||
func Start(quit chan struct{}, logging *bool, logMType chan elekLogDef.LogMessageType,
|
||||
logMsg chan string, pcpConfigFile string, s scheduler.Scheduler) {
|
||||
baseSchedRef := s.(*schedulers.BaseScheduler)
|
||||
const pcpCommand string = "pmdumptext -m -l -f '' -t 1.0 -d , -c "
|
||||
cmd := exec.Command("sh", "-c", pcpCommand, pcpConfigFile)
|
||||
var pcpCommand string = "pmdumptext -m -l -f '' -t 1.0 -d , -c " + pcpConfigFile
|
||||
cmd := exec.Command("sh", "-c", pcpCommand)
|
||||
cmd.SysProcAttr = &syscall.SysProcAttr{Setpgid: true}
|
||||
|
||||
pipe, err := cmd.StdoutPipe()
|
||||
|
|
Reference in a new issue