Skip to main content

Module reclaim

Module reclaim 

Source
Expand description

Reclamation algorithm

Implementation the of long-running task function, (which is the only export from here, the wider mtracker module).

ModulesΒ§

deferred_drop πŸ”’
Deferred drop handling.

StructsΒ§

Reclaiming πŸ”’
State while reclamation is active
TaskFinished πŸ”’
Return value from the task, when it finishes due to the tracker being shut down
VictimPanicked πŸ”’
Marker indicating that the victim’s reclaim function panicked

EnumsΒ§

Age πŸ”’
The nominal data age of a participant
Outcome πŸ”’
Outcome of a completed reclamation run
PStatus πŸ”’
Participant status, as a candidate victim

FunctionsΒ§

analyse_particip πŸ”’
Figure out whether a participant is a candidate victim, and obtain its data age
inner_loop πŸ”’
Reclaim memory until we reach low water, if necessary
task πŸ”’
Internal long-running task, handling reclamation
task_loop πŸ”’
Internal long-running task, handling reclamation - main loop

Type AliasesΒ§

NumParticips πŸ”’
Total number of participants
Victim πŸ”’
A victim we have selected for reclamation
VictimResponses πŸ”’
Set of responses from the victims, after they have all finished reclaiming.