Easy, Fast, Cheap Way to Generate CPU Load?
jsailor asks: "A large client and their engineering team will be evaluating cabinets and their ability to cool high density blade server deployments. Some of these systems can consume upward of 21 kW per rack and accordingly require a lot of airflow and/or liquid systems to cool. The systems actively monitor heat conditions, increase airflow rates, and can throttle CPU speeds if necessary. What we need is an easy, fast, and cheap way to run the 2-way and 4-way blades at or near peak CPU utilization for extended periods of time so thermal analysis can be performed. Ideally, we would be able to boot them off a CD and have some means of monitoring the CPU on each or even setting the level of CPU utilization we'd like them to run at. Please note that we do NOT need to simulate a real world application and disk and network access are not of much concern. While running your favorite compute-intensive project is a nice idea, we need something simple so I've come to the Slashdot community for assistance. What are your thoughts?"
CPU Burn-in and cpuburn
Mouse powered Chips, Open source Processors and Lego
Render something: repeatable, high CPU usage test with visible (and interesting) progress.
eskwayrd = m^2c^4
Fire off one of these per processor:
...]
> while true ; do openssl speed ; done
Doing md2 for 3s on 16 size blocks: 511846 md2's in 3.00s
Doing md2 for 3s on 64 size blocks: 278228 md2's in 3.00s
Doing md2 for 3s on 256 size blocks: 98836 md2's in 3.00s
Doing md2 for 3s on 1024 size blocks: 27645 md2's in 3.00s
Doing md2 for 3s on 8192 size blocks: 3574 md2's in 3.01s
[... continues
-molo
Using your sig line to advertise for friends is lame.
Prime95. Available for numerous OSs.
<!-- DHTML / JavaScript menu, popup tooltip, Ajax scripts -->
There's an ISO circulating the net, called Hiren's Boot Disk. It has a lot of utilities for diagnosing and fixing nearly any PC. The only big problem with it is that it's probably less than legal - it has rescue versions of programs such as Partition Magic, Norton Antivirus, etc. It has copies of different burn-in tests (CPU, memory, HD, you name it). Up to you if you want to try it.
And if you don't like that, you can try Knoppix bootable CD. It has (i think) multi-CPU support and you can most likely find something to consume a lot of CPU power, e.g. an endless shell script or two.
Did you know that "FTW" ("for the win") is a direct translation of "Sieg Heil"?
Every time I tried that in a bash shell, it would kill the shell after minute.
/bin/true ] ; do sh -c '`yes`' ; done
../bash/subst.c:4197: cannot reallocate 268435456 bytes (0 bytes allocated)"
So you might want to expand that to
while [
so when this happens:
"sh: xrealloc:
It just restarts it. (Hmm, the comment appears to be formatted correctly for the command).
Boot Knoppix, open (BASH) shell, type:
/dev/null \; ; done ) &
for cpu in 1 2 3 4; do
( while true; do true; done ) &
done
If you want to exercise the disks a bit too, replace the middle line with:
( while true; do find / -type f -exec cp {}
Got time? Spend some of it coding or testing
So you need simple, fast, no-need-for-network CPU load?
/dev/urandom | gzip > /dev/null
/dev/zero to a blank HD (since you are booting from CD, destroying the contents of the HD won't crash the OS)
Boot any linux liveCD that supports your hardware, and run the following command:
cat
Sould eat one whole CPU and run forever. If you have an SMP machine, run one instance of that per CPU, and you should max out. The system should still remain responsive enough that you can terminate the processes at will, even though the CPU is at 100% usage.
I would try to pick a liveCD that does not bother starting X since that just adds to the boot time.
You may want to consider the heat generated by components other than the CPU. Hard drives put off a significant amount of heat, as do memory and video, and to a lesser extent network hardware.
To utilize a lot of memory as well as CPU, you might look for something like a prime-factoring program. (prime seives love to eat memory)
For video heat, try something like an unlimited framerate demo in Quake 2. (I think there is even a Linux port)
For network load, just use a ping utility that supports flood-ping and arbitrary payloads. Then floodping yourself or something on the LAN with huge packets.
For hard drive heat, you could just dd
That title says it. It's bash syntax. Will give you about 100% CPU utilization on Linux. Run several instances at once to load more CPU's. (while true; do true; done) & (while true; do true; done) & (while true; do true; done) & Since true is /bin/true, each iteration forks twice, which means zero-filling at least a few pages of memory per iteration, which recent Linux AFAIK does with SIMD instructions where possible (someone correct me if that's not correct), so that actually loads more of the CPU core than one would think at first.
Software should be free as in speech, but if we also get some free beer, all the better.
- Minimal linux distribution running from a bootable cdrom or via PXE.
.
- Uses of some utitlities like: stress, cpuburn, hddtemp, lm_sensors, smartmontools
- Dedicated to users who want to test their systems entirely on high load and monitoring their health.
http://www.stresslinux.org/
There's a software package called 'stress' that should fill your needs nicely.
http://weather.ou.edu/~apw/projects/stress/
I use it at work for testing all of our servers. You have the option of testing CPU, Memory, IO, or VM, and it will most certainly put a heavy load on the server.
-What have you contributed lately?
Note: do {} while(1); is NOT a good way
Granted, it's 100% BUT it doesn't stress the heat generators of the CP (namely the ALU/FPU)
burnp6 (google for it)
Prime95 (stress test, Linux versions available, runs off command line)
or other alternatives: like the gzip one
how long until