Almalinux >9.2 kill oom cannot be triggered properly, causing the system to crash

When I execute the following command to load the memory, there will be a situation where it gets stuck until the program releases the memory (the real situation is when running a Java process and the system freezes, requiring a hard restart)

I discovered this issue on a 32GB test server and created a new test virtual machine for testing

For example, I have a server with 1GB of memory

stress-ng --vm 1 --vm-bytes 680M --timeout 10s --metrics

Red Hat recommends minimum of 1.5 GB for el9. In other words, expecting things to work with less is already wishful thinking.

I discovered this issue on a 32GB test server and created a new test virtual machine for testing

For example, if the system freezes for 10 minutes and triggers OOM