/***************************************************************************** * * waiter_freq07.c 2014.04.30 Smythies * Reverse the load sweep from up to down. * * waiter_freq07.c 2013.11.05 Smythies * Use consume instead of waiter. * * waiter_freq06.c 2013.11.04 Smythies * increase the higher end. * * waiter_freq06.c 2013.10.23 Smythies * specfic for low load test. * * waiter_freq04.c 2012.06.10 Smythies * Mods as per changes to the waiter program. * * waiter_freq04.c 2012.05.07 Smythies * A program to build a script for use with the waiter program. * Everything is coded herein. Re-compile to change things. * This one sweeps the load for different numbers of processes. * *****************************************************************************/ #include #include #include #include void main(int argc, char **argv){ double load, freq, duration; int l; printf("#! /bin/bash\n"); freq = 200.0; /* 200 Hertz */ duration = 10.0; /* each load run will be for 10 seconds */ for(load = 99.0; load >= 0.49; load = load - 0.5){ /* for consume load is in percent */ // for(load = 0.5; load <= 99.1; load = load + 0.5){ /* for consume load is in percent */ printf("taskset -c 7 ../c/consume %lf %lf %lf\n", load, freq, duration); } /* endfor */ printf("\n"); } /* endprogram */