fix(perf): bench jq direction bug + libaio + json note guard [#709]

- write tests read .write.* explicitly (jq // kept read=0 for writes)
- libaio1 installed everywhere (real aio engine, no sync cap)
- fio stdout notes stripped before jq parse

Ticket: https://projects.knownelement.com/issues/709
This commit is contained in:
2026-09-03 07:53:37 -05:00
parent 82fdb161cc
commit 7586605b70
4 changed files with 26 additions and 26 deletions
+5 -3
View File
@@ -33,8 +33,10 @@ trap cleanup EXIT
TPL=$(pveam list local 2>/dev/null | grep -oE 'local:vztmpl/[a-z0-9-]*debian-12-standard[^ ]*\.tar\.zst' | head -1 || true)
if [ -z "$TPL" ]; then
pveam update >/dev/null
pveam download local debian-12-standard_12.7-1_amd64.tar.zst >/dev/null
TPL=$(pveam list local | grep -oE 'local:vztmpl/[a-z0-9-]*debian-12-standard[^ ]*\.tar\.zst' | head -1)
DL=$(pveam available --section system 2>/dev/null | grep -oE 'debian-12-standard[^ ]*\.tar\.zst' | sort -V | tail -1)
[ -n "$DL" ] || { echo "[bench-lxc] ERROR: no debian-12 LXC template in pveam" >&2; exit 1; }
pveam download local "$DL" >/dev/null
TPL=$(pveam list local | grep -oE "local:vztmpl/$DL" | head -1)
fi
echo "[bench-lxc] template: $TPL"
@@ -50,7 +52,7 @@ pct start "$CTID"
sleep 5
# toolset in (same installer the guests use; piped in, nothing fetched from outside)
pct exec "$CTID" -- bash -c "export DEBIAN_FRONTEND=noninteractive; apt-get update -qq >/dev/null; apt-get install -y -qq fio iperf3 jq >/dev/null"
pct exec "$CTID" -- bash -c "export DEBIAN_FRONTEND=noninteractive; apt-get update -qq >/dev/null; apt-get install -y -qq fio iperf3 jq libaio1 >/dev/null"
BDIR="/mnt/bench"
[ -z "$STORE" ] && BDIR="/var/tmp"