registerForExecution has to be called for every message.

See the link I sent for both benchmark numbers and configuration for
throughput.


On Mon, Aug 18, 2014 at 4:25 PM, Sean Zhong <[email protected]> wrote:

> Revise the typo.
>
>
> When I send 300, 000 message from one actor to another (all local actors),
> more than 90% time of the source actor is spent in 
> Dispatcher.registerForExecution(),
> inside it, there is call "executorService.execute(mbox)"
>
> The Mailbox.run() logic looks like this: It will first try to process all
> pending messages in mailbox, when there is no pending messages, then
> current runnable will exit. So for the worst case, one call to
> Mailbox.run() can only process 1 message, and then exit.
>
> So 300, 000 messages dispatch will have to call 
> Dispatcher.registerForExecution()
> --> executorService.execute(mbox) for 300, 000 times, which will have
> performance problems.
>
> What we can do for this to improve performance? 300, 000 message per pair
> of actors is not good enough.
>
>
>  --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> 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/d/optout.
>



-- 
Cheers,
√

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      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/d/optout.

Reply via email to