summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_knobs.idl
diff options
context:
space:
mode:
authorauto-revert-processor <dev-prod-dag@mongodb.com>2022-01-20 11:53:48 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-01-20 12:24:28 +0000
commit464b6b88bd25621a4f61f3fbf4c718c44fe68866 (patch)
treea4cc3b66d02594e9dac51e57200f51df028b6f67 /src/mongo/db/query/query_knobs.idl
parent971f88711eb859c308be510ddf48d10066c3ea62 (diff)
downloadmongo-464b6b88bd25621a4f61f3fbf4c718c44fe68866.tar.gz
Revert "SERVER-60311 Make memory usage check adaptive and add exec stats for spilling"
This reverts commit f7ee45c35d778188402f9b2fe972c96706922165.
Diffstat (limited to 'src/mongo/db/query/query_knobs.idl')
-rw-r--r--src/mongo/db/query/query_knobs.idl39
1 files changed, 6 insertions, 33 deletions
diff --git a/src/mongo/db/query/query_knobs.idl b/src/mongo/db/query/query_knobs.idl
index 528b6b0e2cf..4a23ff8bd0f 100644
--- a/src/mongo/db/query/query_knobs.idl
+++ b/src/mongo/db/query/query_knobs.idl
@@ -511,46 +511,19 @@ server_parameters:
gt: 0
lte: { expr: BSONObjMaxInternalSize }
- internalQuerySlotBasedExecutionHashAggMemoryUseCheckMargin:
- description: "The memory check in HashAgg stage is done on every T'th processed record, where T
- is calculated adaptively based on the estimated memory used and its recent growth. This setting
- defines the percent of the remaining available memory to be used before the next check, given
- the estimated growth speed per advance [see internalQuerySlotBasedExecutionHashAggApproxMemoryUseInBytesBeforeSpill]."
+ internalQuerySlotBasedExecutionHashAggMemoryUseSampleRate:
+ description: "The percent chance that the size of the hash table in a HashAgg stage is re-estimated
+ when an entry is updated. The estimated size of the hash table is used to determine if we should
+ spill to disk. [see internalQuerySlotBasedExecutionHashAggApproxMemoryUseInBytesBeforeSpill]"
set_at: [ startup, runtime ]
- cpp_varname: "internalQuerySBEAggMemoryUseCheckMargin"
+ cpp_varname: "internalQuerySBEAggMemoryUseSampleRate"
cpp_vartype: AtomicDouble
default:
- expr: 0.7
+ expr: 0.5
validator:
gt: 0.0
lte: 1.0
- internalQuerySlotBasedExecutionHashAggMemoryCheckPerAdvanceAtMost:
- description: "The memory check in HashAgg stage is done on every T'th processed record, where T
- is calculated adaptively based on the estimated memory used and its recent growth. This setting
- defines the lower bound for T [see internalQuerySlotBasedExecutionHashAggApproxMemoryUseInBytesBeforeSpill]."
- set_at: [ startup, runtime ]
- cpp_varname: "internalQuerySBEAggMemoryCheckPerAdvanceAtMost"
- cpp_vartype: AtomicWord<long long>
- default:
- expr: 2
- validator:
- gt: 0
-
- internalQuerySlotBasedExecutionHashAggMemoryCheckPerAdvanceAtLeast:
- description: "The memory check in HashAgg stage is done on every T'th processed record, where T
- is calculated adaptively based on the estimated memory used and its recent growth. This setting
- defines the upper bound for T. If this setting is less than [see internalQuerySlotBasedExecutionHashAggMemoryCheckPerAdvanceAtMost],
- the check will be done on every internalQuerySlotBasedExecutionHashAggMemoryCheckPerAdvanceAtLeast'th
- processed record [see internalQuerySlotBasedExecutionHashAggApproxMemoryUseInBytesBeforeSpill]."
- set_at: [ startup, runtime ]
- cpp_varname: "internalQuerySBEAggMemoryCheckPerAdvanceAtLeast"
- cpp_vartype: AtomicWord<long long>
- default:
- expr: 1024
- validator:
- gt: 0
-
internalQuerySlotBasedExecutionHashAggApproxMemoryUseInBytesBeforeSpill:
description: "The max size in bytes that the hash table in a HashAgg stage can be
estimated to be before we spill to disk."