#!/bin/bash
#
# Script for exercising the two CPUs.
#
# It is meant for measuring the runtime of a PC with 2 CPUs under maximum CPU
# load.
#
# If you abort this script, you will need to remove all running load processes
# manually, e.g. by calling:
#
#   kilall cat
# 
# Author:   Roland Kluge
# Date:     26 Jan 2011
#

filename="./"$$"_max_cpu_load.txt"

# Generates CPU load on both CPUs
cat /dev/urandom > /dev/null &
cat /dev/urandom > /dev/null &

while [ true ];
do
	echo $(date)" "$(acpi) >>  $filename
	sleep 60
done

