Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Country Specific / Australian Mac Group / September 2004



Tip: Looking for answers? Try searching our database.

Something to load up the CPU

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ribfeast - 02 Sep 2004 03:19 GMT
Hi all, just wondering if you know of any free programs that will load up
the CPU as a stress test.  SETI@home was one thing I had in mind, but that
needs to connect to a server.  I want something I can carry around on CD
that will load up the CPUs in MacOS X.
Any suggestions?
Thanks for your input :)
woodsie - 02 Sep 2004 04:15 GMT
>Hi all, just wondering if you know of any free programs that will load up
>the CPU as a stress test.  SETI@home was one thing I had in mind, but that
>needs to connect to a server.  I want something I can carry around on CD
>that will load up the CPUs in MacOS X.
>Any suggestions?
>Thanks for your input :)

not sure if i understand u...but why dont give it a huge photoshop task?
Chris McDonald - 02 Sep 2004 04:41 GMT
>>Hi all, just wondering if you know of any free programs that will load up
>>the CPU as a stress test.  SETI@home was one thing I had in mind, but that
>>needs to connect to a server.  I want something I can carry around on CD
>>that will load up the CPUs in MacOS X.
>>Any suggestions?
>>Thanks for your input :)

>not sure if i understand u...but why dont give it a huge photoshop task?

Because a low percentage of Macs run PhotoShop?

A shellscript to do anything like continuously piping the contents of
all files, found recursively below /, to 'wc' ?
And if you want more load, run the same shellscript 20 times.

---
Chris.
woodsie - 02 Sep 2004 05:31 GMT
>>>Hi all, just wondering if you know of any free programs that will load up
>>>the CPU as a stress test.  SETI@home was one thing I had in mind, but that
[quoted text clipped - 6 lines]
>
>Because a low percentage of Macs run PhotoShop?

so?...he just wants to test the cpu.
Chris McDonald - 02 Sep 2004 06:51 GMT
>>>>Hi all, just wondering if you know of any free programs that will load up
>>>>the CPU as a stress test.  SETI@home was one thing I had in mind, but that
[quoted text clipped - 6 lines]
>>
>>Because a low percentage of Macs run PhotoShop?

>so?...he just wants to test the cpu.

I figured that the OP wanted "free programs" to "carry around on CD",
as that was what was asked, and my feeling is that copying the not-free
PhotoShop onto a CD and then running it on a variety of machines is
probably against the PhotoShop licensing conditions.

Signature

Chris.

woodsie - 02 Sep 2004 07:57 GMT
>>>>not sure if i understand u...but why dont give it a huge photoshop task?
>>>
[quoted text clipped - 6 lines]
>PhotoShop onto a CD and then running it on a variety of machines is
>probably against the PhotoShop licensing conditions.

i assumed he only wanted to test one machine.
Rifty - 02 Sep 2004 12:40 GMT
Get a tiny free program from Versiontracker called Memory Hog. It eats
RAM till there's no more left or till you stop it, and then you can
release the RAM. I don't know if that will do what you want, but it does
make the processor work once it gets beyond free RAM!

Rifty
Signature

Academic and Computing Help
http://rifty.net

Ribfeast - 02 Sep 2004 23:28 GMT
This could fit the bill!  I'll give it a go, thanks heaps! :)

On 2/9/04 9:40 PM, in article 1gji956.1ap01jg1f0jqpsN%rifty@tpg.com.au,

> Get a tiny free program from Versiontracker called Memory Hog. It eats
> RAM till there's no more left or till you stop it, and then you can
> release the RAM. I don't know if that will do what you want, but it does
> make the processor work once it gets beyond free RAM!
>
> Rifty
quietguy - 03 Sep 2004 00:46 GMT
What about one of those apps that calculate fibonnoni (spelling is not
my forte) numbers?  or maybe a spreadsheet calculating pi to millions of places

David

> >>>>Hi all, just wondering if you know of any free programs that will load up
> >>>>the CPU as a stress test.  SETI@home was one thing I had in mind, but that
[quoted text clipped - 16 lines]
> --
> Chris.

Signature

If we're not supposed to eat animals, why are they made out of meat?

David Angelovich - 03 Sep 2004 01:01 GMT
You mean Fibonacci...?

> What about one of those apps that calculate fibonnoni (spelling is not
> my forte) numbers?  or maybe a spreadsheet calculating pi to millions of
[quoted text clipped - 30 lines]
>> --
>> Chris.
quietguy - 03 Sep 2004 11:26 GMT
Yep, thems the ones I wus thinkin of

