mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-08-10 17:10:29 +02:00
adaptation of scripts to run on sf-daq-4
This commit is contained in:
committed by
Data Backend account
parent
344ea97008
commit
fe39841df9
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user