3 ms·
> Memory pressure is an internal macOS system metric Interesting. That'll probably mean it's in the source code Apple publishes for macOS: https://github.com
by justinclift 2y ago
> Memory pressure is an internal macOS system metric
Interesting. That'll probably mean it's in the source code Apple publishes for macOS:
https://github.com/apple-oss-distributions/distribution-macOS https://github.com/apple-oss-distributions/distribution-macO...
Doing a search for the phrase "memory pressure" in the containing organisation (apple-oss-distributions) shows some relevant stuff:
https://github.com/search?q=org%3Aapple-oss-distributions+%22memory+pressure%22 https://github.com/search?q=org%3Aapple-oss-distributions+%2...
• memorystatus.md : https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/doc/vm/memorystatus.md?plain=1#L3 https://github.com/apple-oss-distributions/xnu/blob/94d3b452...
# Memorystatus Subsystem
Dealing with memory pressure by forcibly recovering pages.
(etc)
• memory_pressure.1 : https://github.com/apple-oss-distributions/system_cmds/blob/1bca46ecc5b76432f42eb23ec39fe63e8159f251/memory_pressure/memory_pressure.1#L8 https://github.com/apple-oss-distributions/system_cmds/blob/...
Looks like the man page for a `memory_pressure` command
• freezer.md : https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/doc/vm/freezer.md?plain=1#L8 https://github.com/apple-oss-distributions/xnu/blob/94d3b452...
# Freezer
Details of how some processes can be swapped out to disk.
[...] The freezer is a limited form of swap on embedded. Under memory pressure,
the freezer picks apps to freeze.
(etc)
And a whole bunch more. With some digging, it should be possible to find the exact info. :)
- varenc 2y agoWhoa great sleuthing! Also fun to see Apple internal documentation in .md format