Ensure the heat PRV traces are not too big

This commit is contained in:
Rodrigo Arias 2025-04-14 13:59:18 +02:00
parent 09b84d05b1
commit b548f2f877

View File

@ -8,3 +8,15 @@ b6_heat_ompv -b 128 -t 10
ovnisort ovni
ovnitop ovni
ovniemu -b ovni
# Make sure the trace is not too big (limit at 128 MiB)
maxsize=$((128 * 1024 * 1024))
for f in ovni/{cpu,thread,openmp-breakdown}.prv; do
size=$(stat -c %s $f)
if [ $size -lt $maxsize ]; then
echo "$f: size ok ($size < $maxsize)"
else
echo "$f: too big ($size >= $maxsize)"
fi
done