diff options
Diffstat (limited to 'Master/Masterarbeit/src/common/cpu_load.sh')
| -rw-r--r-- | Master/Masterarbeit/src/common/cpu_load.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Master/Masterarbeit/src/common/cpu_load.sh b/Master/Masterarbeit/src/common/cpu_load.sh new file mode 100644 index 0000000..7ab284a --- /dev/null +++ b/Master/Masterarbeit/src/common/cpu_load.sh @@ -0,0 +1,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
|
