Virgo Logbook
UTC--:--:--
GPS-
Reports
AdV-DAQ›Data Acquisition and Global Control #57297

ALS NEB and WEB: synchronization isues

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)

20 attachments
57297_1664909699_ALS_TEB_trend_20220928-20220930.png 101 KB 57297_1664910491_ALS_TEB_trend_20220930-20221004.png 100 KB 57297_1664910573_ALS_TEB_trend_20221001.png 96 KB 57297_1664910665_ALS_TEB_trend_unlock-20221001.png 101 KB 57297_1664911166_ALS_NEB_lost_synchronization_transmission_error_20221001-01h44m30-UTC.png 93 KB 57297_1664911200_ALS_NEB_lost_synchronization_transmission_error_20221001-09h47m30-UTC.png 93 KB 57297_1664911281_ALS_NEB_lost_synchronization_transmission_error_20221003-21h27m30-UTC.png 93 KB 57297_1664911839_ALS_TEB_lost_synchronization_20221001-08h14m42-UTC.png 85 KB 57297_1664911879_ALS_TEB_lost_synchronization_20221001-08h48m03-UTC.png 87 KB 57297_1664911924_ALS_TEB_lost_synchronization_20221001-09h06m31-UTC.png 81 KB 57297_1664912242_ALS_TEB_lost_synchronization_20221001-09h25m49-UTC.png 81 KB 57297_1664912283_ALS_TEB_lost_synchronization_20221001-09h29m34-UTC.png 85 KB 57297_1664912325_ALS_TEB_lost_synchronization_20221001-11h48m22-UTC.png 82 KB 57297_1664912363_ALS_TEB_lost_synchronization_20221001-12h27m24-UTC.png 83 KB 57297_1664912403_ALS_TEB_lost_synchronization_20221002-06h19m21-UTC.png 78 KB 57297_1664912445_ALS_TEB_lost_synchronization_20221003-06h20m25-UTC.png 80 KB 57297_1664913454_ALS_TEB_Tpro_TFb_lost_synchoronisation_20221001-08h14m42-UTC-zoom2.png 75 KB 57297_1664914338_ALS_TEB_Tpro_Fb_REALTIME_FRONTEND-cmp-20221004.png 99 KB 57297_1664914392_ALS_TEB_Tpro_Fb_REALTIME_FRONTEND-cmp-20221004-zoom.png 101 KB 57297_1664915536_TEB_ALS_rtpc2_load-20221004.png 27 KB

4 comments

masserot · 5 Oct 2022 · 06:43 #57299

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

masserot · 7 Oct 2022 · 19:01 #57343

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

bersanetti, masserot, menzione · 8 Oct 2022 · 15:08 #57351

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) :

  • For NEB it was needed to reconfigure the FASTDAC mezzanine with the NEB_ALS_fast server stopped to recover the correct running conditions  (to be investigated)
  • for NEB ALS PSTAB each time  the NEB_ALS_BPC is stopped it 's needed to go to the NEB building to recover the ASL amplifier  (to be fixed)

After these changes, the locking of ARMs with ALS seems to work more efficiently

 

masserot · 8 Oct 2022 · 22:38 #57354

The first plot show 4 time periods

  • NEB_ALS and WEB_ALS on the same rtpc before the data flow reduction
  • NEB_ALS and WEB_ALS on the same rtpc after the data flow reduction
  • NEB_ALS and WEB_ALS on the same rtpc  with the TEB_ALS_readout elpased time increased
  • NEB_ALS and WEB_ALS on 2 different rtpcs

When the NEB_ALS and WEB_ALS servers were running on the same rtpc , the rtpc's CPUs repartition was:

  • RT_CPU0 I/0 (TEB_ALS_Tpro) and TEB_ALS_readout(50KHz) server
  • RT_CPU1 NEB_ALS_fast(50KHz) and NEB_ALS_BPC(10KHz) servers
  • RT_CPU2 WEB_ALS_fast(50KHz) and wEB_ALS_BPC(10KHz) servers

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 :

  • This was done on the NEB_ALS_fast and the WEB_ALS_fast by filtering 3 channels at 500kHz and decimating them at 50KHz
  • there was no modification of the RT_CPU0 elapsed time (TEB_ALS_Tpro) but the elasped time of each ALS_fast server  increase a little bit and the maximun remians at the same level
  • When these operations were done, the ITF was unlocked

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

  • RT_CPU0 I/O ({N,W}EB_ALS_Tpro) and the {N,W}EB_ALS_fast server (50KHz)
  • RT_CPU1 {N,W}EB_ALS_readout server (50KHz)
  • RT_CPU2 {N,W}EB_ALS_BPC server (10KHz)