github shirou/gopsutil v4.25.8

one day ago

Important Change

Starting from this release, VirtualMemoryStat.Used on Linux is now calculated based on MemAvailable in meminfo. This may cause a difference of approximately 6–10% compared to the previous calculation.

To address this, we have introduced an opt-out mechanism. You can disable the new calculation by setting the context key WillBeDeletedOptOutMemAvailableCalc to true. Please note that this option is undocumented and will be removed in six months (Feb. 2026).

For more details, see #1873 and #1882.

What's Changed

cpu

disk

  • [disk][process][freebsd]: remove binary.go from common by @shirou in #1907

mem

  • [mem][linux]: Used calculated from Total and Available by @shirou in #1882

process

Other Changes

  • chore: enable fatcontext linter by @mmorel-35 in #1885
  • chore: enable time-date and time-equal rules from revive by @mmorel-35 in #1891
  • Fix: use compatible perfstat version to fix aix cgo builds by @gremat in #1910

New Contributors

Full Changelog: v4.25.7...v4.25.8

Don't miss a new gopsutil release

NewReleases is sending notifications on new releases.