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

Unable to get the OOM killed event when the memory usage of the pod is greater than limit in KinD cluster #2514

Closed
Imboncy opened this issue Oct 25, 2021 · 3 comments
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@Imboncy
Copy link

Imboncy commented Oct 25, 2021

Details

  • I have defined the pod resource request as follow on a kind cluster:
resources:
  requests:
    memory: "64Mi"
    cpu: "250m"
  limits:
    memory: "256Mi"
    cpu: "500m"

But When I'm consuming higher memeor resources still i don't see any OOM Killed event.

inside the pod

/app # ps aux
PID   USER     TIME  COMMAND
    1 root      0:00 dumb-init node --experimental-vm-modules ./dist/index.js
    7 root      0:00 node --experimental-vm-modules ./dist/index.js
   17 root      0:00 sh
   53 root      0:00 stress-ng --timeout 1200s --vm 1 --vm-bytes 500M --vm-hang 1
   54 root      0:00 stress-ng-vm [run]
   55 root      3:36 stress-ng-vm [run]
   56 root      0:00 sh
   63 root      0:00 ps aux

The memory usage is never exceding the litmit as shown below:

/app # cat /sys/fs/cgroup/memory/memory.limit_in_bytes
268435456
/app # cat /sys/fs/cgroup/memory/memory.usage_in_bytes
268210176
@Imboncy Imboncy added the kind/support Categorizes issue or PR as a support question. label Oct 25, 2021
@BenTheElder
Copy link
Member

Memory limits don't work, unfortunately. #877

@aojea
Copy link
Contributor

aojea commented Oct 30, 2021

/close

@k8s-ci-robot
Copy link
Contributor

@aojea: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

4 participants