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 / run.sh

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