mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-21 00:44:37 +02:00
22 lines
474 B
Bash
22 lines
474 B
Bash
#!/bin/bash
|
|
|
|
if [ $# != 1 ]
|
|
then
|
|
systemctl start JF02-buffer-worker@{00..08}
|
|
exit
|
|
fi
|
|
|
|
M=$1
|
|
|
|
# Add ourselves to the user cpuset.
|
|
# echo $$ > /sys/fs/cgroup/cpuset/user/tasks
|
|
|
|
coreAssociatedBuffer=(39 39 39 40 40 40 41 41 41)
|
|
|
|
initialUDPport=50020
|
|
port=$((${initialUDPport}+10#${M}))
|
|
DETECTOR=JF02T09V02
|
|
N_MODULES=9
|
|
|
|
taskset -c ${coreAssociatedBuffer[10#${M}]} /usr/bin/sf_buffer ${DETECTOR} ${N_MODULES} M${M} ${port} /gpfs/photonics/swissfel/buffer/${DETECTOR} ${M}
|