Replies: 1 comment
-
|
Sorry for the late reply! It mostly just reports what https://crates.io/crates/sysinfo is reporting, which should now match https://github.com/apple-oss-distributions/xnu/blob/main/doc/vm/memorystatus_notify.md#available-memory. In particular (see here): self.mem_available = u64::from(stat.active_count)
.saturating_add(u64::from(stat.inactive_count))
.saturating_add(u64::from(stat.free_count))
.saturating_mul(self.page_size_b);
self.mem_used = u64::from(stat.internal_page_count)
.saturating_sub(u64::from(stat.purgeable_count))
.saturating_add(u64::from(stat.wire_count))
.saturating_add(u64::from(stat.compressor_page_count))
.saturating_mul(self.page_size_b);
self.mem_free = u64::from(stat.free_count)
.saturating_sub(u64::from(stat.speculative_count))
.saturating_mul(self.page_size_b); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
what exactly does the memory usage graph on macOS show?
Currently:
11.9GiB/16.OGiB.MemRegions: 0 total, 0B resident, 0B private, 2086M shared. PhysMem: 15G used (2970M wired, 5276M compressor), 165M unused.12.8G/16.0GEDIT: pages to MB:
Beta Was this translation helpful? Give feedback.
All reactions