Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/synapse/blob/main/evidence/r1-raw-block-store/measurement/run.sh # synapse A component of the AienOS ecosystem. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers 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. 6 set -eu 7 B=~/workspace/r1-bench 8 BIN=~/workspace/synapse-47/target/release/synapse-bench 9 OUT=$B/out 10 mkdir -p $OUT 11 wait_quiet() { while ! quietlock check >/dev/null 2>&1; do sleep 5; done; } 12 date -u +%FT%TZ > $OUT/start.txt 13 cat /proc/loadavg >> $OUT/start.txt 14 wait_quiet; $BIN floor --dir $B/floor --out $OUT/floor.json --iterations 300 15 for 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 18 done 19 for f in $OUT/raw-*.json; do 20 $BIN segments-report --raw $f --floor $OUT/floor.json > ${f/raw-/report-} 21 done 22 date -u +%FT%TZ > $OUT/end.txt 23 cat /proc/loadavg >> $OUT/end.txt 24 echo DONE