Jump to content
Sign in to follow this  
Kickassjoe

100 CPU Usage

Recommended Posts

Kickassjoe

I'm trying to get to 100 CPU usage the fastest / most consistent way I can. I want to be able to go back to "normal" CPU usage in a couple of seconds too.

I have no idea where to start on this, except the fact that I need a loop.

What functions are best for taking up CPU?


What goes around comes around... Payback's a bitch.

Share this post


Link to post
Share on other sites
_Kurt

Try:

While 1
WEnd

Kurt

Edited by _Kurt

Awaiting Diablo III..

Share this post


Link to post
Share on other sites
SkinnyWhiteGuy

This idea intrigued me, so I had a go at doing this. I needed a CPU stress tester the other day, and as odd as it was, I couldn't find one. So, based on your loop theory, an idea stuck me.

#include <GUIConstants.au3>
Global $Sleep = True
Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("CPU", 123, 92, 537, 372)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
$Button1 = GUICtrlCreateButton("Up", 24, 16, 75, 25, 0)
GUICtrlSetOnEvent(-1, "Button1Click")
$Button2 = GUICtrlCreateButton("Down", 24, 48, 75, 25, 0)
GUICtrlSetOnEvent(-1, "Button2Click")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    If $Sleep Then Sleep(100)
WEnd

Func Button1Click()
    $Sleep = False
EndFunc
Func Button2Click()
    $Sleep = True
EndFunc
Func Form1Close()
    Exit
EndFunc

Works like a charm on my computer, though only tests one core (i.e. my cpu went "up" to only 50%), but should be possible to do what you want with a little tweaking. Have fun with it.

Share this post


Link to post
Share on other sites
Kickassjoe

A single loop only gets me to 50 CPU...


What goes around comes around... Payback's a bitch.

Share this post


Link to post
Share on other sites
Demonic

Maybe run two or more instances of the same script?

Share this post


Link to post
Share on other sites
FireLord

A single loop only gets me to 50 CPU...

Gets me to 100...


[center]See the Helpfile[/center]
While Alive()
	 DrinkWine();
}
[center][/center]

Share this post


Link to post
Share on other sites
HeffeD

A single loop only gets me to 50 CPU...

Sounds like you have a dual core processor.

Share this post


Link to post
Share on other sites
Kickassjoe

oh yea, forgot to mention that I have a dual core, 4600+ AMD Athlon 64 X2

I'll try that weapon


What goes around comes around... Payback's a bitch.

Share this post


Link to post
Share on other sites
DW1

why when setting the affinity to use both cores, will the cpu still only max out to 50? due to no multithreading?

Share this post


Link to post
Share on other sites
HeffeD

why when setting the affinity to use both cores, will the cpu still only max out to 50? due to no multithreading?

Yes. The application must be written to share data between processors. 50% CPU usage on a dual core system means that one core is running at 100%.

Share this post


Link to post
Share on other sites
gauss5546

Prime95 takes way too long. If you want something updated and way faster to check that your cpu is stable then checkout IntelBurn.

http://downloads.guru3d.com/IntelBurnTest-...nload-2047.html

It will put your cpu at 100% better than Prime95 could.

Be careful though when you use it cause this program CAN OVERHEAT YOUR PROCESSOR!

As for going back to normal in just a few seconds you can click the "cancel" button at any time :mellow:

On a side note...if you could have AutoIt use Linpack then you could make your own device to put your cpu at 100%.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×