Opened 3 years ago

Last modified 3 years ago

#2264 new enhancement

Reduce blockage in EventPumper

Reported by: Zlatin Balevsky Owned by:
Priority: minor Milestone: undecided
Component: router/transport Version: 0.9.34
Keywords: ntcp nio Cc:
Parent Tickets: Sensitive: no


EventPumper is frequently blocked on the LinkedHashSet monitors in the Reader and Writer. See attached YourKit screenshot.

I will be updating this ticket as I experiment with various approaches to reducing that blockage.


Attachments (1)

EventPumperMonitor.png (294.2 KB) - added by Zlatin Balevsky 3 years ago.
Blockage analysis as reported by Yourkit

Download all attachments as: .zip

Change History (2)

Changed 3 years ago by Zlatin Balevsky

Attachment: EventPumperMonitor.png added

Blockage analysis as reported by Yourkit

comment:1 Changed 3 years ago by Zlatin Balevsky

I put together the following patch http://zerobin.i2p/?df7ef6e17462b77b#aTAPsgSnHopedS7gVA3LoIcBk9phRL+qlKzVo4kb9Do= (it also includes #2247)

It introduces two threads called "transit" between EventPumper and the NTCP Reader and Writer threads.

Note: See TracTickets for help on using tickets.