SERVER-132002ClosedFixed

Include idle cursors in query memory load shedding

Hook into {{CursorManager::timeoutCursors}} to check for memory load shedding at the same 4s frequency that we check for timeouts. The challenges here revolve around the lack of {{opCtx}}: - No opCtx in the sweep → kill the cursor directly (dispose / executor->markAsKilled(QueryMemoryLimitExceeded)), like timeout does, rather than opCtx->markKilled. - dt = sweep cadence (clientCursorMonitorFrequencySecs, ~4 s) and shedProbability caps dt at 1 s, so idle cursors would under-shed unless we giv

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.