Mac Clients

Status
Not open for further replies.
What's the best projects to take advantage of the Mac G5 & G4 systems? I have a dual 1.8 G5, three Mac Mini's (1.25GHz) and a PB 1.5. I'd like to run something (or somethings) that run well on them. I ran D2OL and my G5 was behind the P4 2.8 I had at work. I can run multiples if they play nice, as I'm away at work for 10 hours a day, so might as well have it do something helpful.
 

CanSpice

Ars Tribunus Angusticlavius
7,147
The best one is probably either of the distributed.net competitions. My 867MHz G4 outperforms my 3.0GHz P4 by nearly a factor of two. These projects are designed around the sort of integer math that the PowerPC chips excel at.

Just as an example, taking your 1.8GHz G5 and comparing it to your 2.8GHz P4, the G5 should get around 13,312,183.75 keys/sec (per CPU), and the P4 should get 4,863,495.85 keys/sec. These are on the RC5-72 contest; the OGR25 contest has similar benchmark rates.

The client can be downloaded from http://www.distributed.net/download/ -- and if you do choose to run it, make sure to join Team Beef Roast!

To join TBR, go to either its RC5-72 or OGR25 page, and click the "I want to join this team!" link down near the bottom.
 

riskin

Ars Praefectus
3,125
Subscriptor++
Are the Dnet clients really the only projects that shine on G4/G5 systems? Aside from Xgrid @ Stanford I can't think of any DC efforts that are as accommodating of Macs as x86 systems. Is this really the state of DC on the Mac?

My top priority for choosing a DC project is finding clients that are particularly well-suited to the hardware I want to use. I run D2OL on my AMD systems, run Prime95 on my P4 at work, etc. So Dnet seems to be set to get the most out of my new Dual 2.0 G5. I was just hoping that I could get this system working on projects that were a little less academic and more altruistic. Not that Prime95 is going to help cure cancer or anything, but cracking encryption through brute force isn't that interesting to me, and OGR is about as useful as a Mersenne prime, i.e. not terribly. At least Xgrid has a human element to it, but I'm not sure if the software is optimized to use Altivec or to take advantage of the G5's architecture. D2OL doesn't use any SIMD optimizations, but it is very well suited to AMD systems. While I prefer highly optimized DC clients like Prime95, a good second best is the overall "good fit" for the hardware in use.

Anyone have any insight?
 

CanSpice

Ars Tribunus Angusticlavius
7,147
Originally posted by IronBits:
Yes, and I'd like to know how well those G5 2GHz procs run it.


From the Client Speed Comparisons pages, a 2GHz G5 will do about 15 Mkeys/sec on RC5-72 and 19 Mnodes/sec on OGR. Compare this to a 3GHz P4 that'll do 5.4 Mkeys/sec and 12.2 Mnodes/sec. -- :) --

Originally posted by riskin:
OK, I'll give them a try this weekend. Which one do you want to see, RC5-72 or OGR? And is there a straightforward way to benchmark these?


Either would be good, the RC5-72 team probably needs the most help in the long-term but the OGR competition has the smaller timescale so more help now would be better.

You can benchmark them using "./dnetc -bench". "./dnetc -help" will give you a list of all the available commandline options, including a few different benchmark options.
 

riskin

Ars Praefectus
3,125
Subscriptor++
Code:
 distributed.net client for Mac OS X Copyright 1997-2005, distributed.net
RC5-72 PowerPC assembly by Malcolm Howell and Didier Levet
Enhancements for 604e CPUs by Roberto Ragusa
RC7-72 Altivec and OGR assembly by Didier Levet
Please visit http://www.distributed.net/ for up-to-date contest information.


dnetc v2.9010-495-CTR-05051512 for Mac OS X (Darwin 8.1.0).
Please provide the *entire* version descriptor when submitting bug reports.
The distributed.net bug report pages are at http://www.distributed.net/bugs/

[Jun 05 07:51:17 UTC] Automatic processor type detection found
                      a PowerPC 970 (G5) processor.
[Jun 05 07:51:17 UTC] RC5-72: using core #0 (MH 2-pipe).
[Jun 05 07:51:36 UTC] RC5-72: Benchmark for core #0 (MH 2-pipe)                
                      0.00:00:16.07 [4,489,609 keys/sec]
[Jun 05 07:51:36 UTC] RC5-72: using core #1 (KKS 2-pipe).
[Jun 05 07:51:55 UTC] RC5-72: Benchmark for core #1 (KKS 2-pipe)               
                      0.00:00:16.06 [4,870,152 keys/sec]
[Jun 05 07:51:55 UTC] RC5-72: using core #2 (KKS 604e).
[Jun 05 07:52:15 UTC] RC5-72: Benchmark for core #2 (KKS 604e)                 
                      0.00:00:16.05 [4,444,176 keys/sec]
[Jun 05 07:52:15 UTC] RC5-72: using core #3 (KKS 7400).
[Jun 05 07:52:33 UTC] RC5-72: Benchmark for core #3 (KKS 7400)                 
                      0.00:00:16.82 [12,509,452 keys/sec]
[Jun 05 07:52:33 UTC] RC5-72: using core #4 (KKS 7450).
[Jun 05 07:52:52 UTC] RC5-72: Benchmark for core #4 (KKS 7450)                 
                      0.00:00:16.48 [14,956,068 keys/sec]
[Jun 05 07:52:52 UTC] RC5-72: using core #5 (MH 1-pipe).
[Jun 05 07:53:11 UTC] RC5-72: Benchmark for core #5 (MH 1-pipe)                
                      0.00:00:16.39 [3,780,305 keys/sec]
