# PM Sched PM Sched is a user space scheduler that estimates the power consumption of individual processes and provides the ability to set a system power cap. ## Usage Before the scheduler is run for the first time, the model has to be trained. Data can be collected with the `b` flag and `power_predictor.py` uses the data to train the model. After that the scheduler can be executed. Launching the scheduler with the `p` flag will use perf to read out the performance counter instead of relying on our kernel module. `sudo ./power_sched -p` will start a socket in `/tmp/pm-sched`, which can be used to communicate with the scheduler. The socket supports the following commands ``` pid // get the estimated energy consumption for the process with the given PID and its process tree in Joule. list // lists all PIDs and their estimated power consumption. limit // set a system wide power cap in Watt. ```