Skip to content

vminitd: add anonymous memory and inactive file stats#538

Merged
dcantah merged 1 commit intoapple:mainfrom
yibozhuang:additional-metrics
Feb 19, 2026
Merged

vminitd: add anonymous memory and inactive file stats#538
dcantah merged 1 commit intoapple:mainfrom
yibozhuang:additional-metrics

Conversation

@yibozhuang
Copy link
Contributor

@yibozhuang yibozhuang commented Feb 19, 2026

These two stats are import to calculate the following

  • wss bytes (memory usage - inactive files)
  • rss bytes (anonymous memory)
  • available bytes (limit - wss bytes)

Just exposing these two in SandboxContext.proto as we already collect them in readMemoryStats() in Cgroup2Manager

@yibozhuang yibozhuang force-pushed the additional-metrics branch 2 times, most recently from d9ffb0a to 51de10e Compare February 19, 2026 00:56
These two stats are import to calculate the following
- wss bytes (memory usage - inactive files)
- rss bytes (anonymous memory)
- available bytes (limit - wss bytes)

Just exposing these two in SandboxContext.proto as we already
collect them in readMemoryStats() in Cgroup2Manager
@yibozhuang yibozhuang changed the title vminitd: add anonymous memory and inactive file pages vminitd: add anonymous memory and inactive file stats Feb 19, 2026
@dcantah dcantah merged commit 6cb52e2 into apple:main Feb 19, 2026
3 checks passed
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.

3 participants

Comments