Jump to content

100 CPU Usage


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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%.
Link to comment
Share on other sites

  • 11 months later...

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%.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...