CPU stress image v2
I have compiled a new kernel (v2.6.27) with the help of Patrick Verner (author of Parted Magic). It is pretty small (<1MiB). All keyboards should work now.
Busybox is upgraded to 1.13.1.
Added a
cmdhelpinfo parameter, so you can specify at the isolinux commandline for which program you want to display the help text. See the README.txt for more details.
Added a
cmdstress parameter, so you can specify at the isolinux commandline which parameters you want to pass to the stress program. See the README.txt and the help of stress for more details.
I have added
noapic to the APPEND line, to solve the problem, that the cpustress image wasn't bootable on certain hardware.
I added a
delay of 30 seconds after displaying the following text, so that there is time enough to read the text (if you press any key, it will continue booting without waiting 30 seconds).
I have also added a
menu: type 'menu' inside the terminal to run it.
If you see the following in the
README.txt:
Code:
APPEND initrd=/ubcd/boot/cpustres/initrd.gz root=/dev/ram0
ramdisk_size=12000 noapic ubcdcmd=
you have to put it on 1 line, like this:
Code:
APPEND initrd=/ubcd/boot/cpustres/initrd.gz root=/dev/ram0 ramdisk_size=12000 noapic ubcdcmd=
Content of the README.txt:Code:
CPUstress image - version 2:
============================
Made by Gert Hulselmans.
Released under the GNU General Public License, version 2.
Last edited on 2 December 2008.
Content of this package:
_________________________
./build.tar ==> tar archive that contains the files that you need to rebuild the image and the kernel
./bzImage ==> kernel image
./gpl-2.0.txt ==> GNU General Public License, version 2
./help/ ==> contains help texts for some programs (also available in the image itself)
./initrd.gz ==> initrd
./README.txt ==> this readme file
Content of the ./build.tar archive:
____________________________________
./busybox-config/
.config ==> configfile to configure busybox
./cpustress_build/ ==> contains all files which will be packed in the initrd
./kernel-config/
.config ==> configfile to configure the kernel
./mnt/ ==> directory where the initrd image gets mounted while building
./build ==> build script to build the image
How to start?
_____________
Copy bzImage and initrd.gz to ./ubcd/boot/cpustres/ of your extracted UBCD iso.
(Don't use 'cpustress', isolinux only can handle 8 + 3 character filenames!)
Windows:
--------
e.g.: If you have extracted UBCD to c:\ubcd-extract\, this place is:
c:\ubcd-extract\ubcd\boot\cpustres\
Linux:
------
e.g.: If you have extracted UBCD to ~/ubcd-extract/, this place is:
~/ubcd-extract/ubcd/boot/cpustres/
How to edit the CPUstress image?
________________________________
Unpack the cpustress-2.7z archive (you probably already did this, else you couln't read this README.
$ mkdir cpustress-v2
$ cd cpustress-v2
$ 7z x "./path/to/file/cpustress-v2.7z"
extract the ./build tar archive
$ tar xvf build.tar
Become root (use 'su root' to become root or prefix the following commands with 'sudo') and execute
the following commands as root to create the necessary device nodes.
$ mknod ./cpustress_build/dev/console c 4 0
$ mknod ./cpustress_build/dev/null c 1 3
$ mknod ./cpustress_build/dev/ram0 b 1 0
Now you can edit the files in ./cpustress_build/ and remaster the initrd.gz with the ./build script.
You have to run the ./build script as root user or with sudo.
./cpustress_build/usr/local/bin/ (/usr/local/bin/ directory in the image) contains the cpustress
specific programs, like cpuburn, cpuinfo, helpinfo, menu, mprime, stress and stresscpu2.
./cpustress_build/opt/ (/opt/ directory in the image) directory contains some help files and some
cpustress specific programs.
Contents of the isolinux config files:
______________________________________
############################################################
# REMARK: All APPEND stuff should be on 1 line. #
# For readability reasons it is placed on 2 lines. #
############################################################
CPU Burn-in v1.00: cpuburn
------------------
Run cpuburn without time parameter (it will run cpuburn-in for 10080
minutes (= 7 days)).
KERNEL /ubcd/boot/cpustres/bzImage
APPEND initrd=/ubcd/boot/cpustres/initrd.gz root=/dev/ram0
ramdisk_size=12000 noapic ubcdcmd=cpuburn
Run cpuburn with a time parameter:
eg. Run cpuburn for 10 days.
KERNEL /ubcd/boot/cpustres/bzImage
APPEND initrd=/ubcd/boot/cpustres/initrd.gz root=/dev/ram0
ramdisk_size=12000 noapic ubcdcmd=cpuburn days=10
eg. Run cpuburn for 10 hours.
KERNEL /ubcd/boot/cpustres/bzImage
APPEND initrd=/ubcd/boot/cpustres/initrd.gz root=/dev/ram0
ramdisk_size=12000 noapic ubcdcmd=cpuburn hours=10
eg. Run cpuburn for 10 minutes.
KERNEL /ubcd/boot/cpustres/bzImage
APPEND initrd=/ubcd/boot/cpustres/initrd.gz root=/dev/ram0
ramdisk_size=12000 noapic ubcdcmd=cpuburn minutes=10
If those parameters are all provided to the APPEND command of the isolinux
config, the run time will be determined by the first value of the time duration
which will be searched in the following order: days > hours > minutes.
So if 'minutes=100000000' and 'days=10' is found, the run time will be set to
14400 minutes (= 10 days).
CPUinfo v1.00: cpuinfo
--------------
The following isolinux entry will run CPUinfo:
KERNEL /ubcd/boot/cpustres/bzImage
APPEND initrd=/ubcd/boot/cpustres/initrd.gz root=/dev/ram0
ramdisk_size=12000 noapic ubcdcmd=cpuinfo
Helpinfo: helpinfo
---------
The following isolinux entry will run Helpinfo:
KERNEL /ubcd/boot/cpustres/bzImage
APPEND initrd=/ubcd/boot/cpustres/initrd.gz root=/dev/ram0
ramdisk_size=12000 noapic ubcdcmd=helpinfo
The following isolinux entry will run Helpinfo for cpuburn:
KERNEL /ubcd/boot/cpustres/bzImage
APPEND initrd=/ubcd/boot/cpustres/initrd.gz root=/dev/ram0
ramdisk_size=12000 noapic ubcdcmd=helpinfo cmdhelpinfo=cpuburn
You can change the cmdhelpinfo parameter to:
- cpuburn
- cpuinfo
- helpinfo
- mprime
- stress
- stresscpu2
Menu: menu
-----
The following isolinux entry will display the menu.
KERNEL /ubcd/boot/cpustres/bzImage
APPEND initrd=/ubcd/boot/cpustres/initrd.gz root=/dev/ram0
ramdisk_size=12000 noapic ubcdcmd=menu
Mersenne Prime Torture test: mprime
----------------------------
The following isolinux entry will prompt to ask which version of mprime you want to run.
KERNEL /ubcd/boot/cpustres/bzImage
APPEND initrd=/ubcd/boot/cpustres/initrd.gz root=/dev/ram0
ramdisk_size=12000 noapic ubcdcmd=mprime
If you want to run a specific version of mprime, when you boot the image, use:
KERNEL /ubcd/boot/cpustres/bzImage
APPEND initrd=/ubcd/boot/cpustres/initrd.gz root=/dev/ram0
ramdisk_size=12000 noapic ubcdcmd=mprime23
This will start 'Mersenne Prime 23.5.2'.
KERNEL /ubcd/boot/cpustres/bzImage
APPEND initrd=/ubcd/boot/cpustres/initrd.gz root=/dev/ram0
ramdisk_size=12000 noapic ubcdcmd=mprime24
This will start 'Mersenne Prime 24.14.2'.
Stress v1.0.0: stress
--------------
The following isolinux entry will run stress (will display the help text).
KERNEL /ubcd/boot/cpustres/bzImage
APPEND initrd=/ubcd/boot/cpustres/initrd.gz root=/dev/ram0
ramdisk_size=12000 noapic ubcdcmd=stress
If you want to run a stress with specific parameters, when you boot the image,
use something similar to:
KERNEL /ubcd/boot/cpustres/bzImage
APPEND initrd=/ubcd/boot/cpustres/initrd.gz root=/dev/ram0
ramdisk_size=12000 noapic ubcdcmd=stress cmdstress="--quiet -c 1k"
The cmdstress parameter contains the options that you want to pass to stress.
CPU stress tester 2.0: stresscpu2
----------------------
The following isolinux entry will run stresscpu2 (will display the help text).
KERNEL /ubcd/boot/cpustres/bzImage
APPEND initrd=/ubcd/boot/cpustres/initrd.gz root=/dev/ram0
ramdisk_size=12000 noapic ubcdcmd=stresscpu2
Thanks:
_______
Thanks go to the following persons:
* deadite: for testing my first cpustress image, for revealing the booting problem
on some machines, for revealing that USB and wireless keyboards didn't work
with the first version and for correcting the help files.
* StopSpazzing: for testing the second version of my cpustress image with an USB keyboard.
* Patrick Verner: for compiling a minimal kernel that enables support for USB and wireless
keyboards and for solving some other problems that I had.
* alm: for discovering the 'FATAL ERROR: Writing to temp file' bug with mprime.
Contact:
________
http://www.ultimatebootcd.com/forums/viewtopic.php?t=1476
Ask for Icecube ;-).
Some additional help: run 'helpinfo' inside the cpustress image to show it.
Code:
'helpinfo' displays the help text in such a way so that you can easily navigate
through it.
Use '<SPACE>', '<PageUp>', '<PageDown>', '<Up>' and '<Down>' to navigate
through the text. Press 'q' to quit 'helpinfo'.
Some general commands for all programs:
To reboot, press: '<Ctrl> + <Alt> + <Del>'
To quit a program, press: '<Ctrl> + C' or 'q'
To switch to another virtual terminal, press: '<Alt> + <Left/Right>'
'top' is usefull program to see the percentage of processing power used by a
specific program. When you run a CPU stress test, you will see that the
total persentage of the processing power is 100%.
To quit 'top', you have to press 'q' or '<Ctrl> + C'.
By typing 'menu' at the terminal window, you will get a menu from which you can select the following programs:
- CPU Burn-in v1.00 (cpuburn)
- CPUinfo v1.00 (cpuinfo)
- Helpinfo (helpinfo)
- Mersenne Prime v23.5.2 (mprime 23)
- Mersenne Prime v24.14.2 (mprime 24)
- Stress v1.0.0 (stress)
- CPU stress tester 2.0 (stresscpu2)
Help is available for the following executables:
* CPU stress and info tools:
- CPU Burn-in v1.00 (cpuburn)
- CPUinfo v1.00 (cpuinfo)
- Helpinfo (helpinfo)
- Mersenne Prime (mprime)
- Stress v1.0.0 (stress)
- CPU stress tester 2.0 (stresscpu2)
If you want help for 'CPU Burn-in v1.00'.
Run 'helpinfo cpuburn' in the terminal.
Download location:http://ubcd.partedmagic.com/downloads/cpustress/cpustress-v2.7zUnpack it with 7zip, winrar, ...
You can check if the file is downloaded correctly with the md5 hash:
http://ubcd.partedmagic.com/downloads/cpustress/md5sum.txt* For UBCD50: Place
bzImage and
initrd.gz in
/ubcd/boot/cpustres/. You can delete
/ubcd/boot/cpustres (old kernel).
* For UBCD411: Place
bzImage and
initrd.gz in
/boot/cpustres.
You have to change /ubcd/boot/cpustres/bzImage to /boot/cpustres/bzImage and initrd=/ubcd/boot/cpustres/initrd.gz to initrd=/boot/cpustres/initrd.gz in the above given isolinux config examples.
@ Victor:
Set the standard mprime version to Mersenne Prime v24.14.2.
Code:
KERNEL /ubcd/boot/cpustres/bzImage
APPEND initrd=/ubcd/boot/cpustres/initrd.gz root=/dev/ram0
ramdisk_size=12000 noapic ubcdcmd=mprime24
Mention the 'cmdstress=' option for 'stress' in the help text for stress.
The 'helpinfo' and 'menu' don't necessarily need an entry in the isolinux config file. I added it in the hope that it would be useful for somebody.
Big thanks, go to Patrick Verner, for compiling a minimal kernel and helping me solve some problems with the CPUimage..
Also thanks to StopSpazzing for testing the image with an USB keyboard.