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
- Task
Finished 🔒 - Return value from the task, when it finishes due to the tracker being shut down
- Victim
Panicked 🔒 - 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
- Victim
Responses 🔒 - Set of responses from the victims, after they have all finished reclaiming.