I have issue with Container-Optimized OS on GKE. If I run this simple command https://pastebin.com/raw/0WPAnAzn to consume all the RAM, at some point host freezes and doesn't respond to anything. Expected behaviour: the process should be killed by OOM killer. I've tried this on stock Ubuntu and CentOS images and they work perfect: process gets killed without a freeze.
There are three possible kmsg outputs in Serial console:
- In some cases log doesn't contain anything related to freeze
- Sometimes there is series of OOM kills of other processes followed by freeze without any related message
- And the most interesting: OOM kills followed by kernel panic (https://pastebin.com/raw/gtdsg6vQ)
Freezes are accompanied by near 100% CPU load.
So this is expected behaviour or there is something wrong?