Skip to content

Commit d4d5e01

Browse files
committed
dump_guest_memory: Increase timeout for large vmcore dumps
Increase dump timeout from 90s to 1800s (30 minutes) to handle large vmcore files (~132GB). The original timeout was too short for VMs with 126GB memory, causing truncated vmcore files. With 30-minute timeout, even at 75MB/s disk I/O speed, 132GB dumps should complete successfully. Signed-off-by: wji <[email protected]>
1 parent f98dd2e commit d4d5e01

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

qemu/tests/cfg/dump_guest_memory.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
no Windows
55
monitors = 'qmp1'
66
monitor_type_qmp1 = qmp
7-
dump_file_timeout = 90
7+
dump_file_timeout = 1800
88
dump_file = "/home/dump"
99
crash_script = "/home/crash.cmd"
1010
x86_64, aarch64:

qemu/tests/dump_guest_core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def check_core_file(arch):
4545
% (dump_guest_memory_file, vmcore_file, arch, gdb_command_file)
4646
)
4747
process.run(command, shell=True)
48-
status, output = process.getstatusoutput(gdb_command, timeout=360)
48+
status, output = process.getstatusoutput(gdb_command, timeout=1800)
4949
os.remove(gdb_command_file)
5050
os.remove(core_file)
5151
test.log.debug(output)
@@ -62,7 +62,7 @@ def check_vmcore_file():
6262
process.run(
6363
'echo -e "bt\ntask 0\ntask 1\nquit" > %s' % crash_script, shell=True
6464
)
65-
output = process.getoutput(crash_cmd, timeout=60)
65+
output = process.getoutput(crash_cmd, timeout=1800)
6666
os.remove(crash_script)
6767
os.remove(vmcore_file)
6868
test.log.debug(output)
@@ -113,5 +113,5 @@ def check_vmcore_file():
113113
check_core_file(arch)
114114
if dump_guest_core == "on" and check_vmcore == "yes":
115115
crash_cmd %= host_kernel_version
116-
utils_misc.wait_for(lambda: os.path.exists(vmcore_file), timeout=60)
116+
utils_misc.wait_for(lambda: os.path.exists(vmcore_file), timeout=1800)
117117
check_vmcore_file()

qemu/tests/dump_guest_memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def check_dump_file():
157157
crash_cmd = "crash -i %s /usr/lib/debug/lib/modules/%s/vmlinux "
158158
crash_cmd %= (crash_script, host_kernel_version)
159159
crash_cmd += dump_file
160-
status, output = process.getstatusoutput(crash_cmd)
160+
status, output = process.getstatusoutput(crash_cmd, timeout=1800)
161161
os.remove(crash_script)
162162
test.log.debug(output)
163163
if status != 0 or "error" in output:

0 commit comments

Comments
 (0)