Skip to content

[GR-74008] Use memory_pressure for free memory on macOS.#13141

Merged
graalvmbot merged 1 commit into
masterfrom
fniephaus/74008/memory_pressure
Mar 16, 2026
Merged

[GR-74008] Use memory_pressure for free memory on macOS.#13141
graalvmbot merged 1 commit into
masterfrom
fniephaus/74008/memory_pressure

Conversation

@graalvmbot

Copy link
Copy Markdown
Collaborator

The numbers reported by vm_stat appear to be notoriously off from the actual memory pressure, especially on machines that have been running for some time. This PR changes the detection to use memory_pressure instead of vm_stat.

On my MacBook that's been up for some days, the vm_stat-based detection reports only ~38,75% of free memory. memory_pressure, on the other hand, reports ~81% which matches what Activity Monitor and iStat Menus report.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Mar 12, 2026
@graalvmbot graalvmbot force-pushed the fniephaus/74008/memory_pressure branch from 9c067e8 to f8ea2ae Compare March 12, 2026 17:52

@eregon eregon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@graalvmbot graalvmbot closed this Mar 16, 2026
@graalvmbot graalvmbot deleted the fniephaus/74008/memory_pressure branch March 16, 2026 13:32
@graalvmbot graalvmbot merged commit b20bbbc into master Mar 16, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants