How to Set Memory Limit for Oom Killer for Chrome

How can I OOM kill a pod manually in Kubernetes

You can run stress-ng in the pod. With this tool you can also stress CPU, I/O altogether if you need.

Memory limits in webassembly

I summarize a bit the above answers, the comments and a bit more of googling done around; there are two issues that prevent using WebAssembly for being used projects that require a significant amount of memory:

  • current WebAssembly implementations follow a 32bit addressing space model, so no hope of using more than 4gb of mem until wasm64 is out (proposal overview).
  • browsers arbitrarily decide what is the amount of memory given to a page. This is (mostly) for security reason because people love to think to web pages as something more "safe" than desktop applications.

Hopefully both issues can be solved. I hope that browsers will expose those limits in a explicit way; just like when a page request to use your camera it is notified, you should simply notify the user that a page want a ton of memory and block it until you answer.



Related Topics



Leave a reply



Submit