Skip to content

Releases: shirou/gopsutil

v4.26.3

01 Apr 03:20
Immutable release. Only release title and notes can be modified.
c2a1624

Choose a tag to compare

Important Notice

The temporary opt-out option WillBeDeletedOptOutMemAvailableCalc, introduced in v4.25.8, has been removed in this release.

Code that relied on this option may fail to build. If so, please update your code to work with the current VirtualMemoryStat.Used calculation, as the opt-out mechanism is no longer available.

What's Changed

cpu

disk

  • Fix PartitionsWithContext on AIX to avoid returning empty structs by @pgimalac in #2013
  • Implement IOCountersWithContext for AIX with CGO by @pgimalac in #2016
  • disk: fix UsageWithContext unit conversions on AIX nocgo by @Dylan-M in #2032
  • disk: implement IOCountersWithContext for AIX nocgo via iostat by @Dylan-M in #2033

host

load

mem

  • mem: populate Cached from bcachestats on OpenBSD by @skartikey in #2029
  • [mem][linux]: Remove deprecated opt-out for MemAvailable-based Used by @shirou in #2012

net

  • Fix AIX net iocounters error fields and add dropin field by @pgimalac in #2020
  • Fix netstat drop column parsing when address is empty on darwin by @pgimalac in #2025
  • [net][linux]: prevent incorrect deduplication of unnamed UNIX sockets by @shirou in #2031

process

sensors

New Contributors

Full Changelog: v4.26.2...v4.26.3

v4.26.2

01 Mar 08:06
Immutable release. Only release title and notes can be modified.
33fab7d

Choose a tag to compare

What's Changed

disk

  • [disk][linux]: fix Device set to "none" for virtual filesystems by @skartikey in #2002
  • fix(disk): skip drives returning ERROR_INVALID_FUNCTION or ERROR_NOT_SUPPORTED in IOCounters on Windows by @jose-manuel-almaza in #2003
  • [linux][disk]: fix disk mountinfo parsing bug by @shirou in #2007

host

  • refactor: move timeSince and timeSinceMillis to common package by @Dylan-M in #1998

process

Other Changes

New Contributors

Full Changelog: v4.26.1...v4.26.2

v4.26.1

01 Feb 09:06
Immutable release. Only release title and notes can be modified.
b2abf60

Choose a tag to compare

What's Changed

disk

  • [darwin]: convert CFString to Go string properly by @uubulb in #1992

host

  • [host][darwin]: fix utmpx database parsing by @uubulb in #1990
  • feat: Add AIX platform support to common package with uptime and boot time functions by @Dylan-M in #1979

mem

  • feat(mem): add KernelStack field for ExVirtualMemory on linux by @shirou in #1986

process

  • Fix windows open files with context by @ebriney in #1991
  • Return an error on reading empty proc pid stat file by @pgimalac in #1995
  • [process][posix]: fix getTerminalMap path construction bug by @shirou in #1994

sensor

New Contributors

Full Changelog: v4.25.12...v4.26.1

v4.25.12

01 Jan 03:22
Immutable release. Only release title and notes can be modified.
0de4501

Choose a tag to compare

What's Changed

cpu

  • [cpu][linux]: fix ":" in CPU ModelName by @shirou in #1960
  • [cpu][linux]: add riscv cpu parser by @mengzhuo in #1970
  • [cpu][darwin]: release pCoreRef in each iteration by @uubulb in #1971
  • [darwin]: wrap library functions as struct methods by @uubulb in #1976

disk

host

  • Replace AIX uptime function with ps etimes-based implementation by @Dylan-M in #1967

mem

process

  • Add NumFDs implementation for Darwin by @kerlenton in #1965
  • [sensors][darwin]: retrieve sensor information in one function call by @uubulb in #1973

New Contributors

Full Changelog: v4.25.11...v4.25.12

v4.25.11

02 Dec 03:08
Immutable release. Only release title and notes can be modified.
93ca345

Choose a tag to compare

What's Changed

cpu

disk

process

Other Changes

  • fix: remove and add GitHub action runner images. by @shirou in #1948

New Contributors

Full Changelog: v4.25.10...v4.25.11

v4.25.10

01 Nov 05:38
Immutable release. Only release title and notes can be modified.
1da1bb1

Choose a tag to compare

What's Changed

cpu

disk

host

  • fix: linter error about string concat and build tag by @shirou in #1942

net

Other Changes

New Contributors

Full Changelog: v4.25.9...v4.25.10

v4.25.9

01 Oct 01:35
208a0f8

Choose a tag to compare

What's Changed

cpu

disk

process

  • refactor: use slices.Contains to simplify code by @wmypku in #1906

Other Changes

New Contributors

Full Changelog: v4.25.8...v4.25.9

v4.25.8

01 Sep 04:19
02f5628

Choose a tag to compare

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

v4.25.7

01 Aug 03:58
4903902

Choose a tag to compare

What's Changed

disk

  • fix(disk): handle NVMe controller notation in IOCounters on Linux by @skartikey in #1878

mem

process

  • process: Fix parsing of uid/gid's to handle full uint32 range by @halaney in #1887

Other Changes

New Contributors

Full Changelog: v4.25.6...v4.25.7

v4.25.6

01 Jul 02:38
d89a81f

Choose a tag to compare

What's Changed

disk

  • [disk][linux]: fix parsing mount option when use 1/mounts on Partition by @shirou in #1861
  • Fetch stats from folder mounted volumes by @dloucasfx in #1534

mem

  • feat(exwindows): expose phys and pagefile memory by @kruskall in #1868

process

  • fix: optimize performance of process.OpenFiles() by @NitroCao in #1866

Other Changes

New Contributors

Full Changelog: v4.25.5...v4.25.6