From d473a89d7950d565e7a2ce4fa93ba784f07d94b4 Mon Sep 17 00:00:00 2001 From: Laurent MAZET Date: Tue, 4 Nov 2025 18:14:24 +0100 Subject: [PATCH] add rt and thread/process checks in log --- test.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test.sh b/test.sh index 94fcb50..aa64869 100755 --- a/test.sh +++ b/test.sh @@ -3,6 +3,16 @@ nbcpu=$(grep -c processor /proc/cpuinfo) nbtests=20000 +check() { + test=$1 + + for p in $(ps aux|awk "/$test/ && ! /sudo/ {print \$2}"); do + echo "pid $p" + taskset -ap $p + chrt -ap $p + done | sort +} + run() { dcore=$1 lcpu=$2 @@ -18,6 +28,7 @@ run() { echo "CPU load: $load% ($lcpu/$nbcpu)" | tee -a $name.log { ./$exe -d 1 -k $dcore -m $mode -n $nbtests -s -o $name.dat | tee -a $name.log; \ kill -2 $(ps -e | awk '/[l]oad/ || /[s]leep/ { print $1 }') 2>/dev/null; } & + { sleep 2; check $exe | tee -a $name.log; } & ./load -r -1 -n $lcpu >/dev/null echo "Cleaning..." date | tee -a $name.log -- 2.30.2