interplane.Get Omega
Read in your language

synapse

A component of the AienOS ecosystem.

Brought by drakestapleton

branch main Branches Tags History

synapse / evidence / r1-raw-block-store / measurement-57d1135 / run.sh

22 lines · 937 bytes Raw Blame History
1#!/bin/bash
2# R1 (issue #47) measurement: R1 raw block store on a preallocated O_DIRECT file vs the
3# A2 store on ext4, same NVMe, same session, invocations interleaved R1/A2 x3.
4set -eu
5B=~/workspace/r1-bench
6BIN=~/workspace/synapse-47/target/release/synapse-bench
7OUT=$B/out
8mkdir -p $OUT
9wait_quiet() { while ! quietlock check >/dev/null 2>&1; do sleep 5; done; }
10date -u +%FT%TZ > $OUT/start.txt
11cat /proc/loadavg >> $OUT/start.txt
12wait_quiet; $BIN floor --dir $B/floor --out $OUT/floor.json --iterations 300
13for r in 0 1 2; do
14 wait_quiet; $BIN segments --dir $B/r1 --out $OUT/raw-r1-$r.json --reps 1 --block-device $B/device.img 2> $OUT/r1-$r.log
15 wait_quiet; $BIN segments --dir $B/a2 --out $OUT/raw-a2-$r.json --reps 1 2> $OUT/a2-$r.log
16done
17for f in $OUT/raw-*.json; do
18 $BIN segments-report --raw $f --floor $OUT/floor.json > ${f/raw-/report-}
19done
20date -u +%FT%TZ > $OUT/end.txt
21cat /proc/loadavg >> $OUT/end.txt
22echo DONE