The first will consume one CPU by spinning around and
doing md5sum of the memory. The later will do this on
all of the CPUs.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
KERNEL vmlinuz
APPEND initrd=initramf.gz console=ttyS0,115200 test=net nofb
+LABEL One-CPU burn
+ MENU LABEL One-CPU
+ KERNEL vmlinuz
+ APPEND initrd=initramf.gz console=ttyS0,115200 test=cpu-low nofb
+
+LABEL All-CPU burn
+ MENU LABEL All-CPU
+ KERNEL vmlinuz
+ APPEND initrd=initramf.gz console=ttyS0,115200 test=cpu-high nofb
+
+
LABEL Static Network test
MENU LABEL Static Network test
KERNEL vmlinuz
while (true); do dfbtest_fillrect; done &
NOFB="yes"
;;
+ cpu-low)
+ while (true); do md5sum /dev/mem; done &
+ ;;
+ cpu-high)
+ echo -n "Launching CPU burners for $NR_CPUS"
+ for cpu in `seq 1 $NR_CPUS`
+ do
+ echo "while (true); do md5sum /dev/mem; done" > /tmp/cpu$cpu
+ chmod 755 /tmp/cpu$cpu
+ echo -n "."
+ nohup bash /tmp/cpu$cpu 1>/dev/null 2>/dev/null &
+ done
+ echo "done!"
+ ;;
net)
netserver &
iperf -s -D -w 256000 &