gtopt::BasicWorkPool::Statistics struct

Public variables

int active_threads
double available_memory_mb
System available memory MB.
double avg_task_cpu_pct
Average CPU % per LP task.
double avg_task_rss_delta_mb
double current_cpu_load
double current_memory_percent
System memory usage %.
size_t lp_tasks_dispatched
Total LP tasks dispatched.
double process_rss_mb
Process RSS in MB.
double process_swap_mb
Process VmSwap in MB.
bool swap_gate_engaged
double swap_io_rate
Pages/sec (pswpin + pswpout).
double swap_used_mb
System swap used in MB.
size_t tasks_active
size_t tasks_completed
size_t tasks_pending
size_t tasks_submitted

Throttle event counters

Count of can_dispatch_next() returning false for each reason. The same scheduling tick may exercise multiple gates; each failing gate bumps its own counter. Zero on a well-fed pool; non-zero indicates the pool was holding back work for that reason. Useful for diagnosing "why is my pool only at 50 % CPU?" without turning on DEBUG logs.

size_t throttled_cpu
size_t throttled_memory_pct
size_t throttled_free_memory
size_t throttled_process_rss
size_t throttled_process_swap
size_t throttled_swap_io

Variable documentation

double gtopt::BasicWorkPool::Statistics::avg_task_rss_delta_mb

Average RSS delta per LP task

bool gtopt::BasicWorkPool::Statistics::swap_gate_engaged

True while the VmSwap gate is closed (VmSwap over the limit AND actively growing — see SwapGrowthGate).