Kickassjoe Posted November 18, 2007 Share Posted November 18, 2007 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 More sharing options...
_Kurt Posted November 18, 2007 Share Posted November 18, 2007 (edited) Try: While 1 WEnd Kurt Edited November 18, 2007 by _Kurt Awaiting Diablo III.. Link to comment Share on other sites More sharing options...
SkinnyWhiteGuy Posted November 18, 2007 Share Posted November 18, 2007 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 More sharing options...
Kickassjoe Posted November 18, 2007 Author Share Posted November 18, 2007 A single loop only gets me to 50 CPU... What goes around comes around... Payback's a bitch. Link to comment Share on other sites More sharing options...
Demonic Posted November 18, 2007 Share Posted November 18, 2007 Maybe run two or more instances of the same script? Link to comment Share on other sites More sharing options...
FireLord Posted November 18, 2007 Share Posted November 18, 2007 A single loop only gets me to 50 CPU...Gets me to 100... [center]See the Helpfile[/center] While Alive() DrinkWine(); }[center][/center] Link to comment Share on other sites More sharing options...
HeffeD Posted November 18, 2007 Share Posted November 18, 2007 A single loop only gets me to 50 CPU...Sounds like you have a dual core processor. Link to comment Share on other sites More sharing options...
weaponx Posted November 18, 2007 Share Posted November 18, 2007 You should just run Prime95. It will max out all 4 cores.http://www.softpedia.com/get/Others/Home-E...n/Prime95.shtml Link to comment Share on other sites More sharing options...
Kickassjoe Posted November 20, 2007 Author Share Posted November 20, 2007 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. Link to comment Share on other sites More sharing options...
DW1 Posted November 20, 2007 Share Posted November 20, 2007 why when setting the affinity to use both cores, will the cpu still only max out to 50? due to no multithreading? AutoIt3 Online Help Link to comment Share on other sites More sharing options...
HeffeD Posted November 20, 2007 Share Posted November 20, 2007 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 More sharing options...
gauss5546 Posted November 11, 2008 Share Posted November 11, 2008 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.htmlIt 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 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now