Skip to content

Commit

Permalink
Merge branch 'main' of github.com:performancecopilot/pcp
Browse files Browse the repository at this point in the history
  • Loading branch information
natoscott committed May 2, 2024
2 parents cc94978 + ed428e8 commit 3353ae4
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 0 deletions.
Binary file added qa/archives/disk-a.0
Binary file not shown.
Binary file added qa/archives/disk-a.index
Binary file not shown.
Binary file added qa/archives/disk-a.meta
Binary file not shown.
Binary file added qa/archives/disk-b.0
Binary file not shown.
Binary file added qa/archives/disk-b.index
Binary file not shown.
Binary file added qa/archives/disk-b.meta
Binary file not shown.
28 changes: 28 additions & 0 deletions qa/archives/mk.disk-a
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/sh
#
# Recreate disk-a archive for iostat.conf (most disk.dev,
# disk.dm and disk.md here, see disk-b for disk.wwid).
#

tmp=/var/tmp/$$
trap "rm -f $tmp.*; exit 0" 0 1 2 3 15

cat <<End-of-File >$tmp.config
log mandatory on 2 sec {
disk.dev
disk.dm
disk.md
}
End-of-File

# generate some activity ...
#
find $(mount | awk '$5 == "xfs" || $5 ~ /ext/ { print $3}') -maxdepth 2 -type f 2>/dev/null \
| xargs sum >/dev/null 2>&1 &
kill_pid=$!

export PCP_DERIVED_CONFIG=
rm -f disk-a.index disk-a.meta disk-a.0
pmlogger -c $tmp.config -s 5 disk-a

kill -KILL $kill_pid
26 changes: 26 additions & 0 deletions qa/archives/mk.disk-b
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/sh
#
# Recreate disk-b archive for iostat.conf (disk.wwid here,
# see disk-a for all the others).
#

tmp=/var/tmp/$$
trap "rm -f $tmp.*; exit 0" 0 1 2 3 15

cat <<End-of-File >$tmp.config
log mandatory on 2 sec {
disk.wwid
}
End-of-File

# generate some activity ...
#
find $(mount | awk '$5 == "xfs" || $5 ~ /ext/ { print $3}') -maxdepth 2 -type f 2>/dev/null \
| xargs sum >/dev/null 2>&1 &
kill_pid=$!

export PCP_DERIVED_CONFIG=
rm -f disk-b.index disk-b.meta disk-b.0
pmlogger -c $tmp.config -s 5 disk-b

kill -KILL $kill_pid

0 comments on commit 3353ae4

Please sign in to comment.