Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4614

Benchmark buffer pool

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Performance
    • Labels:
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      The PowerOfTwoBufferPool was created almost 10 years ago, when Java's GC landscape was very different. Since then, the G1 collector has become the default. We should re-examine whether the buffer pool remains effective in its goal of improving overall application throughput. Questions to consider:

      1. Should the driver pool buffers at all?
      2. Should we increase the buffer size at which we start to pool? Currently we pool buffers of any size, but in practice the smallest buffer size requested is 1K.
      3. Does the effectiveness of pooling change significantly between Java 8, 11, and 17?
      4. Does the choice of collector or tuning of the collector significantly change the effectiveness of pooling?

            Assignee:
            Unassigned Unassigned
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: