[jboss-jira] [JBoss JIRA] (JGRP-1994) TCP: remove send queues

Bela Ban (JIRA) issues at jboss.org
Mon Dec 14 07:39:00 EST 2015


Bela Ban created JGRP-1994:
------------------------------

             Summary: TCP: remove send queues
                 Key: JGRP-1994
                 URL: https://issues.jboss.org/browse/JGRP-1994
             Project: JGroups
          Issue Type: Task
            Reporter: Bela Ban
            Assignee: Bela Ban
             Fix For: 4.0


When {{TCP.use_send_queues}} is enabled, sending a message puts it in a queue from which a sender thread dequeues it and sends it.
This was a bad idea from the start, because
* We create 1 additional (sender) thread per peer. That's 999 threads *per member* if we have a cluster of 1000. Besides, more threads leads to increased context switching
* The queue only tapers over blocking on a TCP write, as it will fill up if the TCP write blocks. So the problem of a bloking write is only moved to a different part of the system, not eliminated.
* We have to *make a copy of every buffer* to be sent as buffers are reused -> unneeded memory allocation



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


More information about the jboss-jira mailing list