From af34828be241a74c11b424c17775948d0c2a68a3 Mon Sep 17 00:00:00 2001 From: Maxim Deb Natkh Date: Mon, 20 Jan 2025 16:49:23 +0100 Subject: [PATCH] fix dmesg and strace --- cloud/storage/core/tools/testing/fio/lib/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cloud/storage/core/tools/testing/fio/lib/__init__.py b/cloud/storage/core/tools/testing/fio/lib/__init__.py index 2f88b732884..3e5d4d5e5e0 100644 --- a/cloud/storage/core/tools/testing/fio/lib/__init__.py +++ b/cloud/storage/core/tools/testing/fio/lib/__init__.py @@ -343,7 +343,7 @@ def monitor_fio_progress(): period_sec = 0.001 pid_seen = False start_time = time.time() - timout = 60 + timout = 10 while True: # use pgrep to find the fio process @@ -393,6 +393,7 @@ def monitor_fio_progress(): stderr=dmesg_output, timeout=10, ) + logging.info("Saved dmesg output to dmesg.txt") except Exception as dmesg_error: logging.info( f"Failed to save dmesg output: {dmesg_error}" @@ -409,6 +410,9 @@ def monitor_fio_progress(): stderr=strace_output, timeout=10, ) + logging.info( + f"Saved strace output for PID {pid} to strace_{pid}.txt" + ) except Exception as strace_error: logging.info( f"Failed to save strace output: {strace_error}"