blob: 7ab284ad2b0deee6205b62387557cf3d2b018b32 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/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
|