For testing purposes I need to generate high CPU load on a Windows Server 2003. I cannot install any software but have to make do with what Windows provides.
What would be the best way to achieve that?
|
For testing purposes I need to generate high CPU load on a Windows Server 2003. I cannot install any software but have to make do with what Windows provides. What would be the best way to achieve that? |
||||
|
Uses 100% CPU time on all cores as long as it runs. It can also consume other resources (as the name implies). |
|||||
|
|
IntelBurnTest and Prime95 are known for doing just this. They don't really require installation, as they can be run by unpacking their respective zips, but it doesn't fulfill your "must be native" requirement. I'm an overclocker, and these are the tools I use to ensure absolute system stability, they will generate the utmost load from your computer. As for your want for it to be a native piece of software - windows doesn't really come with the tools to do such a thing, except for maybe the above batch file, which is going to be a mess to handle if it goes haywire. (Infinite loops can be messy.) |
|||||
|
|
A tight loop in VBS with no I/O will do it. You'll need as many processes as cores. The following will use 100% on my Win2k3 VM, or 50% on my dual-core host (100% if I launch 2)
You'll have to kill wscript.exe in the task manager to end it. |
|||
|
|
|
The following batch file does it:
However, if you have multiple cores, you have start multiple instances. To stop, press Ctrl+C in the console. |
||||
|
|
|
I usually open an Internet Explorer window for each logical CPU, navigate to http://www.fossiltoys.com/cpuload.html, and set 100% load. This doesn't require any installation, and can effectively generate 100% CPU load on a machine. |
|||
|
|
|
HyperPi (GUI to run SuperPi on multiple cores) can be run without installing just copy it to the server and run it from any location. Even on something fast you can load up all the cores for few hours doing say 16 simultaneous 32M place calculations. |
||||
|
|
|
The way most people do it is to run something that does a load of processing - I was recommended superpi, though hyperpi might work better for a modern system. Calculate absurdly large value of pi, and it'll effectively run the processor at full load. Alternatively you can run StressCPU which is based off folding@home If you need to keep high loads for longer periods of time, consider something like folding@home |
|||
|
|
|
Running
That could have your CPU running at 100%. Lines can be added/removed to adjust. |
|||||||
|
|
use the built-in "calc" to calculate 10000! (10000 factorial). Use two or three instances to max out a multicore |
|||||||
|
dir /s C:. Get 10 or so of those running at once and you get very high CPU use (70%+ across all cores of my i7-2600k) in addition to lots of disk I/O. Not perfect, but it gets the job done. – Amazed Mar 4 '12 at 10:59