From 4be2732d2077fa4b3428e2277708d119459ce911 Mon Sep 17 00:00:00 2001 From: lhdamiani Date: Thu, 17 Mar 2022 20:30:27 +0100 Subject: [PATCH] script to analyse the udp receivers cpu consumption --- eiger/xbl-daq-28/udp_cpu_analysis.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 eiger/xbl-daq-28/udp_cpu_analysis.sh diff --git a/eiger/xbl-daq-28/udp_cpu_analysis.sh b/eiger/xbl-daq-28/udp_cpu_analysis.sh new file mode 100755 index 0000000..08bac37 --- /dev/null +++ b/eiger/xbl-daq-28/udp_cpu_analysis.sh @@ -0,0 +1,12 @@ +#! /bin/bash +while : ; do sleep 1 && echo $(date) && top -b -p 12790,12775,12774,12778 -n 1 | tail -n4; +#while true; do: +# sleep 1 +# echo $(date) +# top -b -p 12790,12775,12774, 12778 -n1 | tail -4 +# if [[ $input = "q" ]] || [[ $input = "Q" ]] +# then +# echo "Q pressed, quitting..." +# break +# fi; +done