David

> You mean Fibonacci...?
Ribfeast - 02 Sep 2004 05:42 GMT
Good suggestion, I'm not a unix head though :(  What exactly would I type in
the terminal to make this happen?
Thanks :)

On 2/9/04 1:41 PM, in article ch64od$124$1@enyo.uwa.edu.au, "Chris McDonald"
<chris@csse.uwa.edu.au> wrote:

>>> Hi all, just wondering if you know of any free programs that will load up
>>> the CPU as a stress test.  SETI@home was one thing I had in mind, but that
[quoted text clipped - 13 lines]
> ---
> Chris.
Ribfeast - 02 Sep 2004 05:41 GMT
Because I don't want to have to load photoshop.  I just want to stick a CD
into the client machine, double click something, and wait for it to crash
(if the CPU is faulty).

On 2/9/04 1:15 PM, in article
none-0209041315590001@c211-28-190-157.mckinn1.vic.optusnet.com.au, "woodsie"
<none@none.com> wrote:

>> Hi all, just wondering if you know of any free programs that will load up
>> the CPU as a stress test.  SETI@home was one thing I had in mind, but that
[quoted text clipped - 4 lines]
>
> not sure if i understand u...but why dont give it a huge photoshop task?
quietguy - 03 Sep 2004 00:49 GMT
Since you are dealing with 'clients' (and I presume charging them)
perhaps a testing app like Tech Tool Pro would be a good investment - it
tests lots of things, and you can charge for a comprehensive testing session

David

> Because I don't want to have to load photoshop.  I just want to stick a CD
> into the client machine, double click something, and wait for it to crash
> (if the CPU is faulty).
Ribfeast - 03 Sep 2004 03:31 GMT
I already have techtool, it's no good at finding CPU or RAM faults
unfortunately, the only thing it does effectively is hard drive repairs.

On 3/9/04 9:49 AM, in article
4137B1A5.932A9E44@REMOVE-TO-REPLYoptusnet.com.au, "quietguy"
<david1133@REMOVE-TO-REPLYoptusnet.com.au> wrote:

> Since you are dealing with 'clients' (and I presume charging them)
> perhaps a testing app like Tech Tool Pro would be a good investment - it
[quoted text clipped - 5 lines]
>> into the client machine, double click something, and wait for it to crash
>> (if the CPU is faulty).
David Angelovich - 02 Sep 2004 05:56 GMT
I have a C program that will calculate Pi to about 5 digits.... It takes
about a minute to run on my 800MHz G4 iBook.
But it has to be run from Terminal.

Just copy and paste the following into a text editor then save it as Pi.c

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

int main();
double createPi(long);

int main()
{
long double pi;
   pi = createPi(1000);
   printf("\n\n%lf\n", pi);

   printf("Processing time: %lf\n", (long double) (clock()/(long
double)CLOCKS_PER_SEC));

exit(0);
}

double createPi(long numtimes)
{
   long double numerator = 4.0;
   long double sum = 0;
   long double denominator;
   numtimes = 1000000000;

   for(denominator = 3; denominator <= ((numtimes * 2) + 1); denominator +=
4)
   {
       sum += (numerator / denominator);

       sum -= (numerator / (denominator + 2));
   }
   sum = 4 - sum;

   return sum;
}

Then compile and run it from Terminal by using:
~> gcc Pi.c
~> ./a.out

It will output the Pi figure it calculates, plus he amount of processing
time it took.

- David Angelovich

> Hi all, just wondering if you know of any free programs that will load up
> the CPU as a stress test.  SETI@home was one thing I had in mind, but that
> needs to connect to a server.  I want something I can carry around on CD
> that will load up the CPUs in MacOS X.
> Any suggestions?
> Thanks for your input :)
Ribfeast - 03 Sep 2004 01:17 GMT
Sounds like a good idea!  Any trick to make it calculate to more digits so I
can run it overnight?  Most CPU faults don't show up for quite some time.
Thanks man :)

On 2/9/04 2:56 PM, in article
4136a805$0$10615$afc38c87@news.optusnet.com.au, "David Angelovich"
<dangelovich@hotmail.com> wrote:

> I have a C program that will calculate Pi to about 5 digits.... It takes
> about a minute to run on my 800MHz G4 iBook.
[quoted text clipped - 56 lines]
>> Any suggestions?
>> Thanks for your input :)
David Angelovich - 04 Sep 2004 13:09 GMT
C doesn't seem to like calculating more digits.... It's a combination of my
code, and the limitation of the variables in C....

