Skip to content

Conversation

@adam-jian-zhang
Copy link
Owner

@adam-jian-zhang adam-jian-zhang commented Aug 30, 2022

This is a hack to make kubelet use physical memory for calculate
memory usage of the node without changing the data structure which
only accounts private working set and commited pages.
We patch the second to include the difffrom phsical available
memory to the sum of private working set and commited pages.
After the change,
memory usage = memoryPrivWorkingSetBytes + memoryCommittedBytes
= totalPhys - AvailPhys

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@YanzhaoLi
Copy link

Looks like a fix for kubernetes#112111

This is a hack to make kubelet use physical memory for calculate
memory usage of the node without changing the data structure which
only accounts private working set and commited pages.
We patch the second to include the difffrom phsical available
memory to the sum of private working set and commited pages.
After the change,
memory usage = memoryPrivWorkingSetBytes + memoryCommittedBytes
	     = totalPhys - AvailPhys
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