Windows utility for consuming CPU

2.8k views Asked by At

I'm looking for a windows utility to consume CPU at a specified percentage so that I can test my app under conditions of restricted processor resources.

I googled around and saw a reference to CPUGRAB.exe, but can't find a download location.

6

There are 6 answers

0
Dave Barker On BEST ANSWER

Max CPU will do some of what you want but doesn't have the percentage granularity.

0
Sinan Ünür On

On my Windows XP laptop, compiling bogdown.c:

int main(void) {
    int i;
    while ( 1 ) ++i;
    return 0;
}

w/o any optimizations and then starting two instances uses utilizes both cores to the max and makes starting any program or typing into the textbox on SO a chore.

If you want to make it harder for the OS to take away time slices from bogdown.exe, you can increase the priorities of the processes in Task Manager, but beware, your system may become very unresponsive.

If you want to simulate limited memory, calloc (not malloc) a gigabyte or two of memory in bogdown.exe.

Another alternative is to have at least a couple of programs encoding video while you test your app.

0
leppie On
0
paxdiablo On

Google for just cpugrab. There are cpugrab.zip and cpugrab.rar files all over the place (rapidshare, badongo, etc). They may or may not be legal, I can't comment on that.

0
Vladislav Rastrusny On

I beleive you need CPU Speed Adjuster. It is freeware unlike some others:

http://www.softpedia.com/get/Tweak/System-Tweak/CPU-Speed-Adjuster.shtml

0
0x574F4F54 On

I wrote an Open Source (MIT) replacement for CPUGrab.exe in C#. This came about due to my reluctance to rely on (sometimes) shady download sites purporting to have 'cpugrab.zip'. It seems to work pretty well for SimCopter on my Win98 VM. :)

The tool can be found here: CPUGrab.NET