Enforce the configured bounded-work policy for a survey process. More...
#include <map_resources.h>
Public Member Functions | |
| MapResources (const MapConfig &config) | |
| Establish process limits for the selected runtime profile. | |
| void | checkpoint () |
| Check current process RSS and system reserve at a bounded cadence. | |
Private Attributes | |
| bool | bounded_ |
| std::uint64_t | limit_ |
| std::uint64_t | reserve_ |
| std::chrono::steady_clock::time_point | checked_ {} |
Detailed Description
Enforce the configured bounded-work policy for a survey process.
Low-memory mode limits address space, worker count, open files and scheduler priority. Periodic checks also preserve system-available memory; they are admission/overload guards, not a hard RSS cap or a whole-board proof.
Definition at line 67 of file map_resources.h.
Constructor & Destructor Documentation
◆ MapResources()
|
inlineexplicit |
Establish process limits for the selected runtime profile.
- Parameters
-
[in] config Validated map configuration.
- Exceptions
-
std::runtime_error If the profile is unsupported or any required Linux resource policy cannot be established.
Definition at line 78 of file map_resources.h.
Member Function Documentation
◆ checkpoint()
|
inline |
Check current process RSS and system reserve at a bounded cadence.
- Exceptions
-
std::runtime_error If memory headroom closes; existing checkpoints are intentionally left in place for a later resume.
Definition at line 106 of file map_resources.h.
Field Documentation
◆ bounded_
|
private |
Definition at line 68 of file map_resources.h.
◆ checked_
|
private |
Definition at line 70 of file map_resources.h.
◆ limit_
|
private |
Definition at line 69 of file map_resources.h.
◆ reserve_
|
private |
Definition at line 69 of file map_resources.h.
The documentation for this class was generated from the following file:
- modules/pangea/map_resources.h