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/aienux/blob/main/evidence/timer_window_starvation_2026-10-19/pinned-stress.sh # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. 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 `aienux / evidence / timer_window_starvation_2026-10-19 / pinned-stress.sh` 14 lines ยท 858 bytes Raw Blame History 1 #!/bin/bash 2 # usage: pinned-stress.sh WORKTREE N HOGS TAG : N boot tests pinned to CPU 3 with HOGS busy loops on CPU 3 (same nice), counts FAILs 3 cd "$1" || exit 1 4 D=$HOME/workspace/hermes-desk/allen-logs/$4; mkdir -p "$D"; : > "$D/fails.txt" 5 for i in $(seq 1 "$3"); do timeout 1200 taskset -c 3 nice -n 19 sh -c 'while :; do :; done' & done 6 pass=0; fail=0 7 for i in $(seq 1 "$2"); do 8 taskset -c 3 nice -n 19 bash scripts/qemu_ck_boot_test.sh > "$D/run-$i.txt" 2>&1 9 rc=$? 10 if [ $rc = 0 ]; then pass=$((pass+1)); else fail=$((fail+1)); echo "run $i rc=$rc" >> "$D/fails.txt"; grep -h "^FAIL" "$D/run-$i.txt" >> "$D/fails.txt"; fi 11 grep -h "timer_irq\|timer_stats" "$D/run-$i.txt" | tr '\n' ' ' >> "$D/stats.txt"; echo >> "$D/stats.txt" 12 done 13 echo "$4 pass=$pass fail=$fail" >> $HOME/workspace/hermes-desk/allen-logs/summary.txt 14 kill $(jobs -p) 2>/dev/null