@@ -0,0 +1,9 @@
python test.py &
pid=$!
max=0
while kill -0 $pid 2>/dev/null; do
rss=$(awk '/VmRSS/ {print $2}' /proc/$pid/status)
(( rss > max )) && max=$rss
sleep 0.1
done
echo "Max RSS = $max kB"
The note is not visible to the blocked user.