Skip to main content

check-buddyinfo

Overview​

Queries /proc/buddyinfo to detect memory fragmentation by verifying sufficient free memory blocks of higher orders exist.

Command-Line Options​

OptionTypeDefaultDescription
--buddyinfo_pathPath/proc/buddyinfoPath to buddyinfo file
--timeoutInteger300Command execution timeout in seconds
--sinkStringdo_nothingTelemetry sink destination
--sink-optsMultiple-Sink-specific configuration
--verbose-outFlagFalseDisplay detailed output
--log-levelChoiceINFODEBUG, INFO, WARNING, ERROR, CRITICAL
--log-folderString/var/log/fb-monitoringLog directory
--heterogeneous-cluster-v1FlagFalseEnable heterogeneous cluster support

Exit Conditions​

Exit CodeCondition
OK (0)Feature flag disabled (killswitch active)
OK (0)Sufficient large memory blocks
WARN (1)Failed to read buddyinfo
CRITICAL (2)Memory fragmentation detected

Usage Examples​

check-buddyinfo - Standard Fragmentation Check​

health_checks check-processor check-buddyinfo \
--sink stdout \
[CLUSTER] \
app

check-buddyinfo - Custom Buddyinfo Path​

health_checks check-processor check-buddyinfo \
--buddyinfo_path /custom/proc/buddyinfo \
--sink stdout \
[CLUSTER] \
app

check-buddyinfo - With Telemetry​

health_checks check-processor check-buddyinfo \
--sink otel \
--sink-opts "log_resource_attributes={'attr_1': 'value1'}" \
[CLUSTER] \
app

check-buddyinfo - Debug Mode​

health_checks check-processor check-buddyinfo \
--log-level DEBUG \
--verbose-out \
--sink stdout \
[CLUSTER] \
app