Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On macOS, add a check for memory available #107

Open
bitcoin-tools opened this issue Feb 27, 2024 · 3 comments
Open

On macOS, add a check for memory available #107

bitcoin-tools opened this issue Feb 27, 2024 · 3 comments

Comments

@bitcoin-tools
Copy link
Owner

https://apple.stackexchange.com/questions/4286/is-there-a-mac-os-x-terminal-version-of-the-free-command-in-linux-systems

@bitcoin-tools
Copy link
Owner Author

user1@comp4 nodebuilder % sysctl hw.memsize
hw.memsize: 19327352832

@bitcoin-tools
Copy link
Owner Author

user1@comp4 nodebuilder % memory_pressure       
The system has 19327352832 (1179648 pages with a page size of 16384).

Stats: 
Pages free: 279933 
Pages purgeable: 86796 
Pages purged: 5341286 

Swap I/O:
Swapins: 53612 
Swapouts: 77276 

Page Q counts:
Pages active: 296553 
Pages inactive: 191729 
Pages speculative: 102305 
Pages throttled: 0 
Pages wired down: 157016 

Compressor Stats:
Pages used by compressor: 98040 
Pages decompressed: 59403359 
Pages compressed: 60691384 

File I/O:
Pageins: 12486878 
Pageouts: 78609 

System-wide memory free percentage: 77%
user1@comp4 nodebuilder % 

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

No branches or pull requests

1 participant