Last Friday (2022-09-30), the NEB_ALS_Fast server was found in "active state" (blue), which means that the data sent by its FAST_DAC are delivered late in relation to the rtpc cycles .
To recover the correct running conditions
- the NEB_FASTDAC_ALS and WEB_FASTDAC_ALS were reconfigured a first time
- 2022-09-30-05h33m46-UTC Reconfigure NEB_FASTDAC_ALS in TEB_ALS_dbox
- 2022-09-30-05h33m50-UTC Reconfigure WEB_FASTDAC_ALS in TEB_ALS_dbox
- and a second time as new synchronization issues have occurred since the last reconfiguration
- 2022-09-30-19h02m20-UTC Reconfigure WEB_FASTDAC_ALS in TEB_ALS_dbox
- 2022-09-30-19h02m32-UTC Reconfigure WEB_FASTDAC_ALS in TEB_ALS_dbox
The first plot show the trend of the differents events that occured from the 2022-09-28 to 2022-09-30
- the first line show the monitoring channels related to the NEB FASTDAC
- the second line the ones related to the WEB FASTDAC
- the third line the monitoring channels related to the rtpc22's servers and the ITF_LOCK_index channel
When a synchronixation event occured :
- the channels *_rtpc_fifo_use0_min, TEB_ALS_Tpro_elapsed_time_min reach zero
- and there is a jump on the *_FASTDAC_ALS_0_Tolm_Send_Start_* channels
The second plot show the trend of the differents events that occured from the 2022-09-30 to 2022-01-04 and zoom on the events related to the 2022-10-01 where some ITF unlock seems triggered by the ALS synchronization issues .
During this period (2022-09-30 to 2022-01-04) there is a total of 12 events
- 3 events that occurred only on the NEB side
- 2022-10-01: 01h44m30-UTC, 09h47m30-UTC
- 2022-10-03: 21h27m30-UTC
- these events seems related to a lost of pakets in the Tolm network .
- Fabio Gherardini checked the right fiber plugins at the Dbox and MxDx level and everything seems OK
- To have more debugging information some improvments will be made on the DBox Tolm firmware part
- and 9 events that occurred at the same time on NEB and WEB sides , mainly due to a lost of one cycle at the rtpc side
- 2022-10-01: 08h14m42-UTC, 08h48m03-UTC, 09h06m31-UTC, 09h25m49-UTC, 09h29m34-UTC, 11h48m22-UTC, 12h27m24-UTC
- 2022-10-02: 06h19m21-UTC
- 2022-10-03: 06h20m25-UTC
- The frame building is done at 5Hz (0.2s) and the RT-FIFO readout at 400Hz(2.5ms). On most of these events one can see
- a jump above 20us that occurs after each frane construction cycle start and several consecutive cycles that results in a missing cycle and therefore a jump to zero of the last sample
- a small increase of the elapsed time at the frame server readout period (2.5ms)
- it is like at the beginning of each frame cycle there is a huge RT-FIFO's readout to compensate the time where there is no readout cycle .
- As trial to overcome this issue, the scheduling properties of the TolmFrameBuilder RT-FIFO readout thread has been updated to be software real-time by using the REALTIME_FRONDEND keyword
-
2022-10-04-10h37m49-UTC ALS_TEB_Fb saved : Add the REALTIME_FRONDEND keyword (rev. 225771)
2022-10-04-10h37m52-UTC process:ALS_TEB_Fb stopped
2022-10-04-10h37m58-UTC process:ALS_TEB_Fb started
-
- On this plot (zoom) one can see that now the RT_FIFO's readout is done in a more periodical way, hoping that this will allow to fix these synchroniation issues
The last plot show the I/O load of the ALS_TEB rtpc (rtpc22)
4 comments
To notify that for the event 2022-10-01-09h06m31 , the jump above 20us occurred in the middle/end of a frame cycle and not at the start as the others.
A consequence, the previous fix may not cure this kind of lost synchronization event
To improve the situation , the data send to the RT_FIFO have been reduced: the channels used to monitor the digital noise are now stored at 50KHz instead of 500KHz previously for the {N,W}EB_ALS_fast servers.
The first plot show the new I/O load of the rtpc22 (the previous one) : there is a reduction of 15.5MB/s at the RT_FIFO level
Below the list of the operations:
2022-10-07-14h21m25-UTC WEB_ALS_fast saved : Store the Corr_Flt, Corr_RTPC, DigitalNoise_Corr and DigitalCorr at 50KHz intead of 500KHz (rev. 225960)
2022-10-07-14h21m37-UTC NEB_ALS_fast saved : Store the Corr_Flt, Corr_RTPC, DigitalNoise_Corr and DigitalCorr at 50KHz intead of 500KHz (rev. 225961)
2022-10-07-14h45m32-UTC process:WEB_ALS_fast stopped
2022-10-07-14h45m34-UTC process:NEB_ALS_fast stopped
2022-10-07-14h45m50-UTC process:NEB_ALS_fast started
2022-10-07-14h45m56-UTC process:WEB_ALS_fast started
2022-10-07-15h02m21-UTC ALS_TEB_Fb saved : Update the DAQ_FIFO_DUMP_FREQ to 500Hz (rev. 225962)
2022-10-07-15h02m23-UTC process:ALS_TEB_Fb stopped
2022-10-07-15h02m29-UTC process:ALS_TEB_Fb started
2022-10-07-15h07m44-UTC ALS_TEB_Fb saved : Update the DAQ_FIFO_DUMP_FREQ to 1000Hz (rev. 225963)
2022-10-07-15h11m53-UTC process:ALS_TEB_Fb stopped
2022-10-07-15h11m57-UTC process:ALS_TEB_Fb started
2022-10-07-15h30m20-UTC ALS_TEB_Fb saved : Update the DAQ_FIFO_DUMP_FREQ to 400Hz (rev. 225965)
2022-10-07-15h30m22-UTC process:ALS_TEB_Fb stopped
2022-10-07-15h30m28-UTC process:ALS_TEB_Fb started
2022-10-07-15h30m42-UTC Reconfigure NEB_FASTDAC_ALS in TEB_ALS_dbox
2022-10-07-15h30m46-UTC Reconfigure WEB_FASTDAC_ALS in TEB_ALS_dbox
The second plot shows the relevant channels during the tests of differents RT-FIFO readout frequencies : 400Hz, 500Hz and 1000Hz
This morning the ITF was found unlocked : this was due to several trials with failures while reaching the LOCKING_ARM_IT_ALS state .
Yesterday few minors modifications were made at the rtpc22 level to reduce the data flow managed by the TolmFrameBuilder .
The NEB and WEB ALS DAQ boxes and the rtpc22 servers were restarted without major improvments : the locking of ARMs with ALS succeeded but they unlocked few ten of seconds later
As it was too difficult to distinguish if the ASL problems were due to rtpc22 overload or the ALS devices , we decided to come back with only one rtpc for each arm :
The operations were completed around noon (LT) :
After these changes, the locking of ARMs with ALS seems to work more efficiently
The first plot show 4 time periods
When the NEB_ALS and WEB_ALS servers were running on the same rtpc , the rtpc's CPUs repartition was:
The 2022-10-07, between 14h21-UTC and 15h31-UTC (2nd period), the data sent to the RT_FIFO have been reduced by 15MB/s :
At the end of the Friday shift , the automation was set in auto-relock mode to reach CARM_NULL_1F state (red circles) . This never occured due to the fact that the sequence failed each time at the LOCK_ARMS_IR_ALS state. One can see at the same time an increase of the elapsed time of each ALS_fast server but without an increase of the TEB_ALS_Tpro one . As consequence there was some additionnal delay on the loop triggering the unlock (zoom)
As trial to avoid additionnal delay the elapsed time of the TEB_ALS_readout server was increase (3rd period) but without convincing results.
In summary, to avoid the missing cycle triggered by the TEB_ASL_Tpro elapsed time jump due to the large data flow some filtering were setup but adding extra computing time triggering the unlock too : so there is not enough marging with this rtpc's configuration to fix the issues except using 2 rtpcs
At the end the orginal setup for the ALS rtpc was restored (4th period) : one rtpc for each ARM
For this 2 rtpcs, the CPU repartion is the following