I couldn't find much else than that the Java ThreadPool does locking/blocking when scheduling, I guess that is the main reason? And that the new modified fork join pool does random scheduling and work stealing (?) It turns out that the .NET ThreadPool is non locking and also does job stealing, so I guess I'll stick to that implementation for now.
Processing 8.5 mil messages/sec on my 4 core 2.8 ghz laptop using a ported version of your ping pong client actors. I guess that is a pretty decent number considering that Akka pushed 20 mil/sec on that 48 core server using the first fork join implementation (?) Den måndagen den 13:e januari 2014 kl. 13:01:02 UTC+1 skrev √: > > > > > On Mon, Jan 13, 2014 at 11:52 AM, Roger Alsing > <[email protected]<javascript:> > > wrote: > >> I'm trying to understand why the fork join pool scales better than the >> thread pool. >> > > LMGTFY? :) > > > https://www.google.com/search?q=akka+scale+ForkJoinPool&oq=akka+scale+ForkJoinPool > > >> My understanding is that FJP can partition tasks into subtasks to >> optimize the work done on the underlying threads. >> >> How does this affect the mailboxes in Akka? >> Since a given mailbox can only process one message at a time to ensure >> max degree of paralellism = 1 for the actor model, I fail to see how the >> FJP model helps here? >> >> Is it just that registerForExecution is faster with fjp than treadpool? >> > > Let's talk after you read the blog post! > > Cheers, > √ > > >> -- >> >>>>>>>>>> Read the docs: http://akka.io/docs/ >> >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user >> --- >> You received this message because you are subscribed to the Google Groups >> "Akka User List" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/akka-user. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Cheers, > √ > > * Viktor Klang* > *Director of Engineering* > Typesafe <http://www.typesafe.com/> > > Twitter: @viktorklang > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/groups/opt_out.
