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

Add in support for the --memory-manager-policy flag? #2977

Closed
diranged opened this issue Apr 4, 2023 · 5 comments · Fixed by #2930
Closed

Add in support for the --memory-manager-policy flag? #2977

diranged opened this issue Apr 4, 2023 · 5 comments · Fixed by #2930
Assignees
Labels
area/kubernetes K8s including EKS, EKS-A, and including VMW area/settings Issues related to our settings handling status/in-progress This issue is currently being worked on type/enhancement New feature or request

Comments

@diranged
Copy link

diranged commented Apr 4, 2023

What I'd like:

#1659 helps us use the topology manager - but it's real power comes with the
memory manager flags. Can we have these added in so that we have parity with the --cpu-manager-policy flags?

@diranged diranged added status/needs-triage Pending triage or re-evaluation type/enhancement New feature or request labels Apr 4, 2023
@stmcginnis
Copy link
Contributor

Thanks for bringing this up @diranged. I'm just starting to look in to this, but can you confirm - it looks like the only thing missing right now is (memoryManagerPolicy in the KubeletConfiguration)[https://kubernetes.io/docs/reference/config-api/kubelet-config.v1beta1/]. Is that your understand as well? Any other flags that need to be set?

@stmcginnis stmcginnis self-assigned this Apr 4, 2023
@stmcginnis stmcginnis added area/kubernetes K8s including EKS, EKS-A, and including VMW status/research This issue is being researched area/settings Issues related to our settings handling and removed status/needs-triage Pending triage or re-evaluation labels Apr 4, 2023
@stmcginnis
Copy link
Contributor

Looks like perhaps reservedMemory too.

@diranged
Copy link
Author

diranged commented Apr 4, 2023

I think that you already handled reservedMemory in the kubelet config?

@stmcginnis
Copy link
Contributor

stmcginnis commented Apr 4, 2023

I don't think so. I'm looking at the example in the docs:

--feature-gates=MemoryManager=true
--kube-reserved=cpu=4,memory=4Gi
--system-reserved=cpu=1,memory=1Gi
--memory-manager-policy=Static
--reserved-memory '0:memory=3Gi;1:memory=2148Mi'

The feature gate is enabled by default with 1.22 and later, so nothing should need to be done there.

I believe --kube-reserved corresponds to the kubeReserved kubelet config.

And --system-reserved is covered with the systemReserved settings.

That would leave memoryManagerPolicy (--memory-manager-policy) if set to static and reservedMemory (--reserved-memory) with the list of MemoryReservation settings.

At least that's what I'm interpreting so far. I haven't had to use these settings elsewhere yet, so still trying to parse through the various docs to understand it well enough.

@diranged
Copy link
Author

diranged commented Apr 4, 2023

Thank you for quickly hopping on this.. it's not super urgent for us, but we'd love to see this feature in an upcoming release. Much appreciated!

@stmcginnis stmcginnis added status/in-progress This issue is currently being worked on and removed status/research This issue is being researched labels Apr 6, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in Bottlerocket Engineering Roadmap May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kubernetes K8s including EKS, EKS-A, and including VMW area/settings Issues related to our settings handling status/in-progress This issue is currently being worked on type/enhancement New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

2 participants