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/benchmarks-mv/blob/main/native/queueflow/kcheck.sh # benchmarks-mv Measurement harnesses and evidence bundles for AIEN on the NVIDIA DGX Spark GB10. Speed is reported against the machine's physical limit and my own previous run. Attachment of AienOS. 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 `benchmarks-mv / native / queueflow / kcheck.sh` 21 lines ยท 1505 bytes Raw Blame History 1 #!/bin/sh 2 # SPDX-License-Identifier: Apache-2.0 3 # kcheck.sh DIR TX: an independent awk/sort recomputation of the kflow.om counts and sums on an 4 # export-kanban.sh directory (read-only oracle; the gate compares its lines with kflow's). 5 set -eu 6 d=${1:?dir}; tx=${2:?tx} 7 T=$d/kanban-tasks.tsv; R=$d/kanban-runs.tsv; E=$d/kanban-events.tsv 8 awk -F '\t' 'FNR==NR { if ($3==1) cr[$1]=1; if ($3>1) cl[$1]=1; next } 9 { if ($3!=6 && $3!=7) ot++ } END { nc=0; nl=0; for (k in cr) nc++; for (k in cl) nl++; 10 printf "KC sys created=%d closed=%d open_table=%d mismatch=%d\n", nc, nl, ot, nc-nl-ot }' "$E" "$T" 11 awk -F '\t' 'FNR==NR { if ($3==3) rt++; next } { n++; if ($3>0) en++ } 12 END { printf "KC run starts=%d ends=%d running_table=%d mismatch=%d\n", n, en, rt, n-en-rt }' "$T" "$R" 13 awk -F '\t' -v tx="$tx" '{ c[$1]++; e=($3==0?tx:$3); b+=e-$2; if ($4>=3 && $4<=7) bad++ } 14 END { for (k in c) if (c[k]>1) { ex+=c[k]-1; mu++ } 15 printf "KC retry extra=%d tasks_multi=%d bad=%d busy=%d\n", ex, mu, bad, b }' "$R" 16 awk -F '\t' '$3==6 && $5>0 { n++; s+=$5-$2 } END { printf "KC lat n=%d sum=%d\n", n, s }' "$T" 17 for p in 0 1 2 3 4; do 18 awk -F '\t' -v p="$p" -v tx="$tx" 'FNR==NR { pool[$1]=$4; next } pool[$1]==p { e=($3==0?tx:$3); print $2 "\t" e }' "$T" "$R" | 19 sort -n -k1,1 | awk -F '\t' -v p="$p" '{ n++; b+=$2-$1; if (n==1) { cs=$1; ce=$2 } else if ($1>ce) { u+=ce-cs; cs=$1; ce=$2 } else if ($2>ce) ce=$2 } 20 END { if (n>0) u+=ce-cs; printf "KC pool p=%d runs=%d busy=%d union=%d\n", p, n, b, u }' 21 done