#!/bin/bash # # file: cpu_load.sh # date: 20.12.2011 # author: S. Eisenhauer # purpose: Generate CPU load by generating random numbers and IO load by writing to a file at high priority # # warning: Must be called with root privileges for negative nice values (-20 means highest priority) # nice -n -20 dd if=/dev/urandom of=../data/urandom