Phillip Ngan
Phillip Ngan

Reputation: 16106

Windows utility for consuming CPU

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.

Upvotes: 1

Views: 2960

Answers (6)

0x574F4F54
0x574F4F54

Reputation: 415

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

Upvotes: 0

leppie
leppie

Reputation: 117260

Prime95

Upvotes: 1

Sinan Ünür
Sinan Ünür

Reputation: 118148

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.

Upvotes: 0

Vladislav Rastrusny
Vladislav Rastrusny

Reputation: 29985

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

Upvotes: 0

Dave Barker
Dave Barker

Reputation: 6437

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

Upvotes: 0

paxdiablo
paxdiablo

Reputation: 881653

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.

Upvotes: 1

Related Questions