Skip to content

chore(deps): bump github.com/shirou/gopsutil/v4 from 4.26.10 to 4.26.11 - #12

Merged
ysicing merged 1 commit into
masterfrom
dependabot/go_modules/github.com/shirou/gopsutil/v4-4.26.11
Dec 5, 2026
Merged

ysicing merged 1 commit into
masterfrom
dependabot/go_modules/github.com/shirou/gopsutil/v4-4.26.11

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 3, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/shirou/gopsutil/v4 from 4.26.10 to 4.26.11.

Release notes

Sourced from github.com/shirou/gopsutil/v4's releases.

v4.26.11

[!IMPORTANT]

Planned breaking change: mem.SwapMemory vmstat values on Linux

This release includes #2188. In a future release, four Linux values of SwapMemory will change. The API will not change.

These values are wrong now. They are multiplied by 4096 by mistake.

Field Now After the change
PgIn, PgOut KiB × 4096 bytes (1/4 of now)
PgFault, PgMajFault count × 4096 count (1/4096 of now)
  • In February 2027, the fixed values will become the default.
  • The Windows disk.IOCounters change from v4.26.10 (#2164) will happen in the same release.

You can switch to the fixed values now with the new context key mem.WillBeDeletedOptInLinuxSwapVmstatUnits:

ctx := context.WithValue(context.Background(), mem.WillBeDeletedOptInLinuxSwapVmstatUnits, true)
stat, err := mem.SwapMemoryWithContext(ctx)
  • Without this key, nothing changes in this release.
  • Other platforms ignore this key.
  • This key will be removed when the fixed values become the default. Remove it from your code at that time.

(#2188)

[!IMPORTANT]

Behaviour change: disk.Usage Used on macOS APFS

On APFS, Used is now the space used by the volume itself (#2229). Before, it was the space used by the whole APFS container.

  • On /, UsedPercent drops a lot (for example, from about 90% to about 10–20%).
  • Used + Free is no longer equal to Total.
  • The new values match df and psutil. The old values were wrong.
  • Other file systems (exFAT, NFS, ...) do not change. On HFS+, Used includes reserved blocks, as df does.

If you alert on UsedPercent for macOS, please check your thresholds.

[!NOTE]

Other changes in returned values

These are bug fixes. They change values right away, without any opt-in. If your code works around the old values, please remove the workaround.

... (truncated)

Commits
  • 888cbba Merge pull request #2218 from anishpentyala/fix/sysfs-serial-device
  • f693c49 Merge pull request #2232 from shirou/mem-test-skip-no-swap
  • 35f7262 Merge pull request #2229 from sohailshk/fix/apfs-disk-used
  • d617779 Merge pull request #2226 from g4lb/process-linux-boottime-lazy
  • 8710498 [mem]: skip TestSwapDevices when the host has no swap
  • 908cad5 Merge pull request #2222 from sswamy48/cpu_aix
  • 2b8f804 Merge pull request #2220 from shamsManna/windows-kill-pid-reuse
  • 2560807 test: remove superseded serial fixture tests
  • e35b8ba test: focus sysfs serial disk and partition coverage
  • df398c3 disk/linux: preserve HOST_SYS symlink prefixes
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/shirou/gopsutil/v4](https://github.com/shirou/gopsutil) from 4.26.10 to 4.26.11.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](shirou/gopsutil@v4.26.10...v4.26.11)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v4
  dependency-version: 4.26.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Dec 3, 2026
@ysicing
ysicing merged commit e704e08 into master Dec 5, 2026
3 checks passed
@ysicing
ysicing deleted the dependabot/go_modules/github.com/shirou/gopsutil/v4-4.26.11 branch December 5, 2026 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant