use control value for tcp (#31918)

pull/31924/head
Alisha Nanda 2 years ago committed by GitHub
parent 27bf7238f4
commit 78dff5a447
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/core/lib/resource_quota/memory_quota.h

@ -568,10 +568,10 @@ class MemoryQuota final
// Resize the quota to new_size.
void SetSize(size_t new_size) { memory_quota_->SetSize(new_size); }
// Return true if the instantaneous memory pressure is high.
// Return true if the controlled memory pressure is high.
bool IsMemoryPressureHigh() const {
static constexpr double kMemoryPressureHighThreshold = 1.0;
return memory_quota_->GetPressureInfo().instantaneous_pressure >
static constexpr double kMemoryPressureHighThreshold = 0.99;
return memory_quota_->GetPressureInfo().pressure_control_value >
kMemoryPressureHighThreshold;
}

Loading…
Cancel
Save