Skip to content

facts.hardware.Memory: fix FreeBSD support by summing page categories#1584

Open
wowi42 wants to merge 1 commit intopyinfra-dev:3.xfrom
KalvadTech:fix-freebsd-memory-fact
Open

facts.hardware.Memory: fix FreeBSD support by summing page categories#1584
wowi42 wants to merge 1 commit intopyinfra-dev:3.xfrom
KalvadTech:fix-freebsd-memory-fact

Conversation

@wowi42
Copy link
Contributor

@wowi42 wowi42 commented Mar 5, 2026

FreeBSD's vmstat -s does not report "pages managed" like OpenBSD. Instead, compute total memory by summing active, inactive, wired, free, and laundry page counts.

  • Pull request is based on the default branch (3.x at this time)
  • Pull request includes tests for any new/updated operations/facts
  • Pull request includes documentation for any new/updated operations/facts
  • Tests pass (see scripts/dev-test.sh)
  • Type checking & code style passes (see scripts/dev-lint.sh)

Thanks for the report on element @soltysek

FreeBSD's vmstat -s does not report "pages managed" like OpenBSD.
Instead, compute total memory by summing active, inactive, wired,
free, and laundry page counts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant