-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
docker/podman: warn if allocated memory is below limit #8718
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: medyagh The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Travis tests have failedHey @medyagh, 1st Buildmake test
TravisBuddy Request Identifier: daaed0c0-c565-11ea-af19-3b271fec1f42 |
this PR made this windows integration machine be revlead
I had forgotten to increase the memory in one of the windows CI machines. |
@@ -813,12 +817,28 @@ func validateMemorySize() { | |||
out.T(out.Notice, "Requested memory allocation ({{.requested}}MB) is less than the recommended minimum {{.recommended}}MB. Kubernetes may crash unexpectedly.", | |||
out.V{"requested": req, "recommended": minRecommendedMem}) | |||
} | |||
|
|||
if driver.IsDockerDesktop(drvName) { | |||
if containerLimit < 1991 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this re-use minRecommendedMem
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docker info for when it is 2 GB:
Total Memory: 1.945GiB
Travis tests have failedHey @medyagh, 1st Buildmake test
TravisBuddy Request Identifier: d2d87b60-c6e3-11ea-aa06-e17841301e13 |
/ok-to-test |
kvm2 Driver |
kvm2 Driver Times for Minikube (PR 8718): [62.627652054999984 62.970327809000004 63.356936265] Averages Time Per Log
docker Driver |
kvm2 Driver Times for Minikube (PR 8718): [62.971556731999996 64.296524759 64.17082851699999] Averages Time Per Log
docker Driver |
kvm2 Driver Times for Minikube (PR 8718): [62.65889518600001 62.251427324999995 61.837026172] Averages Time Per Log
docker Driver |
kvm2 Driver Times for Minikube (PR 8718): [64.11718042499999 63.489435939 65.06925279200001] Averages Time Per Log
docker Driver |
closes #8540 and #7980
1
Before This PR setting memory Memory=50000000MB
After this PR setting memory to higher than what is available:
2
Before this PR with less than 2 GB memory in docker desktop
(goes un-detected)
After this PR with less than 2 GB memory in docker desktop
3
Suggest user to increase docker desktop memory if user has at least 8 GB system memory
After this PR
4 CPU
Before this PR with 1 CPU in docker
After this PR with a docker desktop with only 1 CPUs