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).
Starting from this release, we have set the Go version in go.mod to 1.23. Moving forward, we plan to continuously update it to the second most recent Go release.
We understand that gopsutil runs on various platforms, and some applications using it may only support older Go versions. With this release, those applications might no longer be able to build. However, as discussed in #1804, we made this change because golang.org/x/sys, which gopsutil depends on, has adopted a policy of continuously updating its Go version.
That said, we intend to be conservative about syntax changes and avoid unnecessary modifications whenever possible.
What's Changed
disk
add support for get disk serial number on darwin by @samburba in #1791
host
[net][host][aix] Fix build and Makefile by @Lomanic in #1809
[host][process]: fix type missmatch test. by @shirou in #1821
[host]: fix potential error on CI test on Windows. by @shirou in #1830
process
feat(process_windows): Support collecting PageFault count in Windows by @zmyzheng in #1769
Since #1702, the Darwin implementation has been switched from cgo to purego (Great contribution from @uubulb). As a result, cgo has been removed from the Darwin implementation, making cross-compilation easier. We believe this change will not have any impact, but if you encounter any issues, please create an issue.
What's Changed
cpu, mem, sensors, disk, process on darwin
feat(cpu, mem, sensors, disk, process)(darwin): cgo-free implementations by @uubulb in #1702
process
[process][darwin][freebsd][linux][openbsd] Make process.Children not reliant on pgrep by @Lomanic in #1706
fix(IOCountersWithContext): Fix the issue of not using names to fil ter devices in func IOCountersWithContext of the windows implementation by @zmyzheng in #1688
[disk][windows]: ignore network drive when not ready by @shirou in #1699
process
Fix parsing of /proc/pid/smaps when path is empty by @pgimalac in #1691
Refactoring the algorithm for calculating CPU usage by @TheBestLL in #1692
Fix panic on OpenBSD and FreeBSD systems if KinfoProc size has an unexpected size by @fivitti in #1694
Important Notice Regarding Value Changes on mem.SwapMemory() on Windows
In change #1677, the values returned by mem.SwapMemory() on Windows have been significantly revised. Previously, these values were calculated from the PERFORMANCE_INFORMATION structure of the GetPerformanceInfo win32 function, but this calculation was incorrect. Consequently, it has been adjusted to align with the psutil implementation. As a result, the values returned by mem.SwapMemory() are expected to differ greatly from previous values.
What's Changed
docker
fix: docker_memory in centos_7.5 & docker_1.13.1 by @coderZoe in #1670
mem
[windows][mem]: change to use Performance Counter on SwapMemory. by @shirou in #1677
Other Changes
fix: read temperature sensors darwin arm by @Girbons in #1672
fix: remove macos11 and add ubuntu-24.04 on GitHub runner list. by @shirou in #1676
This PR contains the following updates:
| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) | `v3.24.5` → `v4.25.12` |  |  |
---
### Release Notes
<details>
<summary>shirou/gopsutil (github.com/shirou/gopsutil/v3)</summary>
### [`v4.25.12`](https://github.com/shirou/gopsutil/releases/tag/v4.25.12)
[Compare Source](https://github.com/shirou/gopsutil/compare/v4.25.11...v4.25.12)
<!-- Release notes generated using configuration in .github/release.yml at v4.25.12 -->
#### What's Changed
##### cpu
- \[cpu]\[linux]: fix ":" in CPU ModelName by [@​shirou](https://github.com/shirou) in [#​1960](https://github.com/shirou/gopsutil/pull/1960)
- \[cpu]\[linux]: add riscv cpu parser by [@​mengzhuo](https://github.com/mengzhuo) in [#​1970](https://github.com/shirou/gopsutil/pull/1970)
- \[cpu]\[darwin]: release pCoreRef in each iteration by [@​uubulb](https://github.com/uubulb) in [#​1971](https://github.com/shirou/gopsutil/pull/1971)
- \[darwin]: wrap library functions as struct methods by [@​uubulb](https://github.com/uubulb) in [#​1976](https://github.com/shirou/gopsutil/pull/1976)
##### disk
- Fixes [#​1284](https://github.com/shirou/gopsutil/issues/1284) by [@​johnnybubonic](https://github.com/johnnybubonic) in [#​1931](https://github.com/shirou/gopsutil/pull/1931)
- fix disk.Partition cut off after first disk by [@​sni](https://github.com/sni) in [#​1975](https://github.com/shirou/gopsutil/pull/1975)
- \[disk]\[windows]: add virtual drive for TestGetLogicalDrives by [@​shirou](https://github.com/shirou) in [#​1977](https://github.com/shirou/gopsutil/pull/1977)
- Add missing mount flags (local, protect) by [@​Kerlenton](https://github.com/Kerlenton) in [#​1968](https://github.com/shirou/gopsutil/pull/1968)
##### host
- Replace AIX uptime function with ps etimes-based implementation by [@​Dylan-M](https://github.com/Dylan-M) in [#​1967](https://github.com/shirou/gopsutil/pull/1967)
##### mem
- feat(mem): Add support for Percpu by [@​pvlltvk](https://github.com/pvlltvk) in [#​1972](https://github.com/shirou/gopsutil/pull/1972)
##### process
- Add NumFDs implementation for Darwin by [@​Kerlenton](https://github.com/Kerlenton) in [#​1965](https://github.com/shirou/gopsutil/pull/1965)
- \[sensors]\[darwin]: retrieve sensor information in one function call by [@​uubulb](https://github.com/uubulb) in [#​1973](https://github.com/shirou/gopsutil/pull/1973)
#### New Contributors
- [@​Kerlenton](https://github.com/Kerlenton) made their first contribution in [#​1965](https://github.com/shirou/gopsutil/pull/1965)
- [@​sni](https://github.com/sni) made their first contribution in [#​1975](https://github.com/shirou/gopsutil/pull/1975)
- [@​pvlltvk](https://github.com/pvlltvk) made their first contribution in [#​1972](https://github.com/shirou/gopsutil/pull/1972)
- [@​mengzhuo](https://github.com/mengzhuo) made their first contribution in [#​1970](https://github.com/shirou/gopsutil/pull/1970)
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v4.25.11...v4.25.12>
### [`v4.25.11`](https://github.com/shirou/gopsutil/releases/tag/v4.25.11)
[Compare Source](https://github.com/shirou/gopsutil/compare/v4.25.10...v4.25.11)
<!-- Release notes generated using configuration in .github/release.yml at v4.25.11 -->
#### What's Changed
##### cpu
- chore: enable nilnesserr linter by [@​mmorel-35](https://github.com/mmorel-35) in [#​1893](https://github.com/shirou/gopsutil/pull/1893)
##### disk
- add context cancellation to disk windows by [@​StefanoBalzarottiNozomi](https://github.com/StefanoBalzarottiNozomi) in [#​1943](https://github.com/shirou/gopsutil/pull/1943)
##### process
- Fix potential edge case on procfs and alike by [@​johnnybubonic](https://github.com/johnnybubonic) in [#​1934](https://github.com/shirou/gopsutil/pull/1934)
- fix(process): add missing CloseHandle to OpenFilesWithContext for Windows by [@​OverOrion](https://github.com/OverOrion) in [#​1955](https://github.com/shirou/gopsutil/pull/1955)
##### Other Changes
- fix: remove and add GitHub action runner images. by [@​shirou](https://github.com/shirou) in [#​1948](https://github.com/shirou/gopsutil/pull/1948)
#### New Contributors
- [@​johnnybubonic](https://github.com/johnnybubonic) made their first contribution in [#​1934](https://github.com/shirou/gopsutil/pull/1934)
- [@​OverOrion](https://github.com/OverOrion) made their first contribution in [#​1955](https://github.com/shirou/gopsutil/pull/1955)
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v4.25.10...v4.25.11>
### [`v4.25.10`](https://github.com/shirou/gopsutil/releases/tag/v4.25.10)
[Compare Source](https://github.com/shirou/gopsutil/compare/v4.25.9...v4.25.10)
<!-- Release notes generated using configuration in .github/release.yml at v4.25.10 -->
#### What's Changed
##### cpu
- chore: enable noctx linter by [@​mmorel-35](https://github.com/mmorel-35) in [#​1930](https://github.com/shirou/gopsutil/pull/1930)
- Use registry to remove wmi from cpu package by [@​OrbintSoft](https://github.com/OrbintSoft) in [#​1929](https://github.com/shirou/gopsutil/pull/1929)
##### disk
- Remove leaking goroutine by [@​StefanoBalzarottiNozomi](https://github.com/StefanoBalzarottiNozomi) in [#​1921](https://github.com/shirou/gopsutil/pull/1921)
- use correct path lengths by [@​StefanoBalzarottiNozomi](https://github.com/StefanoBalzarottiNozomi) in [#​1937](https://github.com/shirou/gopsutil/pull/1937)
- refactor disk windows and add tests by [@​StefanoBalzarottiNozomi](https://github.com/StefanoBalzarottiNozomi) in [#​1941](https://github.com/shirou/gopsutil/pull/1941)
##### host
- fix: linter error about string concat and build tag by [@​shirou](https://github.com/shirou) in [#​1942](https://github.com/shirou/gopsutil/pull/1942)
##### net
- docs: minor improvement for docs by [@​huyejia](https://github.com/huyejia) in [#​1940](https://github.com/shirou/gopsutil/pull/1940)
##### Other Changes
- \[common]: remove unused DoSysctrl by [@​shirou](https://github.com/shirou) in [#​1936](https://github.com/shirou/gopsutil/pull/1936)
#### New Contributors
- [@​huyejia](https://github.com/huyejia) made their first contribution in [#​1940](https://github.com/shirou/gopsutil/pull/1940)
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v4.25.9...v4.25.10>
### [`v4.25.9`](https://github.com/shirou/gopsutil/releases/tag/v4.25.9)
[Compare Source](https://github.com/shirou/gopsutil/compare/v4.25.8...v4.25.9)
<!-- Release notes generated using configuration in .github/release.yml at v4.25.9 -->
#### What's Changed
##### cpu
- get max Mhz per package without wmi by [@​OrbintSoft](https://github.com/OrbintSoft) in [#​1919](https://github.com/shirou/gopsutil/pull/1919)
- \[cpu]\[windows]: add logical processor count error handling by [@​shirou](https://github.com/shirou) in [#​1925](https://github.com/shirou/gopsutil/pull/1925)
- Family and PhysicalID without wmi by [@​OrbintSoft](https://github.com/OrbintSoft) in [#​1926](https://github.com/shirou/gopsutil/pull/1926)
- Cores count without wmi by [@​OrbintSoft](https://github.com/OrbintSoft) in [#​1915](https://github.com/shirou/gopsutil/pull/1915)
##### disk
- \[disk]\[linux]: fix lint (gofumpt) by [@​shirou](https://github.com/shirou) in [#​1928](https://github.com/shirou/gopsutil/pull/1928)
- fix infinite loop by [@​StefanoBalzarottiNozomi](https://github.com/StefanoBalzarottiNozomi) in [#​1922](https://github.com/shirou/gopsutil/pull/1922)
##### process
- refactor: use slices.Contains to simplify code by [@​wmypku](https://github.com/wmypku) in [#​1906](https://github.com/shirou/gopsutil/pull/1906)
##### Other Changes
- fix: github action labeler.yml confirugration format by [@​shirou](https://github.com/shirou) in [#​1918](https://github.com/shirou/gopsutil/pull/1918)
- limit memory usage on warnings list by [@​StefanoBalzarottiNozomi](https://github.com/StefanoBalzarottiNozomi) in [#​1920](https://github.com/shirou/gopsutil/pull/1920)
#### New Contributors
- [@​wmypku](https://github.com/wmypku) made their first contribution in [#​1906](https://github.com/shirou/gopsutil/pull/1906)
- [@​StefanoBalzarottiNozomi](https://github.com/StefanoBalzarottiNozomi) made their first contribution in [#​1920](https://github.com/shirou/gopsutil/pull/1920)
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v4.25.8...v4.25.9>
### [`v4.25.8`](https://github.com/shirou/gopsutil/releases/tag/v4.25.8)
[Compare Source](https://github.com/shirou/gopsutil/compare/v4.25.7...v4.25.8)
<!-- Release notes generated using configuration in .github/release.yml at v4.25.8 -->
### 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](https://github.com/shirou/gopsutil/issues/1873) and [#​1882](https://github.com/shirou/gopsutil/issues/1882).
#### What's Changed
##### cpu
- Do not return an error on unknown CPU stepping by [@​pgimalac](https://github.com/pgimalac) in [#​1895](https://github.com/shirou/gopsutil/pull/1895)
- Remove common test helper to skip tests by [@​rosstimothy](https://github.com/rosstimothy) in [#​1894](https://github.com/shirou/gopsutil/pull/1894)
- feat(cpu): add Neoverse-V2/\* other models by [@​gyuho](https://github.com/gyuho) in [#​1902](https://github.com/shirou/gopsutil/pull/1902)
- \[cpu]\[mem]\[linux]: throw error on Readline failed by [@​shirou](https://github.com/shirou) in [#​1908](https://github.com/shirou/gopsutil/pull/1908)
##### disk
- \[disk]\[process]\[freebsd]: remove binary.go from common by [@​shirou](https://github.com/shirou) in [#​1907](https://github.com/shirou/gopsutil/pull/1907)
##### mem
- \[mem]\[linux]: Used calculated from Total and Available by [@​shirou](https://github.com/shirou) in [#​1882](https://github.com/shirou/gopsutil/pull/1882)
##### process
- process: Fix data race on darwin by [@​prashantv](https://github.com/prashantv) in [#​1901](https://github.com/shirou/gopsutil/pull/1901)
##### Other Changes
- chore: enable fatcontext linter by [@​mmorel-35](https://github.com/mmorel-35) in [#​1885](https://github.com/shirou/gopsutil/pull/1885)
- chore: enable time-date and time-equal rules from revive by [@​mmorel-35](https://github.com/mmorel-35) in [#​1891](https://github.com/shirou/gopsutil/pull/1891)
- Fix: use compatible perfstat version to fix aix cgo builds by [@​gremat](https://github.com/gremat) in [#​1910](https://github.com/shirou/gopsutil/pull/1910)
#### New Contributors
- [@​rosstimothy](https://github.com/rosstimothy) made their first contribution in [#​1894](https://github.com/shirou/gopsutil/pull/1894)
- [@​prashantv](https://github.com/prashantv) made their first contribution in [#​1901](https://github.com/shirou/gopsutil/pull/1901)
- [@​gyuho](https://github.com/gyuho) made their first contribution in [#​1902](https://github.com/shirou/gopsutil/pull/1902)
- [@​gremat](https://github.com/gremat) made their first contribution in [#​1910](https://github.com/shirou/gopsutil/pull/1910)
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v4.25.7...v4.25.8>
### [`v4.25.7`](https://github.com/shirou/gopsutil/releases/tag/v4.25.7)
[Compare Source](https://github.com/shirou/gopsutil/compare/v4.25.6...v4.25.7)
<!-- Release notes generated using configuration in .github/release.yml at v4.25.7 -->
#### What's Changed
##### disk
- fix(disk): handle NVMe controller notation in IOCounters on Linux by [@​skartikey](https://github.com/skartikey) in [#​1878](https://github.com/shirou/gopsutil/pull/1878)
##### mem
- fix 404 link to centos.org by [@​martoche](https://github.com/martoche) in [#​1872](https://github.com/shirou/gopsutil/pull/1872)
##### process
- process: Fix parsing of uid/gid's to handle full uint32 range by [@​halaney](https://github.com/halaney) in [#​1887](https://github.com/shirou/gopsutil/pull/1887)
##### Other Changes
- chore: enable unused-receiver from revive by [@​mmorel-35](https://github.com/mmorel-35) in [#​1883](https://github.com/shirou/gopsutil/pull/1883)
- enable shadow from govet by [@​mmorel-35](https://github.com/mmorel-35) in [#​1863](https://github.com/shirou/gopsutil/pull/1863)
- fix: windows-2019 runner image has been deprecated by [@​shirou](https://github.com/shirou) in [#​1881](https://github.com/shirou/gopsutil/pull/1881)
#### New Contributors
- [@​martoche](https://github.com/martoche) made their first contribution in [#​1872](https://github.com/shirou/gopsutil/pull/1872)
- [@​halaney](https://github.com/halaney) made their first contribution in [#​1887](https://github.com/shirou/gopsutil/pull/1887)
- [@​skartikey](https://github.com/skartikey) made their first contribution in [#​1878](https://github.com/shirou/gopsutil/pull/1878)
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v4.25.6...v4.25.7>
### [`v4.25.6`](https://github.com/shirou/gopsutil/releases/tag/v4.25.6)
[Compare Source](https://github.com/shirou/gopsutil/compare/v4.25.5...v4.25.6)
<!-- Release notes generated using configuration in .github/release.yml at v4.25.6 -->
#### What's Changed
##### disk
- \[disk]\[linux]: fix parsing mount option when use 1/mounts on Partition by [@​shirou](https://github.com/shirou) in [#​1861](https://github.com/shirou/gopsutil/pull/1861)
- Fetch stats from folder mounted volumes by [@​dloucasfx](https://github.com/dloucasfx) in [#​1534](https://github.com/shirou/gopsutil/pull/1534)
##### mem
- feat(exwindows): expose phys and pagefile memory by [@​kruskall](https://github.com/kruskall) in [#​1868](https://github.com/shirou/gopsutil/pull/1868)
##### process
- fix: optimize performance of process.OpenFiles() by [@​NitroCao](https://github.com/NitroCao) in [#​1866](https://github.com/shirou/gopsutil/pull/1866)
##### Other Changes
- chore: fix some minor issues in the comments by [@​shandongzhejiang](https://github.com/shandongzhejiang) in [#​1870](https://github.com/shirou/gopsutil/pull/1870)
- enable all go-critic by [@​mmorel-35](https://github.com/mmorel-35) in [#​1856](https://github.com/shirou/gopsutil/pull/1856)
- fix: relace golangcilint on var-naming for package name by [@​shirou](https://github.com/shirou) in [#​1871](https://github.com/shirou/gopsutil/pull/1871)
#### New Contributors
- [@​dloucasfx](https://github.com/dloucasfx) made their first contribution in [#​1534](https://github.com/shirou/gopsutil/pull/1534)
- [@​shandongzhejiang](https://github.com/shandongzhejiang) made their first contribution in [#​1870](https://github.com/shirou/gopsutil/pull/1870)
- [@​kruskall](https://github.com/kruskall) made their first contribution in [#​1868](https://github.com/shirou/gopsutil/pull/1868)
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v4.25.5...v4.25.6>
### [`v4.25.5`](https://github.com/shirou/gopsutil/releases/tag/v4.25.5)
[Compare Source](https://github.com/shirou/gopsutil/compare/v4.25.4...v4.25.5)
<!-- Release notes generated using configuration in .github/release.yml at v4.25.5 -->
#### What's Changed
##### cpu
- Remove wmi for Get physical CPU core count by [@​OrbintSoft](https://github.com/OrbintSoft) in [#​1839](https://github.com/shirou/gopsutil/pull/1839)
- fix ignore nakedret by [@​mmorel-35](https://github.com/mmorel-35) in [#​1847](https://github.com/shirou/gopsutil/pull/1847)
- Fix issues with GetLastError() usage by [@​secDre4mer](https://github.com/secDre4mer) in [#​1848](https://github.com/shirou/gopsutil/pull/1848)
##### docker
- rename containerid arguments to containerID by [@​mmorel-35](https://github.com/mmorel-35) in [#​1862](https://github.com/shirou/gopsutil/pull/1862)
##### host
##### Other Changes
- fix(ST1005): Incorrectly formatted error string by [@​mmorel-35](https://github.com/mmorel-35) in [#​1846](https://github.com/shirou/gopsutil/pull/1846)
- \[darwin]: bump purego veresion to 0.8.3 by [@​shirou](https://github.com/shirou) in [#​1852](https://github.com/shirou/gopsutil/pull/1852)
- chore: enable staticcheck by [@​mmorel-35](https://github.com/mmorel-35) in [#​1842](https://github.com/shirou/gopsutil/pull/1842)
#### New Contributors
- [@​OrbintSoft](https://github.com/OrbintSoft) made their first contribution in [#​1839](https://github.com/shirou/gopsutil/pull/1839)
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v4.25.4...v4.25.5>
### [`v4.25.4`](https://github.com/shirou/gopsutil/releases/tag/v4.25.4)
[Compare Source](https://github.com/shirou/gopsutil/compare/v4.25.3...v4.25.4)
<!-- Release notes generated using configuration in .github/release.yml at v4.25.4 -->
#### What's Changed
##### cpu
- fix nil ptr by [@​dvovk](https://github.com/dvovk) in [#​1835](https://github.com/shirou/gopsutil/pull/1835)
- Fix win32\_SystemProcessorPerformanceInformation struct by [@​niemp100](https://github.com/niemp100) in [#​1831](https://github.com/shirou/gopsutil/pull/1831)
##### disk
- \[disk]\[linux] add bcachefs magic by [@​NewbieOrange](https://github.com/NewbieOrange) in [#​1838](https://github.com/shirou/gopsutil/pull/1838)
##### host
- refactor: using fmt.Errorf in InfoWithContext by [@​s0ders](https://github.com/s0ders) in [#​1840](https://github.com/shirou/gopsutil/pull/1840)
##### Other Changes
- fix: update github actions runner images by [@​shirou](https://github.com/shirou) in [#​1841](https://github.com/shirou/gopsutil/pull/1841)
- chore: enable govet linter by [@​mmorel-35](https://github.com/mmorel-35) in [#​1825](https://github.com/shirou/gopsutil/pull/1825)
- \[chore]: bump golangci-lint to v2.1.1 by [@​mmorel-35](https://github.com/mmorel-35) in [#​1829](https://github.com/shirou/gopsutil/pull/1829)
- chore: enable ineffassign linter by [@​mmorel-35](https://github.com/mmorel-35) in [#​1843](https://github.com/shirou/gopsutil/pull/1843)
#### New Contributors
- [@​NewbieOrange](https://github.com/NewbieOrange) made their first contribution in [#​1838](https://github.com/shirou/gopsutil/pull/1838)
- [@​dvovk](https://github.com/dvovk) made their first contribution in [#​1835](https://github.com/shirou/gopsutil/pull/1835)
- [@​niemp100](https://github.com/niemp100) made their first contribution in [#​1831](https://github.com/shirou/gopsutil/pull/1831)
- [@​s0ders](https://github.com/s0ders) made their first contribution in [#​1840](https://github.com/shirou/gopsutil/pull/1840)
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v4.25.3...v4.25.4>
### [`v4.25.3`](https://github.com/shirou/gopsutil/releases/tag/v4.25.3)
[Compare Source](https://github.com/shirou/gopsutil/compare/v4.25.2...v4.25.3)
<!-- Release notes generated using configuration in .github/release.yml at v4.25.3 -->
#### Important Notice
Starting from this release, we have set the Go version in `go.mod` to 1.23. Moving forward, we plan to continuously update it to the second most recent Go release.
We understand that gopsutil runs on various platforms, and some applications using it may only support older Go versions. With this release, those applications might no longer be able to build. However, as discussed in [#​1804](https://github.com/shirou/gopsutil/issues/1804), we made this change because [golang.org/x/sys](https://pkg.go.dev/golang.org/x/sys), which gopsutil depends on, has adopted a policy of continuously updating its Go version.
That said, we intend to be conservative about syntax changes and avoid unnecessary modifications whenever possible.
#### What's Changed
##### disk
- add support for get disk serial number on darwin by [@​samburba](https://github.com/samburba) in [#​1791](https://github.com/shirou/gopsutil/pull/1791)
##### host
- \[net]\[host]\[aix] Fix build and Makefile by [@​Lomanic](https://github.com/Lomanic) in [#​1809](https://github.com/shirou/gopsutil/pull/1809)
- \[host]\[process]: fix type missmatch test. by [@​shirou](https://github.com/shirou) in [#​1821](https://github.com/shirou/gopsutil/pull/1821)
- \[host]: fix potential error on CI test on Windows. by [@​shirou](https://github.com/shirou) in [#​1830](https://github.com/shirou/gopsutil/pull/1830)
##### process
- feat(process\_windows): Support collecting PageFault count in Windows by [@​zmyzheng](https://github.com/zmyzheng) in [#​1769](https://github.com/shirou/gopsutil/pull/1769)
##### Chore
- chore: enable unnecessary-stmt from revive by [@​mmorel-35](https://github.com/mmorel-35) in [#​1812](https://github.com/shirou/gopsutil/pull/1812)
- chore: enable thelper and usetesting linters by [@​mmorel-35](https://github.com/mmorel-35) in [#​1814](https://github.com/shirou/gopsutil/pull/1814)
- chore(golangci-lint): cover aix and cgo by [@​mmorel-35](https://github.com/mmorel-35) in [#​1805](https://github.com/shirou/gopsutil/pull/1805)
- chore: use testify instead of testing by [@​mmorel-35](https://github.com/mmorel-35) in [#​1815](https://github.com/shirou/gopsutil/pull/1815)
- chore: enable begin rule from thelper by [@​mmorel-35](https://github.com/mmorel-35) in [#​1816](https://github.com/shirou/gopsutil/pull/1816)
- chore: enable var-naming from revive by [@​mmorel-35](https://github.com/mmorel-35) in [#​1817](https://github.com/shirou/gopsutil/pull/1817)
- chore: enable gocritic linter by [@​mmorel-35](https://github.com/mmorel-35) in [#​1813](https://github.com/shirou/gopsutil/pull/1813)
- chore: enable unused-parameter from revive by [@​mmorel-35](https://github.com/mmorel-35) in [#​1783](https://github.com/shirou/gopsutil/pull/1783)
- chore: reduce number of executed jobs by [@​mmorel-35](https://github.com/mmorel-35) in [#​1799](https://github.com/shirou/gopsutil/pull/1799)
- chore: update go version in module by [@​mmorel-35](https://github.com/mmorel-35) in [#​1804](https://github.com/shirou/gopsutil/pull/1804)
- fix: address nolint contextcheck by [@​mmorel-35](https://github.com/mmorel-35) in [#​1826](https://github.com/shirou/gopsutil/pull/1826)
##### Other Changes
- fix: deprecated set-output by [@​mmorel-35](https://github.com/mmorel-35) in [#​1810](https://github.com/shirou/gopsutil/pull/1810)
- fix: enable loong64 architecture in lint workflow by [@​mmorel-35](https://github.com/mmorel-35) in [#​1827](https://github.com/shirou/gopsutil/pull/1827)
#### New Contributors
- [@​samburba](https://github.com/samburba) made their first contribution in [#​1791](https://github.com/shirou/gopsutil/pull/1791)
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v4.25.2...v4.25.3>
### [`v4.25.2`](https://github.com/shirou/gopsutil/releases/tag/v4.25.2)
[Compare Source](https://github.com/shirou/gopsutil/compare/v4.25.1...v4.25.2)
<!-- Release notes generated using configuration in .github/release.yml at v4.25.2 -->
#### What's Changed
##### cpu
- chore: enable golangci-lint on Windows and MacOS by [@​mmorel-35](https://github.com/mmorel-35) in [#​1785](https://github.com/shirou/gopsutil/pull/1785)
- chore(golangci-lint): GOOS and GOARCH matrix by [@​mmorel-35](https://github.com/mmorel-35) in [#​1797](https://github.com/shirou/gopsutil/pull/1797)
##### net
- \[windows]: fix lint error about use-any by [@​shirou](https://github.com/shirou) in [#​1795](https://github.com/shirou/gopsutil/pull/1795)
##### process
- fix: `Process.CmdlineSliceWithContext` incorrect on Windows by [@​RomainMuller](https://github.com/RomainMuller) in [#​1796](https://github.com/shirou/gopsutil/pull/1796)
##### Other Changes
- chore: enable use-any from revive by [@​mmorel-35](https://github.com/mmorel-35) in [#​1784](https://github.com/shirou/gopsutil/pull/1784)
- fix(golangci-lint): configuration typo by [@​mmorel-35](https://github.com/mmorel-35) in [#​1798](https://github.com/shirou/gopsutil/pull/1798)
#### New Contributors
- [@​RomainMuller](https://github.com/RomainMuller) made their first contribution in [#​1796](https://github.com/shirou/gopsutil/pull/1796)
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v4.25.1...v4.25.2>
### [`v4.25.1`](https://github.com/shirou/gopsutil/releases/tag/v4.25.1)
[Compare Source](https://github.com/shirou/gopsutil/compare/v4.24.12...v4.25.1)
<!-- Release notes generated using configuration in .github/release.yml at v4.25.1 -->
#### What's Changed
##### Other Changes
- chore: explicit revive rules by [@​mmorel-35](https://github.com/mmorel-35) in [#​1778](https://github.com/shirou/gopsutil/pull/1778)
- chore: call actions/checkout before actions/setup-go to benefit from native cache by [@​mmorel-35](https://github.com/mmorel-35) in [#​1779](https://github.com/shirou/gopsutil/pull/1779)
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v4.24.12...v4.25.1>
### [`v4.24.12`](https://github.com/shirou/gopsutil/releases/tag/v4.24.12)
[Compare Source](https://github.com/shirou/gopsutil/compare/v4.24.11...v4.24.12)
<!-- Release notes generated using configuration in .github/release.yml at v4.24.12 -->
#### What's Changed
##### cpu
- enable all rules of perfsprint linter by [@​mmorel-35](https://github.com/mmorel-35) in [#​1762](https://github.com/shirou/gopsutil/pull/1762)
- refactor(darwin): optimize string allocation by [@​uubulb](https://github.com/uubulb) in [#​1768](https://github.com/shirou/gopsutil/pull/1768)
##### mem
- enable testifylint linter by [@​mmorel-35](https://github.com/mmorel-35) in [#​1743](https://github.com/shirou/gopsutil/pull/1743)
##### net
- \[openbsd] set ConnectionsPid to return NotImplemented by [@​tuftedocelot](https://github.com/tuftedocelot) in [#​1757](https://github.com/shirou/gopsutil/pull/1757)
- Refactor: merge base functions to net.go by [@​shirou](https://github.com/shirou) in [#​1764](https://github.com/shirou/gopsutil/pull/1764)
##### process
- fix\[posix,windows]: release process after os.FindProcess() by [@​NitroCao](https://github.com/NitroCao) in [#​1716](https://github.com/shirou/gopsutil/pull/1716)
- enable all rules of testifylint linter by [@​mmorel-35](https://github.com/mmorel-35) in [#​1761](https://github.com/shirou/gopsutil/pull/1761)
- \[freebsd]: add CWD by [@​shirou](https://github.com/shirou) in [#​1765](https://github.com/shirou/gopsutil/pull/1765)
##### sensors
- fix\[darwin]: memory leak and string corruption in ARM Mac temperature sensors by [@​chuangbo](https://github.com/chuangbo) in [#​1767](https://github.com/shirou/gopsutil/pull/1767)
##### Other Changes
- fix\[github]: deprecate macos-12, add macos-15 by [@​shirou](https://github.com/shirou) in [#​1760](https://github.com/shirou/gopsutil/pull/1760)
- \[doc]: Update README for supported metrics. by [@​shirou](https://github.com/shirou) in [#​1766](https://github.com/shirou/gopsutil/pull/1766)
#### New Contributors
- [@​NitroCao](https://github.com/NitroCao) made their first contribution in [#​1716](https://github.com/shirou/gopsutil/pull/1716)
- [@​tuftedocelot](https://github.com/tuftedocelot) made their first contribution in [#​1757](https://github.com/shirou/gopsutil/pull/1757)
- [@​chuangbo](https://github.com/chuangbo) made their first contribution in [#​1767](https://github.com/shirou/gopsutil/pull/1767)
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v4.24.11...v4.24.12>
### [`v4.24.11`](https://github.com/shirou/gopsutil/releases/tag/v4.24.11)
[Compare Source](https://github.com/shirou/gopsutil/compare/v4.24.10...v4.24.11)
<!-- Release notes generated using configuration in .github/release.yml at v4.24.11 -->
#### What's Changed
##### host
- add anolis family with anolis platform in host/host\_linux.go by [@​wangyu-geek](https://github.com/wangyu-geek) in [#​1745](https://github.com/shirou/gopsutil/pull/1745)
#### New Contributors
- [@​wangyu-geek](https://github.com/wangyu-geek) made their first contribution in [#​1745](https://github.com/shirou/gopsutil/pull/1745)
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v4.24.10...v4.24.11>
### [`v4.24.10`](https://github.com/shirou/gopsutil/releases/tag/v4.24.10)
[Compare Source](https://github.com/shirou/gopsutil/compare/v4.24.9...v4.24.10)
<!-- Release notes generated using configuration in .github/release.yml at v4.24.10 -->
#### What's Changed
##### cpu
- \[cpu]\[disk]\[netbsd] Generate arm-specific definitions by [@​Lomanic](https://github.com/Lomanic) in [#​1731](https://github.com/shirou/gopsutil/pull/1731)
##### mem
- fix(mem): possible memory leak on Windows by [@​uubulb](https://github.com/uubulb) in [#​1722](https://github.com/shirou/gopsutil/pull/1722)
- feat(mem): Add windows commit stats by [@​n4nn31355](https://github.com/n4nn31355) in [#​1720](https://github.com/shirou/gopsutil/pull/1720)
##### Other Changes
- sensors: avoid passing nil pointer to CFArrayGetCount by [@​uubulb](https://github.com/uubulb) in [#​1727](https://github.com/shirou/gopsutil/pull/1727)
#### New Contributors
- [@​n4nn31355](https://github.com/n4nn31355) made their first contribution in [#​1720](https://github.com/shirou/gopsutil/pull/1720)
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v4.24.9...v4.24.10>
### [`v4.24.9`](https://github.com/shirou/gopsutil/releases/tag/v4.24.9)
[Compare Source](https://github.com/shirou/gopsutil/compare/v4.24.8...v4.24.9)
<!-- Release notes generated using configuration in .github/release.yml at v4.24.9 -->
#### Important Change
Since [#​1702](https://github.com/shirou/gopsutil/issues/1702), the Darwin implementation has been switched from cgo to [purego](https://github.com/ebitengine/purego) (Great contribution from [@​uubulb](https://github.com/uubulb)). As a result, cgo has been removed from the Darwin implementation, making cross-compilation easier. We believe this change will not have any impact, but if you encounter any issues, please create an issue.
#### What's Changed
##### cpu, mem, sensors, disk, process on darwin
- feat(cpu, mem, sensors, disk, process)(darwin): cgo-free implementations by [@​uubulb](https://github.com/uubulb) in [#​1702](https://github.com/shirou/gopsutil/pull/1702)
##### process
- \[process]\[darwin]\[freebsd]\[linux]\[openbsd] Make process.Children not reliant on pgrep by [@​Lomanic](https://github.com/Lomanic) in [#​1706](https://github.com/shirou/gopsutil/pull/1706)
- implement process:NumFDs for Windows by [@​al-online](https://github.com/al-online) in [#​1712](https://github.com/shirou/gopsutil/pull/1712)
- Fix resolution for process create time limited to seconds by [@​joshiste](https://github.com/joshiste) in [#​1713](https://github.com/shirou/gopsutil/pull/1713)
##### Other Changes
- fix: remove coverall and godocs.io badge from README by [@​shirou](https://github.com/shirou) in [#​1705](https://github.com/shirou/gopsutil/pull/1705)
- \[common] add HOST\_PROC\_MOUNTINFO to EnvMap by [@​atoulme](https://github.com/atoulme) in [#​1707](https://github.com/shirou/gopsutil/pull/1707)
- Fix error message typo in sensors\_linux by [@​henrygd](https://github.com/henrygd) in [#​1715](https://github.com/shirou/gopsutil/pull/1715)
#### New Contributors
- [@​al-online](https://github.com/al-online) made their first contribution in [#​1712](https://github.com/shirou/gopsutil/pull/1712)
- [@​joshiste](https://github.com/joshiste) made their first contribution in [#​1713](https://github.com/shirou/gopsutil/pull/1713)
- [@​henrygd](https://github.com/henrygd) made their first contribution in [#​1715](https://github.com/shirou/gopsutil/pull/1715)
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v4.24.8...v4.24.9>
### [`v4.24.8`](https://github.com/shirou/gopsutil/releases/tag/v4.24.8)
[Compare Source](https://github.com/shirou/gopsutil/compare/v4.24.7...v4.24.8)
<!-- Release notes generated using configuration in .github/release.yml at v4.24.8 -->
#### What's Changed
##### disk
- fix(IOCountersWithContext): Fix the issue of not using names to fil ter devices in func IOCountersWithContext of the windows implementation by [@​zmyzheng](https://github.com/zmyzheng) in [#​1688](https://github.com/shirou/gopsutil/pull/1688)
- \[disk]\[windows]: ignore network drive when not ready by [@​shirou](https://github.com/shirou) in [#​1699](https://github.com/shirou/gopsutil/pull/1699)
##### process
- Fix parsing of /proc/pid/smaps when path is empty by [@​pgimalac](https://github.com/pgimalac) in [#​1691](https://github.com/shirou/gopsutil/pull/1691)
- Refactoring the algorithm for calculating CPU usage by [@​TheBestLL](https://github.com/TheBestLL) in [#​1692](https://github.com/shirou/gopsutil/pull/1692)
- Fix panic on OpenBSD and FreeBSD systems if KinfoProc size has an unexpected size by [@​fivitti](https://github.com/fivitti) in [#​1694](https://github.com/shirou/gopsutil/pull/1694)
##### Other Changes
- Fix badge link in README.md by [@​Yurunsoft](https://github.com/Yurunsoft) in [#​1695](https://github.com/shirou/gopsutil/pull/1695)
- fix golangcilint errors, ignore gosec G115 by [@​shirou](https://github.com/shirou) in [#​1697](https://github.com/shirou/gopsutil/pull/1697)
- fix: golangci lint with max -> maxConn by [@​shirou](https://github.com/shirou) in [#​1693](https://github.com/shirou/gopsutil/pull/1693)
#### New Contributors 🎉
- [@​zmyzheng](https://github.com/zmyzheng) made their first contribution in [#​1688](https://github.com/shirou/gopsutil/pull/1688)
- [@​Yurunsoft](https://github.com/Yurunsoft) made their first contribution in [#​1695](https://github.com/shirou/gopsutil/pull/1695)
- [@​pgimalac](https://github.com/pgimalac) made their first contribution in [#​1691](https://github.com/shirou/gopsutil/pull/1691)
- [@​TheBestLL](https://github.com/TheBestLL) made their first contribution in [#​1692](https://github.com/shirou/gopsutil/pull/1692)
- [@​fivitti](https://github.com/fivitti) made their first contribution in [#​1694](https://github.com/shirou/gopsutil/pull/1694)
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v4.24.7...v4.24.8>
### [`v4.24.7`](https://github.com/shirou/gopsutil/releases/tag/v4.24.7)
[Compare Source](https://github.com/shirou/gopsutil/compare/v4.24.6...v4.24.7)
<!-- Release notes generated using configuration in .github/release.yml at v4.24.7 -->
#### **Important Notice Regarding Value Changes on mem.SwapMemory() on Windows**
In change [#​1677](https://github.com/shirou/gopsutil/issues/1677), the values returned by `mem.SwapMemory()` on Windows have been significantly revised. Previously, these values were calculated from the [`PERFORMANCE_INFORMATION`](https://learn.microsoft.com/en-us/windows/win32/api/psapi/ns-psapi-performance_information) structure of the [`GetPerformanceInfo`](https://learn.microsoft.com/en-us/windows/win32/api/psapi/nf-psapi-getperformanceinfo) win32 function, but this calculation was incorrect. Consequently, it has been adjusted to align with the [psutil implementation](https://github.com/giampaolo/psutil/blob/c034e6692cf736b5e87d14418a8153bb03f6cf42/psutil/_pswindows.py#L250-L273). As a result, the values returned by `mem.SwapMemory()` are expected to differ greatly from previous values.
#### What's Changed
##### docker
- fix: docker\_memory in centos\_7.5 & docker\_1.13.1 by [@​coderZoe](https://github.com/coderZoe) in [#​1670](https://github.com/shirou/gopsutil/pull/1670)
##### mem
- \[windows]\[mem]: change to use Performance Counter on SwapMemory. by [@​shirou](https://github.com/shirou) in [#​1677](https://github.com/shirou/gopsutil/pull/1677)
##### Other Changes
- fix: read temperature sensors darwin arm by [@​Girbons](https://github.com/Girbons) in [#​1672](https://github.com/shirou/gopsutil/pull/1672)
- fix: remove macos11 and add ubuntu-24.04 on GitHub runner list. by [@​shirou](https://github.com/shirou) in [#​1676](https://github.com/shirou/gopsutil/pull/1676)
#### New Contributors
- [@​coderZoe](https://github.com/coderZoe) made their first contribution in [#​1670](https://github.com/shirou/gopsutil/pull/1670)
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v4.24.6...v4.24.7>
### [`v4.24.6`](https://github.com/shirou/gopsutil/releases/tag/v4.24.6)
[Compare Source](https://github.com/shirou/gopsutil/compare/v4.24.5...v4.24.6)
<!-- Release notes generated using configuration in .github/release.yml at v4.24.6 -->
#### What's Changed
##### host
- Issue 1658: Fix for parsing error where 'day,' is ignored on AIX uptime check by [@​aidangill-projects](https://github.com/aidangill-projects) in [#​1659](https://github.com/shirou/gopsutil/pull/1659)
- Resolved Issue 1661 - AIX Runtime Panic in Host by [@​aidangill-projects](https://github.com/aidangill-projects) in [#​1663](https://github.com/shirou/gopsutil/pull/1663)
##### sensors
- fix memory leak by [@​thechampagne](https://github.com/thechampagne) in [#​1656](https://github.com/shirou/gopsutil/pull/1656)
- fix: package misnaming in `sensors_freebsd.go` by [@​uubulb](https://github.com/uubulb) in [#​1668](https://github.com/shirou/gopsutil/pull/1668)
##### Other Changes
- Fix boot time not returning stat file value by [@​govrin](https://github.com/govrin) in [#​1655](https://github.com/shirou/gopsutil/pull/1655)
#### New Contributors
- [@​thechampagne](https://github.com/thechampagne) made their first contribution in [#​1656](https://github.com/shirou/gopsutil/pull/1656)
- [@​aidangill-projects](https://github.com/aidangill-projects) made their first contribution in [#​1659](https://github.com/shirou/gopsutil/pull/1659)
- [@​govrin](https://github.com/govrin) made their first contribution in [#​1655](https://github.com/shirou/gopsutil/pull/1655)
- [@​uubulb](https://github.com/uubulb) made their first contribution in [#​1668](https://github.com/shirou/gopsutil/pull/1668)
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v4.24.5...v4.24.6>
<!-- Release notes generated using configuration in .github/release.yml at v4.24.6 -->
#### What's Changed
##### host
- Issue 1658: Fix for parsing error where 'day,' is ignored on AIX uptime check by [@​aidangill-projects](https://github.com/aidangill-projects) in [#​1659](https://github.com/shirou/gopsutil/pull/1659)
- Resolved Issue 1661 - AIX Runtime Panic in Host by [@​aidangill-projects](https://github.com/aidangill-projects) in [#​1663](https://github.com/shirou/gopsutil/pull/1663)
##### Other Changes
- fix memory leak by [@​thechampagne](https://github.com/thechampagne) in [#​1656](https://github.com/shirou/gopsutil/pull/1656)
- Fix boot time not returning stat file value by [@​govrin](https://github.com/govrin) in [#​1655](https://github.com/shirou/gopsutil/pull/1655)
- fix: package misnaming in `sensors_freebsd.go` by [@​uubulb](https://github.com/uubulb) in [#​1668](https://github.com/shirou/gopsutil/pull/1668)
#### New Contributors
- [@​thechampagne](https://github.com/thechampagne) made their first contribution in [#​1656](https://github.com/shirou/gopsutil/pull/1656)
- [@​aidangill-projects](https://github.com/aidangill-projects) made their first contribution in [#​1659](https://github.com/shirou/gopsutil/pull/1659)
- [@​govrin](https://github.com/govrin) made their first contribution in [#​1655](https://github.com/shirou/gopsutil/pull/1655)
- [@​uubulb](https://github.com/uubulb) made their first contribution in [#​1668](https://github.com/shirou/gopsutil/pull/1668)
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v4.24.5...v4.24.6>
### [`v4.24.5`](https://github.com/shirou/gopsutil/releases/tag/v4.24.5)
[Compare Source](https://github.com/shirou/gopsutil/compare/v3.24.5...v4.24.5)
#### What's Changed
gopsutil v4 is released as `v4.24.5`. `v3` will not be updated except for high level security issues.
#### Breaking Changes
- `host/SensorsTemperatures()` moved to in the new `sensors` package.
- `process.Groups()` now returns uint32. ([#​1424](https://github.com/shirou/gopsutil/issues/1424))
- `process.Uids()` and `process.Gids()` also now uint32.
- The Pid remains int32. This is because changing it is expected to have a significant impact.
- `mem.VirtualMemoryExStat` is now `ExVirtualMemory` with `ExLinux` and `ExWindows`. See document about [`Ex structs`](https://github.com/shirou/gopsutil?tab=readme-ov-file#ex-struct-from-v4245).
#### Other
- Add SPDX license header line.
- Remove [coveralls.io](https://coveralls.io/)
- Remove old go build tag such as `// +build`
**Full Changelog**: <https://github.com/shirou/gopsutil/compare/v3.24.5...v4.24.5>
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi43MS4yIiwidXBkYXRlZEluVmVyIjoiNDIuNzEuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
v3.24.5→v4.25.12Release Notes
shirou/gopsutil (github.com/shirou/gopsutil/v3)
v4.25.12Compare Source
What's Changed
cpu
disk
host
mem
process
New Contributors
Full Changelog: https://github.com/shirou/gopsutil/compare/v4.25.11...v4.25.12
v4.25.11Compare Source
What's Changed
cpu
disk
process
Other Changes
New Contributors
Full Changelog: https://github.com/shirou/gopsutil/compare/v4.25.10...v4.25.11
v4.25.10Compare Source
What's Changed
cpu
disk
host
net
Other Changes
New Contributors
Full Changelog: https://github.com/shirou/gopsutil/compare/v4.25.9...v4.25.10
v4.25.9Compare Source
What's Changed
cpu
disk
process
Other Changes
New Contributors
Full Changelog: https://github.com/shirou/gopsutil/compare/v4.25.8...v4.25.9
v4.25.8Compare Source
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
disk
mem
process
Other Changes
New Contributors
Full Changelog: https://github.com/shirou/gopsutil/compare/v4.25.7...v4.25.8
v4.25.7Compare Source
What's Changed
disk
mem
process
Other Changes
New Contributors
Full Changelog: https://github.com/shirou/gopsutil/compare/v4.25.6...v4.25.7
v4.25.6Compare Source
What's Changed
disk
mem
process
Other Changes
New Contributors
Full Changelog: https://github.com/shirou/gopsutil/compare/v4.25.5...v4.25.6
v4.25.5Compare Source
What's Changed
cpu
docker
host
Other Changes
New Contributors
Full Changelog: https://github.com/shirou/gopsutil/compare/v4.25.4...v4.25.5
v4.25.4Compare Source
What's Changed
cpu
disk
host
Other Changes
New Contributors
Full Changelog: https://github.com/shirou/gopsutil/compare/v4.25.3...v4.25.4
v4.25.3Compare Source
Important Notice
Starting from this release, we have set the Go version in
go.modto 1.23. Moving forward, we plan to continuously update it to the second most recent Go release.We understand that gopsutil runs on various platforms, and some applications using it may only support older Go versions. With this release, those applications might no longer be able to build. However, as discussed in #1804, we made this change because golang.org/x/sys, which gopsutil depends on, has adopted a policy of continuously updating its Go version.
That said, we intend to be conservative about syntax changes and avoid unnecessary modifications whenever possible.
What's Changed
disk
host
process
Chore
Other Changes
New Contributors
Full Changelog: https://github.com/shirou/gopsutil/compare/v4.25.2...v4.25.3
v4.25.2Compare Source
What's Changed
cpu
net
process
Process.CmdlineSliceWithContextincorrect on Windows by @RomainMuller in #1796Other Changes
New Contributors
Full Changelog: https://github.com/shirou/gopsutil/compare/v4.25.1...v4.25.2
v4.25.1Compare Source
What's Changed
Other Changes
Full Changelog: https://github.com/shirou/gopsutil/compare/v4.24.12...v4.25.1
v4.24.12Compare Source
What's Changed
cpu
mem
net
process
sensors
Other Changes
New Contributors
Full Changelog: https://github.com/shirou/gopsutil/compare/v4.24.11...v4.24.12
v4.24.11Compare Source
What's Changed
host
New Contributors
Full Changelog: https://github.com/shirou/gopsutil/compare/v4.24.10...v4.24.11
v4.24.10Compare Source
What's Changed
cpu
mem
Other Changes
New Contributors
Full Changelog: https://github.com/shirou/gopsutil/compare/v4.24.9...v4.24.10
v4.24.9Compare Source
Important Change
Since #1702, the Darwin implementation has been switched from cgo to purego (Great contribution from @uubulb). As a result, cgo has been removed from the Darwin implementation, making cross-compilation easier. We believe this change will not have any impact, but if you encounter any issues, please create an issue.
What's Changed
cpu, mem, sensors, disk, process on darwin
process
Other Changes
New Contributors
Full Changelog: https://github.com/shirou/gopsutil/compare/v4.24.8...v4.24.9
v4.24.8Compare Source
What's Changed
disk
process
Other Changes
New Contributors 🎉
Full Changelog: https://github.com/shirou/gopsutil/compare/v4.24.7...v4.24.8
v4.24.7Compare Source
Important Notice Regarding Value Changes on mem.SwapMemory() on Windows
In change #1677, the values returned by
mem.SwapMemory()on Windows have been significantly revised. Previously, these values were calculated from thePERFORMANCE_INFORMATIONstructure of theGetPerformanceInfowin32 function, but this calculation was incorrect. Consequently, it has been adjusted to align with the psutil implementation. As a result, the values returned bymem.SwapMemory()are expected to differ greatly from previous values.What's Changed
docker
mem
Other Changes
New Contributors
Full Changelog: https://github.com/shirou/gopsutil/compare/v4.24.6...v4.24.7
v4.24.6Compare Source
What's Changed
host
sensors
sensors_freebsd.goby @uubulb in #1668Other Changes
New Contributors
Full Changelog: https://github.com/shirou/gopsutil/compare/v4.24.5...v4.24.6
What's Changed
host
Other Changes
sensors_freebsd.goby @uubulb in #1668New Contributors
Full Changelog: https://github.com/shirou/gopsutil/compare/v4.24.5...v4.24.6
v4.24.5Compare Source
What's Changed
gopsutil v4 is released as
v4.24.5.v3will not be updated except for high level security issues.Breaking Changes
host/SensorsTemperatures()moved to in the newsensorspackage.process.Groups()now returns uint32. (#1424)process.Uids()andprocess.Gids()also now uint32.mem.VirtualMemoryExStatis nowExVirtualMemorywithExLinuxandExWindows. See document aboutEx structs.Other
// +buildFull Changelog: https://github.com/shirou/gopsutil/compare/v3.24.5...v4.24.5
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
ℹ️ Artifact update notice
File name: go.mod
In order to perform the update(s) described in the table above, Renovate ran the
go getcommand, which resulted in the following additional change(s):Details:
github.com/power-devops/perfstatv0.0.0-20210106213030-5aafc221ea8c->v0.0.0-20240221224432-82ca36839d55github.com/tklauser/go-sysconfv0.3.12->v0.3.16github.com/tklauser/numcpusv0.6.1->v0.11.0