Skip to content

Commit 1d82cc9

Browse files
authored
Add debug/timeout to test_memory.sh (#1563)
Copy the same debug/timeout stuff for the buildomat test_memory.sh
1 parent 0fc0ed8 commit 1d82cc9

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

.github/buildomat/jobs/test-memory.sh

+19-7
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
#: target = "helios-2.0"
66
#: output_rules = [
77
#: "/tmp/*.txt",
8-
#: "%/tmp/dtrace/*",
9-
#: "/tmp/dsc/*.txt",
8+
#: "/tmp/*.log",
9+
#: "%/tmp/debug/*.txt",
10+
#: "%/tmp/dsc/*.txt",
1011
#: "/tmp/core.*",
1112
#: ]
1213
#: skip_clone = true
@@ -42,9 +43,20 @@ export BINDIR=/var/tmp/bins
4243
banner setup
4344
pfexec plimit -n 9123456 $$
4445

45-
banner dtrace
46-
ls -l $input/scripts
47-
pfexec dtrace -Z -s $input/scripts/upstairs_info.d > /tmp/dtrace/upstairs-info.txt 2>&1 &
48-
49-
banner start
46+
echo "Setup self timeout"
47+
# one hour should be enough
48+
jobpid=$$; (sleep 3600; banner fail-timeout; ps -ef; zfs list;kill $jobpid) &
49+
50+
echo "Setup debug logging"
51+
mkdir /tmp/debug
52+
psrinfo -v > /tmp/debug/psrinfo.txt
53+
df -h > /tmp/debug/df.txt || true
54+
prstat -d d -mLc 1 > /tmp/debug/prstat.txt 2>&1 &
55+
iostat -T d -xn 1 > /tmp/debug/iostat.txt 2>&1 &
56+
mpstat -T d 1 > /tmp/debug/mpstat.txt 2>&1 &
57+
vmstat -T d -p 1 < /dev/null > /tmp/debug/paging.txt 2>&1 &
58+
pfexec dtrace -Z -s $input/scripts/perf-downstairs-tick.d > /tmp/debug/perf.txt 2>&1 &
59+
pfexec dtrace -Z -s $input/scripts/upstairs_info.d > /tmp/debug/upinfo.txt 2>&1 &
60+
61+
banner memtest
5062
ptime -m bash $input/scripts/test_mem.sh

0 commit comments

Comments
 (0)