On Nov 15, 2010, at 11:50 PM, Twin Primes wrote: > Hi, > > Just downloaded, and tried rubinius. Threads seem to be running rather > slowly. Do I need > to set some config option to get threads to run at full speed ? (The > way I can tell is that the > CPU monitors for my 2 cores jump from 800MHz to 1.6GHz but not to the > full 2.2GHz; JRuby > does seem to run the threads at full speed). > > My program creates 2 slave threads and sends CPU intensive tasks to > them from the main > thread. > > Thanks for any insight.
It would be best if you could share the code in question. Without knowing exactly what you are doing, I can only guess. I *guess* that your threads are I/O bound. If they are blocking on I/O then you won't see a CPU spike. Show us the code or come visit in IRC again. Alternately, run your program with -Xprofile -Xprofiler.graph and put the results in a pastie/gist. cr -- --- !ruby/object:MailingList name: rubinius-dev view: http://groups.google.com/group/rubinius-dev?hl=en post: [email protected] unsubscribe: [email protected]
