[jboss-jira] [JBoss JIRA] (JGRP-2117) TP: messages to self are not batched

Bela Ban (JIRA) issues at jboss.org
Wed Oct 19 05:56:00 EDT 2016


    [ https://issues.jboss.org/browse/JGRP-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13309191#comment-13309191 ] 

Bela Ban commented on JGRP-2117:
--------------------------------

Hmm, the downside is that, whereas the current impl loops back message directly, using a bundler means that the messages would be marshalled and then unmarshalled.

We should create a MessageBatch for looped-back messages without having to marshal/unmarshal.

> TP: messages to self are not batched
> ------------------------------------
>
>                 Key: JGRP-2117
>                 URL: https://issues.jboss.org/browse/JGRP-2117
>             Project: JGroups
>          Issue Type: Enhancement
>            Reporter: Bela Ban
>            Assignee: Bela Ban
>             Fix For: 4.0
>
>
> If A sends 100 multicast messages (or unicast messages to self), the messages to self are not batched but looped back individually, each using a separate thread from the thread pool.
> So in the above case, A will receive its own 100 messages using 100 threads from the pool.
> It would be more efficient to batch the 100 messages into a batch and then loop the batch back, taking up 1 thread instead of 100!
> To do this, looping back has to be done _after_ the bundler, when the bundler is sending the message batch.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list