MCPcopy Create free account
hub / github.com/apache/impala / UnderMemoryPressure

Function UnderMemoryPressure

be/src/kudu/util/process_memory.cc:233–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233bool UnderMemoryPressure(double* current_capacity_pct) {
234 InitLimits();
235 int64_t consumption = CurrentConsumption();
236 if (consumption < g_pressure_threshold) {
237 return false;
238 }
239 if (current_capacity_pct) {
240 *current_capacity_pct = static_cast<double>(consumption) / g_hard_limit * 100;
241 }
242 return true;
243}
244
245bool SoftLimitExceeded(double* current_capacity_pct) {
246 InitLimits();

Callers

nothing calls this directly

Calls 2

InitLimitsFunction · 0.85
CurrentConsumptionFunction · 0.85

Tested by

no test coverage detected