[Jun 05 07:53:11 UTC] RC5-72: using core #6 (MH 1-pipe 604e).
[Jun 05 07:53:30 UTC] RC5-72: Benchmark for core #6 (MH 1-pipe 604e)           
                      0.00:00:16.08 [3,764,571 keys/sec]
[Jun 05 07:53:30 UTC] OGR-P2: using core #0 (KOGE 2.0 Scalar).
[Jun 05 07:53:48 UTC] OGR-P2: Benchmark for core #0 (KOGE 2.0 Scalar)          
                      0.00:00:16.25 [23,220,342 nodes/sec]
[Jun 05 07:53:48 UTC] OGR-P2: using core #1 (KOGE 2.0 Hybrid).
[Jun 05 07:54:07 UTC] OGR-P2: Benchmark for core #1 (KOGE 2.0 Hybrid)          
                      0.00:00:16.18 [33,359,399 nodes/sec]
Well, that's the benchmark results I'm getting from the latest pre-release client. The current release is about the same.

Something isn't right, however. Checking the client in Activity Monitor shows only 1 thread. The client should automatically use as many crunchers as there are CPUs. I've tried the default auto-detect setting, forcing 2 threads, even forcing more threads, but it always only runs one thread. If this is the case, then I'm only running at 50%. Annoying.

Any suggestions?
 

CanSpice

Ars Tribunus Angusticlavius
7,147
Yeah, that's kind of strange, but it looks like it's doing the right thing, given the numbers you've got there. My hyper-threaded P4 has two crunchers running, it says this when I start up:
Code:
[Jun 06 21:16:26 UTC] 2 crunchers ('a' and 'b') have been started.

Check to see if that's in there anywhere...

I think I just wouldn't worry about it, given your numbers blow away nearly anything else as it is. -- :) --
 

riskin

Ars Praefectus
3,125
Subscriptor++
I will try to get myself up and running for TBR this weekend. I may run two instances of the client and see if that makes any difference. Where am I most useful, in OGR or RC5? Where can I do the most good for the team?

CanSpice, nope, it says that only one cruncher is running. Perhaps two clients running will do the trick? I need to do some serious reading on how to best manage the dnet client on OSX.
 

riskin

Ars Praefectus
3,125
Subscriptor++
Does it make a difference to the team which project I run? You make a good point about running OGR until it is complete, but if the team needs my stats more on RC5 then I should throw my power there. Right now, like you, I'm running one instance of each.

Btw, I figured out the issue with the cunchers and threads. I was looking at the client during benchmarking and not actual crunching. Once I started doing real crunching the client spawned two threads and pegged both CPUs at 100%.

I'm not a fan of the CLI client for OSX. Are there any good GUI front ends for the client that you can recommend?

Also, what's the best crunch-o-meter setting? The default setting is confusing. Sometimes it shows RC5 progress, other times OGR, and the progress for each seems to be shown in different ways, so I never have an idea of where I am. What's the unit of measurement for the projects? What constitutes a "work unit?" (yes, I've read the faqs and I'm still unclear.)

[edit] It seems that even though I've specified two crunchers and specified one RC5 and one OGR core to run, that the client is running two RC5 crunchers for a period of time, then switching to OGR for two crunchers, and then back again. At least it appears so by looking at the progress in the terminal window. wtf is going on inside this client?

Lastly, i had to manually update my client with the dnet servers to return my results and get new data. I've been crunching for close to 72 hours nonstop, and the client apparently didn't update once. If it had, according to the faq, I would have been able to see my stats. Since I'm still not listed (and thus can't add my numbers to TBR) I can only assume there was no contact with the server until I manually did so. What's the best way to regularly update with the server? There seem to be several different ways to configure the client to do this, and I'm baffled by the choices.

Sorry for all the noob questions. -- :oops: --
 
I'll write more on this later if someone else doesn't beat me to it, but generally the defaults are just fine if you're not sure how to configure the client. Also, you're right about the client switching between OGR and RC5 periodicially. That's how it works by default. AFAIK, there's no way to tell the client that you want it to run OGR and RC5 simultaneously, with one thread for each project.

I believe the default is for OGR to run first, until it runs out of work units, and then for RC5 to work, until it runs out of work units. Once RC5 runs out of work units, the client will get new work units from the server and send the finished ones back to the server, and the process will repeat.
 

bayanne

Ars Scholae Palatinae
972
Originally posted by rcsheets:
.... AFAIK, there's no way to tell the client that you want it to run OGR and RC5 simultaneously, with one thread for each project.

No I don't think there is, so I create 2 folders and put the app in each, and then run each of them in seperate windows using the switch -numcpu 1 and that way you can configure one to run OGR and one RC5 and each chugs along on each project.
 

CanSpice

Ars Tribunus Angusticlavius
7,147
Originally posted by riskin:
Lastly, i had to manually update my client with the dnet servers to return my results and get new data. I've been crunching for close to 72 hours nonstop, and the client apparently didn't update once. If it had, according to the faq, I would have been able to see my stats. Since I'm still not listed (and thus can't add my numbers to TBR) I can only assume there was no contact with the server until I manually did so. What's the best way to regularly update with the server? There seem to be several different ways to configure the client to do this, and I'm baffled by the choices.

If you've got a permanent Internet connection or a dial-up account that you don't mind having the client connect automatically each time you complete a work unit, go into the configuration screen (./dnetc -config), select item 2, then 12, and set the string to be "RC5-72=1,OGR-P2=1". This tells the client to only keep one work unit for either contest on disk at a time. What'll happen is when your client finishes that work unit, it'll see that there aren't any more on disk, then it'll connect to dnetc's server to get a new one, sending the completed one back at the same time.
 
Status
Not open for further replies.