Sourced from github.com/shirou/gopsutil/v4's releases.
v4.25.8
Important Change
Starting from this release,
VirtualMemoryStat.Usedon Linux is now calculated based onMemAvailableinmeminfo. 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
WillBeDeletedOptOutMemAvailableCalctotrue. 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
- Do not return an error on unknown CPU stepping by
@pgimalacin shirou/gopsutil#1895- Remove common test helper to skip tests by
@rosstimothyin shirou/gopsutil#1894- feat(cpu): add Neoverse-V2/* other models by
@gyuhoin shirou/gopsutil#1902- [cpu][mem][linux]: throw error on Readline failed by
@shirouin shirou/gopsutil#1908disk
- [disk][process][freebsd]: remove binary.go from common by
@shirouin shirou/gopsutil#1907mem
- [mem][linux]: Used calculated from Total and Available by
@shirouin shirou/gopsutil#1882process
- process: Fix data race on darwin by
@prashantvin shirou/gopsutil#1901Other Changes
- chore: enable fatcontext linter by
@mmorel-35in shirou/gopsutil#1885- chore: enable time-date and time-equal rules from revive by
@mmorel-35in shirou/gopsutil#1891- Fix: use compatible perfstat version to fix aix cgo builds by
@grematin shirou/gopsutil#1910New Contributors
@rosstimothymade their first contribution in shirou/gopsutil#1894@prashantvmade their first contribution in shirou/gopsutil#1901@gyuhomade their first contribution in shirou/gopsutil#1902@grematmade their first contribution in shirou/gopsutil#1910Full Changelog: https://github.com/shirou/gopsutil/compare/v4.25.7...v4.25.8
02f5628
Merge pull request #1910
from gremat/fix/use-compatible-perfstat-version-to-f...1d96565
Merge pull request #1891
from mmorel-35/revive/timeb1b09bc
Merge pull request #1907
from shirou/feat/remove_binary_go_file3d59eeb
Merge pull request #1885
from mmorel-35/fatcontext97f9dfe
chore: bump power-devops/perfstat to a compatible version519169e
Merge pull request #1909
from shirou/dependabot/go_modules/github.com/stretch...84ffa6a
chore(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.17247909
Merge pull request #1908
from shirou/feat/throw_error_on_readline_failedf37ef47
[cpu][mem][linux]: throw error on Readline failed2758ffc
[disk][process][freebsd]: remove binary.go from common