Skip to content

fix: accurate macOS memory usage reporting#1585

Open
scarecrowgit wants to merge 1 commit intoaristocratos:mainfrom
scarecrowgit:fix/macos-memory-reporting
Open

fix: accurate macOS memory usage reporting#1585
scarecrowgit wants to merge 1 commit intoaristocratos:mainfrom
scarecrowgit:fix/macos-memory-reporting

Conversation

@scarecrowgit
Copy link
Copy Markdown

- Use host_page_size() instead of sysconf(_SC_PAGE_SIZE) to get the hardware page size for vm_statistics64 calculations, fixing a 4x undercount on Apple Silicon
- Add other pages to formula for more accurate data

    - Use host_page_size() instead of sysconf(_SC_PAGE_SIZE) to get the hardware page size for vm_statistics64 calculations, fixing a 4x undercount on Apple Silicon
    - Add other pages to formula for more accurate data
@scarecrowgit
Copy link
Copy Markdown
Author

so before data was totally inaccurate like this:
Screenshot 2026-03-25 at 1 11 13 AM

after changes it become pretty much closer:
Screenshot 2026-03-25 at 1 10 57 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant