Report disk IO in resiliency gate
This is to help monitor disk performance in the gate. Change-Id: I9db1c35ac6df8200deefde04d54144396e0218be
This commit is contained in:
parent
9e0ab1871a
commit
a1388dd40e
3
.gitignore
vendored
3
.gitignore
vendored
@ -23,3 +23,6 @@ __pycache__
|
|||||||
/docs/*/_static/
|
/docs/*/_static/
|
||||||
/AUTHORS
|
/AUTHORS
|
||||||
/ChangeLog
|
/ChangeLog
|
||||||
|
|
||||||
|
# Additional gate artifacts
|
||||||
|
/.fiotest
|
||||||
|
@ -4,6 +4,10 @@
|
|||||||
"promenade/schemas"
|
"promenade/schemas"
|
||||||
],
|
],
|
||||||
"stages": [
|
"stages": [
|
||||||
|
{
|
||||||
|
"name": "Report Disk IO",
|
||||||
|
"script": "report-disk-io.sh"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "Gate Setup",
|
"name": "Gate Setup",
|
||||||
"script": "gate-setup.sh"
|
"script": "gate-setup.sh"
|
||||||
|
20
tools/g2/stages/report-disk-io.sh
Executable file
20
tools/g2/stages/report-disk-io.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
source "${GATE_UTILS}"
|
||||||
|
|
||||||
|
log Testing disk IO
|
||||||
|
|
||||||
|
fio \
|
||||||
|
--randrepeat=1 \
|
||||||
|
--ioengine=libaio \
|
||||||
|
--direct=1 \
|
||||||
|
--gtod_reduce=1 \
|
||||||
|
--name=test \
|
||||||
|
--filename=.fiotest \
|
||||||
|
--bs=4k \
|
||||||
|
--iodepth=64 \
|
||||||
|
--size=1G \
|
||||||
|
--readwrite=randrw \
|
||||||
|
--rwmixread=50
|
@ -22,6 +22,7 @@ sudo apt-get update -qq
|
|||||||
sudo apt-get install -q -y --no-install-recommends \
|
sudo apt-get install -q -y --no-install-recommends \
|
||||||
curl \
|
curl \
|
||||||
docker.io \
|
docker.io \
|
||||||
|
fio \
|
||||||
genisoimage \
|
genisoimage \
|
||||||
jq \
|
jq \
|
||||||
libstring-shellquote-perl \
|
libstring-shellquote-perl \
|
||||||
|
Loading…
Reference in New Issue
Block a user