Goal

Create a power model of a system by correlating usage with overall power consumption.

Code

Repository:

svn co svn://128.32.132.96/powerProfile

Usage

1. Initialize

  • Ensure that ruby and python are installed. The following ruby modules must be installed: mysql, active_record, rubygems.
  • Launch io_driver using "sudo ./powerProfile/instruments/driver/start_driver"

2. Launch workload

./powerProfile/driver.rb <workload> <timeout>

  • <workload> is the name of a ruby file in "./powerProfile/workloads" (e.g. "busy_loop")
  • <timeout> is the time to run the workload before killing the process
  • the logs are saved in "./powerProfile/data/"

3. Load logs into database

./powerProfile/logs_to_db.rb

4. Load data into matlab

  • Download JDBC3 Postgresql Driver (http://jdbc.postgresql.org/download.html).
  • Edit [matlabroot '\toolbox\local\classpath.txt'] to add jdbc jar path.
  • use "./powerProfile/matlab/get_measurements.m" to load database into matlab.