Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-7297

Reject reservation increase if it would exceed soft limit

    XMLWordPrintableJSON

Details

    Description

      Currently the MemTracker only has a hard limit, which is applied to any memory increase.

      One problem we have with the interaction between reserved and non-reserved memory is that the reserved memory is capped to grow up to 80% of the query memory limit unless it hits the query memory limit. If non-reserved memory grows to > 20% of the query memory limit and reserved memory grows until it hits the hard limit, then we almost always end up with a query failure because there's no headroom for additional non-reserved allocations.

      We could reduce query failures if reservation increases were rejected earlier to preserve some headroom for non-reserved allocations above 20% of the query memory limit.

      The proposal is that reservation increases (aside from the initial reservation) should be rejected if they exceed (x * limit). We could determine x with some experimentation, but 5-10% might be a good value.

      Attachments

        Issue Links

          Activity

            People

              tarmstrong Tim Armstrong
              tarmstrong Tim Armstrong
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: