#!/bin/dash # Edit this file for your paths and your processor # # With the intel pstate driver and a i7-2600K processor and turbo on # the max load is about 238 percent, but we do not go that close # For a Haswell processor the max load is about 500 percent, but # suggest about 425 percent. echo "Intel new Pstate Energy loop. Frequency Doug Smythies 2014.07.14" COUNTER=5 while [ $COUNTER -lt 206 ]; do # a step size of 2 gives enough data points for i7-2600K # a step size of 5 is suggested for a haswell processor # don't force CPU, let the scheduler decide sudo ./turbostat -S -J ../c/consume1 $COUNTER 101 10 # force CPU affinity # sudo ./turbostat -S -J taskset -c 7 ../c/consume1 $COUNTER 101 10 COUNTER=$((COUNTER+2)) done