Skip to content

Commit

Permalink
fix dmesg and strace
Browse files Browse the repository at this point in the history
  • Loading branch information
debnatkh committed Jan 20, 2025
1 parent 12e67f7 commit af34828
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cloud/storage/core/tools/testing/fio/lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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}"
Expand All @@ -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}"
Expand Down

0 comments on commit af34828

Please sign in to comment.