1#define _POSIX_C_SOURCE 200809L
15#include <sys/sysinfo.h>
49#elif defined(__APPLE__) || defined(__FreeBSD__)
51#include <sys/sysctl.h>
102 if (
avail == 0)
return false;
Convenience size-conversion and utility macros shared across CWIST.
#define CWIST_GIB(x)
Convert binary gibibytes to bytes.
bool cwist_is_ram_critical(uint64_t threshold_bytes)
Check whether the current available RAM is below a caller-supplied threshold.
uint64_t cwist_get_available_ram(void)
Fallback RAM estimate for unsupported platforms.
System Resource Monitoring Utilities.