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
Maximum Number of Concurrent Connections on a Single Port (Socket) of Server
How Clear and Invalidate Arm V7 Processor Cache from User Mode on Linux 2.6.35
Optimize PDF Files (With Ghostscript or Other)
Bash: Silently Kill Background Function Process
How to Calculate CPU Utilization of a Process & All Its Child Processes in Linux
Delete All Files Older Than 30 Days, Based on File Name as Date
Cross-Compile a Rust Application from Linux to Windows
Why Doesn't Linux Use the Hardware Context Switch via the Tss
Reading Living Process Memory Without Interrupting It
What's the Purpose of Each of the Different Uids a Process Can Have
What Is the Purpose of Map_Anonymous Flag in Mmap System Call
How to Parse CSV Files on the Linux Command Line
How to Sort a File, Based on Its Numerical Values for a Field
Extracting Columns from Text File with Different Delimiters in Linux
Gcloud Compute Copy-Files': Permission Denied When Copying Files