Skip to content

correct memory on macos#64

Merged
ThatOneCalculator merged 1 commit into
ThatOneCalculator:mainfrom
rrotter:rrotter/macos_memory
Jun 5, 2025
Merged

correct memory on macos#64
ThatOneCalculator merged 1 commit into
ThatOneCalculator:mainfrom
rrotter:rrotter/macos_memory

Conversation

@rrotter
Copy link
Copy Markdown
Contributor

@rrotter rrotter commented Jun 5, 2025

  • get real pagesize from sysctl rather than assuming 4K
  • account for inactive memory (which is a misleading name, it's still in use)
    • for reference: anonymous minus purgeable is what Activity Monitor refers to as "App Memory", this uses sum of app+wired+compressed
    • result is identical to number produced by neofetch and fastfetch

- get real pagesize from sysctl rather than assuming 4K
- account for inactive memory (which is a misleading name, it's still in
  use)
  - for reference: anonymous-purgeable is what Activity Monitor refers
    to as "App Memory", this uses sum of app+wired+compressed
  - result is identical to number produced by neofetch and fastfetch
@ThatOneCalculator ThatOneCalculator merged commit cbf7c36 into ThatOneCalculator:main Jun 5, 2025
@rrotter rrotter deleted the rrotter/macos_memory branch June 5, 2025 21:45
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.

2 participants