You can however make the code repeat several times with a simple loop:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

int main();
double createPi(long);

int main()
{
long double pi;
for(x=0; x<100 ;x++)
{
   pi = createPi(1000);
}
   printf("\n\n%lf\n", pi);

   printf("Processing time: %lf\n", (long double) (clock()/(long
double)CLOCKS_PER_SEC));

exit(0);
}

double createPi(long numtimes)
{
   long double numerator = 4.0;
   long double sum = 0;
   long double denominator;
   numtimes = 1000000000;

   for(denominator = 3; denominator <= ((numtimes * 2) + 1); denominator +=
4)
   {
       sum += (numerator / denominator);

       sum -= (numerator / (denominator + 2));
   }
   sum = 4 - sum;

   return sum;
}

The number 100 in:
for(x=0; x<100 ;x++)
Tells it how many times to repeat the calculation. Using this, you can
perhaps run the original code once and see how long it takes... Then
calculate how many times you would need to run the code in order to make it
run overnight.... eg. it take 74 seconds to run on my machine, so:
400 would make it run for about 8-9 hours... ON MY MACHINE.... It ill be
different for you....

This app. runs the same as the last one....

The important thing here, is this is only processing maths. If you are
trying to detect CPU related errors, it may not pick them up....
The CPU is a complex thing. Calculating Pi will only use certain parts of
the CPU - most likely the FPU in fact.... And any math related
components.... But some parts of the CPU instruction set relate only to for
example, multimedia, or audio processing etc... Which means these parts of
the CPU will be pretty much unused while my program is running.... So it's
not necessarily the best test.... I think a thorough benchmarking
application would do a much better job, since they generally test many
aspects of PC performance....

- David Angelovich

> Sounds like a good idea!  Any trick to make it calculate to more digits so
> I
[quoted text clipped - 68 lines]
>>> Any suggestions?
>>> Thanks for your input :)
Kwan Yeoh - 04 Sep 2004 14:06 GMT
> Sounds like a good idea!  Any trick to make it calculate to more digits so I
> can run it overnight?  Most CPU faults don't show up for quite some time.
> Thanks man :)

There are freeware programs that calculate pi to any number of digits
required. This could load the processor nicely overnight.

Signature

Please remove SpamMeNot to reply. I apologise for the necessary use
of this anti-spammation method.

Technicians - 05 Sep 2004 09:40 GMT
David,

Mebbe I'm Dumb (or don't just get your instructions)...

Exactly how do I run the C program from Terminal?

I tried entering

gcc Pi.c <return>

from a window with out results (unless you count a command not found
error message)

> I have a C program that will calculate Pi to about 5 digits.... It takes
> about a minute to run on my 800MHz G4 iBook.
[quoted text clipped - 56 lines]
>>Any suggestions?
>>Thanks for your input :)
David Angelovich - 05 Sep 2004 10:57 GMT
I forgot... You need to install the Developer Tools...
It's either on a CD that came with OS X, or can be installed from
Applications: Installers: Developer Tools: Developer.mpkg if OS X came with
your Mac....

- David Angelovich

> David,
>
[quoted text clipped - 70 lines]
>>>Any suggestions?
>>>Thanks for your input :)
Nikki - 05 Sep 2004 13:52 GMT
> I forgot... You need to install the Developer Tools...
> It's either on a CD that came with OS X, or can be installed from
[quoted text clipped - 77 lines]
> >>>Any suggestions?
> >>>Thanks for your input :)

In the Terminal (once you've installed the Developer Tools):

1) cd (change directory = folder) to where your code is. At this stage
code is just a text file (you can write it in emacs, or outside the
terminal in BBEdit, or even Textedit if you want) with a '.c'
extension, such as: 'filename.c'

2) leave emacs and compile filename.c into an executable thus:

gcc -o filename filename.c [press RTN]

3) then launch the (executable) program thus:

./filename [press RTN]

That's it. Apologies if I misunderstood and you knew this...

If you want to muck around, time-honoured tradition suggests you start
with this one. Create a file called hi.c with the following:

                                   
#include <stdio.h>
int main(void)
{
printf("Hello World\n");
return 0;
}

then (with the terminal in the same directory/folder as the file hi.c):

gcc -o hi hi.c [RTN]

then:

./hi [RTN]

and the conclusion is:

Hi is a whole lot easier than Pi

Now I'll go back to dribbling over my teddy if you don't mind...
David Angelovich - 06 Sep 2004 05:53 GMT
But I like Pi....

mmmmmm...... pi.....

>> I forgot... You need to install the Developer Tools...
>> It's either on a CD that came with OS X, or can be installed from
[quoted text clipped - 126 lines]
>
> Now I'll go back to dribbling over my teddy if you don't mind...
Ribfeast - 06 Sep 2004 08:17 GMT
Www.weebl.jolk.co.uk ;)

On 6/9/04 2:53 PM, in article
413bed36$0$32237$afc38c87@news.optusnet.com.au, "David Angelovich"
<dangelovich@hotmail.com> wrote:

> But I like Pi....
>
[quoted text clipped - 130 lines]
>>
>> Now I'll go back to dribbling over my teddy if you don't mind...
Nikki - 07 Sep 2004 14:26 GMT
> But I like Pi....
>
> mmmmmm...... pi.....

Staying HI will suit me .... (hey, pass that thing will you) ...

Nikki
witt - 09 Sep 2004 03:25 GMT
> Now I'll go back to dribbling over my teddy if you don't mind...

Settle down, Nikki...there are other groups for that :P
Robert Atkins - 02 Sep 2004 09:19 GMT
> needs to connect to a server.  I want something I can carry around on CD
> that will load up the CPUs in MacOS X.

Encode an AIFF file to AAC in iTunes. That'll have the machine running
flat-ish out.

Cheers, Robert.
Martin Crisp - 02 Sep 2004 09:46 GMT
> Hi all, just wondering if you know of any free programs that will load up
> the CPU as a stress test.  SETI@home was one thing I had in mind, but that
> needs to connect to a server.  I want something I can carry around on CD
> that will load up the CPUs in MacOS X.
> Any suggestions?
> Thanks for your input :)

POV-Ray, it has a built-in "Render Benchmark" command.

then renice it to -20

Should get you about 0% idle.

http://www.povray.org/

If you have machines fast enough to make that too short a test:
1) you should be shot ;-)
2) open the file instead (scenes/advanced/) and set your own
preferences for the output quality & size, and then render
manually.

Also, it's a Carbon app, so you can compare with OS 9 too...

Have Fun
Martin
Signature

aa #1792

Almost always SMASHed

Steve Jay - 03 Sep 2004 02:03 GMT
Truly serious suggestion: Garage Band. Just keep adding software
instrument tracks and fill 'em with the green coloured loops. My eMac
1Ghz busts and won't play reliably after about 11 or 12 software
instrument tracks, 8 if I get effects happy. This tool is a CPU hog if
ever there was one.

> Hi all, just wondering if you know of any free programs that will load up
> the CPU as a stress test.  SETI@home was one thing I had in mind, but that
> needs to connect to a server.  I want something I can carry around on CD
> that will load up the CPUs in MacOS X.
> Any suggestions?
> Thanks for your input :)
Ribfeast - 03 Sep 2004 03:32 GMT
Good suggestion :)  Still means I have to install something though, this
needs to just be a double-click off a CD ideally.

On 3/9/04 11:03 AM, in article
eccc0d79.0409021703.5a9d34db@posting.google.com, "Steve Jay"
<izzythesteve_diespammers@izzythedog.com> wrote:

> Truly serious suggestion: Garage Band. Just keep adding software
> instrument tracks and fill 'em with the green coloured loops. My eMac
[quoted text clipped - 8 lines]
>> Any suggestions?
>> Thanks for your input :)
quietguy - 03 Sep 2004 11:31 GMT
Thanks for the dope on Techtool - one more suggestion, what about a
small app written in basic - eg a=a=1 etc in a loop.  Should n't be too
hard to write and basics these days allow free standing apps to be made

David - who likes to think up ideas - some work - some don't - but the
challenge is good

> Good suggestion :)  Still means I have to install something though, this
> needs to just be a double-click off a CD ideally.
David Angelovich - 04 Sep 2004 13:12 GMT
Assignments don't use much CPU time... mostly RAM, and Memory Management
time, which nowadays seems to have individual controllers/processors....

- David Angelovich

> Thanks for the dope on Techtool - one more suggestion, what about a
> small app written in basic - eg a=a=1 etc in a loop.  Should n't be too
[quoted text clipped - 5 lines]
>> Good suggestion :)  Still means I have to install something though, this
>> needs to just be a double-click off a CD ideally.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.