Skip to content

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

Open
graalvmbot wants to merge 1 commit intomasterfrom
fniephaus/74008/memory_pressure
Open

[GR-74008] Use memory_pressure for free memory on macOS.#13141
graalvmbot wants to merge 1 commit intomasterfrom
fniephaus/74008/memory_pressure

Conversation

@graalvmbot
Copy link
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
Copy link
Contributor

@eregon eregon left a comment

Choose a reason for hiding this comment

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

Looks good 👍

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