Uploaded image for project: 'River (Retired)'
  1. River (Retired)
  2. RIVER-102

(mux) optimize allocation/deallocation of direct buffers

Add voteWatch issue
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • net_jini_jeri
    • None
    • 6304047

    Description

      Bugtraq ID 6304047
      Profiling of JERI performance tests configured to use net.jini.jeri.tcp endpoints on an 8-way multiprocessor has shown allocation (and implicit deallocation) of direct buffers to be a major bottleneck.

      Consider optimizations like pooling of direct buffers that we allocate, but also consider the effects of direct buffers created by the underlying J2SE implementation. For example, it seems that the implementation of GatheringByteChannel.write on a SocketChannel allocates a new temporary direct buffer for each non-direct buffers passed to it, like all the 4-byte non-direct buffers that will be used for message headers. Also, it appears that a direct buffer allocation is occurring per iteration of the select loop, which seems undesirable.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vinodjohnson Thomas Vinod Johnson

              Dates

                Created:
                Updated:

                Slack

                  Issue deployment