Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-3178

ProxyAllocator improvements

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.0
    • Component/s: Core
    • Labels:
      None

      Description

      Currently when a ProxyAllocator (Thread Local) has more than a
      configurable number of elements it will return them one-by-one to a
      ClassAllocator (Global Freelist). Returning every item in this fashion is
      inefficient as we'll likely need more items in the future. Therefore we
      should maintain a low watermark (a minimum number) of items that should be in a ProxyAllocator at any one time. When the number of elements reaches high watermark, the free up is triggers to keep it below the low
      watermark. Additionally, the free should be a block free instead of
      one-by-one as we can reduce several hundred compare-and-swap operations to a single CAS

        Attachments

        1. patch.diff
          7 kB
          Brian Geffon
        2. patch.diff
          9 kB
          Brian Geffon

          Activity

            People

            • Assignee:
              briang Brian Geffon
              Reporter:
              briang Brian Geffon
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: