K-Log#20895の続きです。 経緯 現在、DAQ Timing error(0x4000)の頻度が数回/日発生する。 これを改善する目的でLIGOの設定とは異なる設定を試してみる。 次の対応を試す。 1.k1dc0で行っているdaqdをFIFOに変更する対応を、fw0,fw1,tw0,tw1,nds0,nds1,bcstへそれぞれ対応する。 現状はTSでデフォルト値です。 nds2はとりあえず現状のままとする。 2.K-Log#20895の2の結果 $ sudo renice -n -20 -p 12022 この対応では大きな成果はなかったのでFEのmx_streamもFIFOに変更してみる。 mx_streamは現在TSでデフォルトです。 変更内容 1.fw0,fw1,tw0,tw1,nds0,nds1,bcstのdaqdをTSからFIFOへ変更する。 対応内容はdc0を参考にする。 /opt/rtcds/kamioka/k1/target/fb/start_daqd.dc0.inittab exec su controls -c '/opt/rtcds/kamioka/k1/target/k1daqdc0/daqd -c /opt/rtcds/kamioka/k1/target/k1daqdc0/daqdrc' > /opt/rtcds/kamioka/k1/target/fb/logs/daqd.dc0.log 2>& 1 & PID=$! sleep 1 LISTPID=$(pidof daqd); PIDS=(${LISTPID// / }); for val in "${PIDS[@]}"; do sudo chrt -f -p 99 ${val}; done wait $PID 変更前のファイルはバックアップしました。 /opt/rtcds/kamioka/k1/target/fb/archive/20220610/ 2.mx_streamをFIFO(chrtを追加)に変更する。 start-stop-daemon --start --quiet -b -m --pidfile /var/log/mx_stream.pid --exec /opt/rtcds/kamioka/k1/target/fb/mx_stream -- -e 0 -r "$epnum" -s "$sys" -d k1dc0:0 -w 0 -W 0 -l /opt/rtcds/kamioka/k1/target/fb/mx_stream_logs/$hostname.log chrt -f -p 99 `cat /var/log/mx_stream.pid` 作業手順 K-Log#21012にてk1bootのHDD交換を行なった。 しかしFEのモデルファイルを更新後、モデルを再起動するとFSが書き込みができないエラーが発生した。 その為、FEは全て起動し直す必要がある。 次の手順で作業を進めました。 再起動を行うついでに他の作用も行なった。 1.FEを停止、または再起動した。 両エンド以外は停止: sudo shutdown -h now 両エンドは再起動: sudo shutdown -r now (k1ex1,k1ey1,k1ex0,k1ey0,k1px1) 2.FE,DAQのメンテを行なった。(Yamamoto-san) DAQをFIFOに変更した。(Ikeda) 3.全てのFEとDAQの再起動後、mx_streamをFIFOに変更してDAQ再起動を行った。 --- This is a continuation of K-Log#20895. Background Currently, the frequency of DAQ Timing error (0x4000) occurs several times/day. With the goal of improving this, we will try a different setting than the LIGO setting. Try the following measures 1. Change the correspondence of changing daqd to FIFO, which is done in k1dc0, to fw0, fw1, tw0, tw1, nds0, nds1, and bcst, respectively. Currently, the default value is TS. Leave nds2 as it is for now. 2. Result of K-Log#20895-2 $ sudo renice -n -20 -p 12022 There was no significant result in this response, so I'll change FE's mx_stream to FIFO as well. mx_stream is currently the default in TS. Changes 1.Change daqd of fw0,fw1,tw0,tw1,nds0,nds1,bcst from TS to FIFO. Refer to dc0 for details. /opt/rtcds/kamioka/k1/target/fb/start_daqd.dc0.inittab exec su controls -c '/opt/rtcds/kamioka/k1/target/k1daqdc0/daqd -c /opt/rtcds/kamioka/k1/target/k1daqdc0/daqdrc' > /opt/rtcds/kamioka/k1/target/fb/logs/daqd.dc0.log 2>& 1 & PID=$! sleep 1 LISTPID=$(pidof daqd); PIDS=(${LISTPID// / }); for val in "${PIDS[@]}"; do sudo chrt -f -p 99 ${val}; done wait $PID The file was backed up before the change. /opt/rtcds/kamioka/k1/target/fb/archive/20220610/ 2. Change mx_stream to FIFO (add chrt). start-stop-daemon --start --quiet -b -m --pidfile /var/log/mx_stream.pid --exec /opt/rtcds/kamioka/k1/target/fb/mx_stream -- -e 0 -r "$epnum" -s "$sys" -d k1dc0:0 -w 0 -W 0 -l /opt/rtcds/kamioka/k1/target/fb/mx_stream_logs/$hostname.log chrt -f -p 99 `cat /var/log/mx_stream.pid` (in Japanese) Work procedure HDD replacement of k1boot was done in K-Log#21012. However, after updating the FE model file and restarting the model, an error occurred that FS could not write. Therefore, all FEs need to be rebooted. We proceeded with the following steps. While performing the restart, other actions were also performed. 1. Stopped or restarted FE. Stop all but both ends: sudo shutdown -h now Restart both ends: sudo shutdown -r now (k1ex1,k1ey1,k1ex0,k1ey0,k1px1) 2.FE,DAQ maintenance was done. (Yamamoto-san) DAQ was changed to FIFO. (Ikeda) 3.After restarting all FE and DAQ, changed mx_stream to FIFO and restarted DAQ.