Skip to content

Commit

Permalink
Log which hostname had an OOM-situation
Browse files Browse the repository at this point in the history
  • Loading branch information
berland committed Nov 18, 2024
1 parent e2924f1 commit 2475f7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/_ert/forward_model_runner/forward_model_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import logging
import os
import signal
import socket
import sys
import time
from datetime import datetime as dt
Expand Down Expand Up @@ -262,7 +263,7 @@ def _create_exited_msg_for_non_zero_exit_code(
if killed_by_oom(fm_step_pids):
return exited_message.with_error(
f"Forward model step {self.job_data.get('name')} "
"was killed due to out-of-memory. "
f"was killed due to out-of-memory on {socket.gethostname()}. "
"Max memory usage recorded by Ert for the "
f"realization was {max_memory_usage//1024//1024} MB. "
"Please add REALIZATION_MEMORY to your ert config together "
Expand Down

0 comments on commit 2475f7f

Please sign in to comment.