Zak,

This may not be your main issue and I haven't done enough testing with my own 
code to know if it's even my main issue, but I've found that things appear to 
go better for me on multicore machines if I invoke java with the 
-XX:+UseParallelGC option.

 -Lee

On May 30, 2010, at 12:31 PM, Zak Wilson wrote:

> I'm running Clojure code on an early Mac Pro with OS X 10.5 and Java
> 1.6. It has two dual-core Xeon 5150s and 5GB of memory.
> 
> I'm not getting the performance I expected despite top reporting 390%
> steady-state CPU use, so I wrote some trivial tests to see if I was
> actually getting the benefit of all four cores. It runs about twice as
> fast with four cores as with one, and only slightly faster with three
> or four than with two. This code being trivially parallel, I was
> expecting nearly 4x the speed with four cores.
> 
> Here are the tests and results: http://gist.github.com/418631
> 
> I'd appreciate it if anybody could
> 
> a. point out any problems with my code that might be hurting
> performance
> b. try this out on your own 3+ core machine and see if you have better
> results

--
Lee Spector, Professor of Computer Science
School of Cognitive Science, Hampshire College
893 West Street, Amherst, MA 01002-3359
lspec...@hampshire.edu, http://hampshire.edu/lspector/
Phone: 413-559-5352, Fax: 413-559-5438

Check out Genetic Programming and Evolvable Machines:
http://www.springer.com/10710 - http://gpemjournal.blogspot.com/

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to