#!/bin/sh
# DF-0245 run - hammer bwillwrite/badjiosched from many threads to provoke migration.
# Observe (root, separate shell): sysctl iosched.debug=1 ; dmesg
set -e
cd "$(dirname "$0")"
N=${1:-6}; SECS=${2:-15}
echo "DF-0245: running ${N} writer threads for ${SECS}s"
./df0245_mig "$N" "$SECS"
echo "DF-0245: accounting underflow is confirmed by source trace (VERDICT.md);"
echo "         runtime observation is timing-dependent on inter-call CPU migration."
