adaptation of scripts to run on sf-daq-4

This commit is contained in:
Dmitry Ozerov
2020-11-04 09:23:09 +01:00
committed by Data Backend account
parent 344ea97008
commit fe39841df9
9 changed files with 112 additions and 12 deletions
+9 -5
View File
@@ -8,14 +8,18 @@ fi
M=$1
# Add ourselves to the user cpuset.
echo $$ > /sys/fs/cgroup/cpuset/user/tasks
H=`echo ${HOSTNAME} | sed 's/.psi.ch//'`
#coreAssociatedBuffer=(25 25 26 26 27 27 28 28 29)
coreAssociatedBuffer=(1 2 2 3 3 4 4 5 5)
case ${H} in
'sf-daq-4')
coreAssociatedBuffer=(11 12 13 14 15 16 17 18 19)
;;
*)
CORES=(25 25 26 26 27 27 28 28 29)
esac
initialUDPport=50020
port=$((${initialUDPport}+10#${M}))
DETECTOR=JF02T09V02
taskset -c ${coreAssociatedBuffer[10#${M}]} /usr/bin/sf_buffer ${DETECTOR} M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${M}
taskset -c ${coreAssociatedBuffer[10#${M}]} /usr/local/bin/sf_buffer ${DETECTOR} M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${M}