/***************************************************************************** * * waiter_freq08.c 2013.11.05 Smythies * Now vary frequency at fixed load, still with consume. * * 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"); load = 85.0; /* 83 percent load */ duration = 10.0; /* each frequency will be for 10 seconds */ for(freq = 2.0; freq <= 250.05; freq = freq + 1){ /* */ printf("taskset -c 7 ../c/consume %lf %lf %lf\n", load, freq, duration); } /* endfor */ printf("\n"); } /* endprogram */