I ran a piece of python code like this python -m example.main
in the terminal.
It ran for like 10 mins and then I see zsh: killed python -m example.main
I already checked kernel log like this: dmesg | greg 1101
where 1101 was the python PID process. And it showed nothing. So I believe it's not related to OOM.
I believe "zsh: killed..." means the process was killed by something with SIGKILL signal. Unfortunately, there's no way to catch SIGKILL signal inside python program to tell who issues the signal.
Is there a way to tell exactly who/what process issues the SIGKILL to my python program? How do I monitor for this?
limit
.