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

Remove conflicting & inaccurate Docker Desktop memory warning #9144

Merged
merged 1 commit into from
Sep 2, 2020

Conversation

tstromberg
Copy link
Contributor

@tstromberg tstromberg commented Sep 1, 2020

I propose we remove this warning for a couple of reasons:

  • The 3GB recommendation here conflicts with the 2.25 GB recommendation we make 18 lines above it.

  • This puts us in an awkward position of providing conflicting advice: we first ask the user to increase to 2.25GB, then we warn that they haven't increased it to 3GB

  • I have observed no performance degradation with 2GB of memory. Intuitively, with the exception of OOM pressure, the amount of memory has little measurable effect on Kubernetes performance. I would be willing to accept measurements that disprove this assertion, however.

  • If there was a warning to be made here, there is nothing that should make it a Docker Desktop specific warning

  • For people who intentionally allocate only 2GB of memory, the warning is noisy and there is no way to turn it off.

Fixes #8892

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 1, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tstromberg

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 1, 2020
@tstromberg tstromberg changed the title Remove conflicting & possibly inaccurate Docker Desktop memory warning Remove conflicting & inaccurate Docker Desktop memory warning Sep 1, 2020
@tstromberg
Copy link
Contributor Author

I did think of one scenario where this could possibly be an accurate warning: an unexpected swap behavior?

It's possible to trigger a swapping scenario with 1GB of memory usage:

docker@minikube:~$ free
              total        used        free      shared  buff/cache   available
Mem:        1008588      665576       60520        1984      282492      200532
Swap:        524284      160768      363516

With 2GB, it's more modest. It seems like we should just turn off swap altogether for Docker.

              total        used        free      shared  buff/cache   available
Mem:        2039264      802480       96580        8476     1140204     1077124
Swap:        524284       18004      506280

@tstromberg
Copy link
Contributor Author

Sent out a separate PR to fix the underlying swap performance issue that caused this warning to be emitted in the first place.

@sharifelgamal sharifelgamal merged commit 830af29 into kubernetes:master Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warn if Docker is likely to encounter swap issues (performance impact)
3 participants