Skip to content

Commit

Permalink
Add debug/timeout to test_memory.sh (#1563)
Browse files Browse the repository at this point in the history
Copy the same debug/timeout stuff for the buildomat test_memory.sh
  • Loading branch information
leftwo authored Nov 18, 2024
1 parent 0fc0ed8 commit 1d82cc9
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/buildomat/jobs/test-memory.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
#: target = "helios-2.0"
#: output_rules = [
#: "/tmp/*.txt",
#: "%/tmp/dtrace/*",
#: "/tmp/dsc/*.txt",
#: "/tmp/*.log",
#: "%/tmp/debug/*.txt",
#: "%/tmp/dsc/*.txt",
#: "/tmp/core.*",
#: ]
#: skip_clone = true
Expand Down Expand Up @@ -42,9 +43,20 @@ export BINDIR=/var/tmp/bins
banner setup
pfexec plimit -n 9123456 $$

banner dtrace
ls -l $input/scripts
pfexec dtrace -Z -s $input/scripts/upstairs_info.d > /tmp/dtrace/upstairs-info.txt 2>&1 &

banner start
echo "Setup self timeout"
# one hour should be enough
jobpid=$$; (sleep 3600; banner fail-timeout; ps -ef; zfs list;kill $jobpid) &

echo "Setup debug logging"
mkdir /tmp/debug
psrinfo -v > /tmp/debug/psrinfo.txt
df -h > /tmp/debug/df.txt || true
prstat -d d -mLc 1 > /tmp/debug/prstat.txt 2>&1 &
iostat -T d -xn 1 > /tmp/debug/iostat.txt 2>&1 &
mpstat -T d 1 > /tmp/debug/mpstat.txt 2>&1 &
vmstat -T d -p 1 < /dev/null > /tmp/debug/paging.txt 2>&1 &
pfexec dtrace -Z -s $input/scripts/perf-downstairs-tick.d > /tmp/debug/perf.txt 2>&1 &
pfexec dtrace -Z -s $input/scripts/upstairs_info.d > /tmp/debug/upinfo.txt 2>&1 &

banner memtest
ptime -m bash $input/scripts/test_mem.sh

0 comments on commit 1d82cc9

Please sign in to comment.