Skip to content

Releases

v4.26.10

Choose a tag to compare

@shirou shirou released this 01 Nov 05:27
Immutable release. Only release title and notes can be modified.
21bfdde

Important

Planned breaking change: disk.IOCounters ReadTime / WriteTime on Windows

This release includes #2164. In a future release, the Windows values of ReadTime and WriteTime will change significantly (seconds to milliseconds). The API will not change.

On Windows, ReadTime and WriteTime are currently in seconds.
On Linux, macOS and FreeBSD they are in milliseconds.
This is a bug (#2160).

  • In a future release, the default on Windows will change to milliseconds.
  • This will happen when psutil fixes the same bug (giampaolo/psutil#3002), or in February 2027 at the latest.
  • After that change, Windows values will be 1000x larger than now.

You can switch to milliseconds now with the new context key disk.WillBeDeletedOptInWindowsIOTimeMs:

ctx := context.WithValue(context.Background(), disk.WillBeDeletedOptInWindowsIOTimeMs, true)
stats, err := disk.IOCountersWithContext(ctx)
  • Without this key, nothing changes in this release.
  • Other platforms ignore this key.
  • This key will be removed when milliseconds become the default.
    Remove it from your code at that time.

(#2164)

What's Changed

disk

host

mem

process

New Contributors

Full Changelog: v4.26.9...v4.26.10

v4.26.9

Choose a tag to compare

@shirou shirou released this 01 Oct 03:30
Immutable release. Only release title and notes can be modified.
81236e0

What's Changed

cpu

  • [cpu][linux]: expose raw tick counters through ExLinux by @fzlzjerry in #2149
  • [cpu][darwin]: don't crash in getFrequency when pmgr lacks voltage-states5-sram by @hsdfat in #2163

docker

  • [docker][linux]: support cgroup v2 in Cgroup* functions by @hsdfat in #2143
  • [docker][linux]: fix the "all cgroup" case on cgroup v1 by @shirou in #2154

host

mem

  • [mem][linux]: document that Cached includes SReclaimable by @shirou in #2155

net

process

Other Changes

  • Bump perfstat to fix memory leaks by @pgimalac in #2148
  • [common]: use reflect.Pointer instead of the deprecated reflect.Ptr by @shirou in #2156

New Contributors

Full Changelog: v4.26.8...v4.26.9

v4.26.8

Choose a tag to compare

@shirou shirou released this 01 Sep 08:35
Immutable release. Only release title and notes can be modified.
7d254a0

What's Changed

cpu

disk

  • fix(disk/aix): use statfs for UsageWithContext on AIX by @pgimalac in #2136

net

process

  • Closes #2126 Implement NtQueryInformationProcess to get commandline Windows 8.1+ by @Ahm3dRN in #2127

Other Changes

New Contributors

Full Changelog: v4.26.7...v4.26.8

v4.26.7

Choose a tag to compare

@shirou shirou released this 01 Aug 03:47
Immutable release. Only release title and notes can be modified.
52a24c8

What's Changed

cpu

  • fix: harden parsers against malformed/truncated input by @shirou in #2109
  • [cpu][windows]: compute cpu-total times from integer ticks by @skartikey in #2111
  • [darwin][process]: fix errno handling and library lifetime on darwin by @shirou in #2119
  • [cpu][windows]: compute total counters from individual stats to handle processor groups correctly by @srebhan in #2125
  • [cpu][windows]: harden the cpu-total computation added in #2125 by @shirou in #2128

net

process

  • process: implement Darwin IOCounters via proc_pid_rusage by @DavRack in #2117

other

  • feat: add psutil comparison tests for cpu, mem and load by @shirou in #2114

New Contributors

Full Changelog: v4.26.6...v4.26.7

v4.26.6

Choose a tag to compare

@shirou shirou released this 01 Jul 09:05
Immutable release. Only release title and notes can be modified.
50a6b05

What's Changed

cpu

  • [cpu][linux]: Add support for CPU clusters in lscpu tests by @guillemj in #2103

disk

  • [disk][linux]: fix missiing sub volume partitions on zfs and btrfs by @shirou in #2101

mem

sensor

  • fix(sensors/darwin): parse sp78 temperatures instead of returning 0.0 by @drutsan in #2084

New Contributors

Full Changelog: v4.26.5...v4.26.6

v4.26.5

Choose a tag to compare

@shirou shirou released this 01 Jun 02:34
Immutable release. Only release title and notes can be modified.
d781152

What's Changed

disk

net

  • [net]: add more information on ProtoCounters godoc by @shirou in #2089

process

New Contributors

Full Changelog: v4.26.4...v4.26.5

v4.26.4

Choose a tag to compare

@shirou shirou released this 02 May 13:48
Immutable release. Only release title and notes can be modified.
71a5d14

What's Changed

cpu

  • [cpu][windows]: fix percpu stats on Windows hosts with multiple processor groups by @shirou in #2081

disk

  • Fix infinite loop when failed to find path for volume on Windows by @woct0rdho in #2066

host

  • host: add testInvoker dependency injection for AIX by @Dylan-M in #2040
  • Use getconf instead of bootinfo on AIX to get kernel architecture by @pgimalac in #2079

load

  • load: fix MiscWithContext process state parsing on AIX nocgo by @Dylan-M in #2037

mem

net

  • net: populate BytesSent/BytesRecv via entstat on AIX nocgo by @Dylan-M in #2034
  • fix: add bounds check for /proc/net/dev fields to prevent panic by @Yanhu007 in #2075
  • net: add parseEntstat and parseNetstatI unit tests with AIX fixtures by @Dylan-M in #2073
  • Implement net ProtoCounters for AIX by @pgimalac in #2083

process

  • fix: add bounds check for /proc/[pid]/stat fields in fillFromTIDStat by @Yanhu007 in #2076
  • [process][linux]: use TrimSuffix instead of Trim by @shirou in #2068

New Contributors

Full Changelog: v4.26.3...v4.26.4

v4.26.3

Choose a tag to compare

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

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

Choose a tag to compare

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

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

Choose a tag to compare

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

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