DAQ - ISC_Fb : Rtai DAQ FIFO overrun -> acquisition is reset
As pointed by D.Bersanetti , during the last week 45% of the lock losses were due the ISC_Fb TomFrameBuider issues : Rtai DAQ FIFO overrun -> acquisition is reset .
The first plot, related to 01-04 september period, show
- the number of FrAdc channels built by each TolmFrameBuilder
- the transmit Ethenet data flow of each rtpc hosting a TolmFrameBuilder
The ISC_Fb TolmFrameBuilder appears to be the one managing the highest data flow (21MB/s) and the only one where there is the "Rtai DAQ FIFO overrun" events (red rectanble)
- 2023-09-01-16h12m31-UTC>ERROR..-[TolmFrameBuilder::FrontEnd] Rtai DAQ FIFO overrun -> acquisition is reset
- 2023-09-01-23h32m31-UTC>ERROR..-[TolmFrameBuilder::FrontEnd] Rtai DAQ FIFO overrun -> acquisition is reset
- 2023-09-02-02h27m32-UTC>ERROR..-[TolmFrameBuilder::FrontEnd] Rtai DAQ FIFO overrun -> acquisition is reset
- 2023-09-02-10h27m33-UTC>ERROR..-[TolmFrameBuilder::FrontEnd] Rtai DAQ FIFO overrun -> acquisition is reset
- 2023-09-03-03h02m35-UTC>ERROR..-[TolmFrameBuilder::FrontEnd] Rtai DAQ FIFO overrun -> acquisition is reset
- 2023-09-03-21h37m37-UTC>ERROR..-[TolmFrameBuilder::FrontEnd] Rtai DAQ FIFO overrun -> acquisition is reset
The second plot show the raw data related to the event of the 2023-09-03-03h02m35-UTC. One can see that
- only LSC data are lost while SNEB_B7_DC, SWEB_B8_DC or SPRB_B4_DC channels remain at the same level since the ITF is still locked
- Maybe the LSC_ENABLE_tripped () python function can be improved to avoid ITF unlock in case of a missing samples from the ISC_Fb Tolmframebuilder
The following table show the different input sources of ISC_Fb Tolmframebuilder used to fill the output frames, the collected channels are then stored in the raw stream and in the raw_full stream.
The channels coming by the EER_DBOX2_ADC0_1 and EER_DBOX2_ADC3_1 Tolm packets are channels from the ISYS system and sampled at 1MHz .
In order to reduce ISC_Fb load, missing sample events and minimize the number of operations, these 2 Tolm packets can be sent to rtpc4 (SUSP_Fb) without overloading it.
The data has been explored in order to find more events of data loss from Sc_PR. In fact there are many of that, but all are characterized by only 1 sample lost, while the one which procured the unlock lasted 353 samples (0.035 ms).
In the latest 20 days the rate of events is constantly about 2 per day; the total number is 47. Fig 1 shows the interval between two events in seconds.
In 22 cases PRCL was locked. The lock was lost soon after the event just in 2 cases: the one reported yesterday (gps 1374852158) and another one at gps 1373557500 (Jul 16). In the second case the unlock seems not due to PRCL, but more to DARM: I would say that it occurred so close to the PR data loss just by chance. Fig 2 shows the unlock of yesterday, very likely due to PR CORR glitch, and the other one, in which PRCL remains stable for 1 s after the glitch.
PRCL behaviour during the glitch of 1 sample has been more deeply analized looking at a second event occurred yesterday, with the ITF locked (gsp 1374826133). PRCL spectrogram in fig 3 shows that the glitch has a small effect: it excitates a peak which could be a resonance, and something smaller around. In fig 4 we can see that the peak is at 53.7 Hz, which seems a value quite low to be excited by a kick on the mirror, but I don't have any other explanation.
More investigation is required to say when the problem started, but at least one very old event has been found (gps 1366379368, April 24, fig 5), which looks like the recent ones.
The issues related to the lost samples in Sc_PR signals (PRLS) are heavier than imagined in the previous entry. I wrote that one lock loss was in coincidence with a PRLS just by chance, but I was wrong: as one can see in fig 1, the event triggered a misalignment of PR_TX, compromising the sidebands and the lock stability.
Similar events are happening often lately. Fig 2 and fig 3 show two of them, happened last Saturday and Sunday. Fig 4 shows a PRSL which did not lead to a lock loss, but nevertheless generated a sideband instability. Also the category of persistent lost samples is present in the recent data (fig 5).
The statistics of PRSL regarding the latest 3 days is reported in fig 6: 10 events in total; just 1 sample in 6 cases; 2 samples in 2 cases; 350 samples in 2 cases. Observing one by one the events, one can see that, over 9 cases of ITF locked, 4 produced the lock loss.
There is more: observing several lock losses of the latest days, one can find the same pattern generated by one PRSL, even without the lost sample (fig 7, fig 8). The loss of samples in the data seems just an occasional witness of something else happening in the DSP, or in ASC, or in the communication between ACL and DSP.
To be better investigated, possibly as soon as possible, because currently this is the first cause of lock loss in the periods when the lock could work for hours, as it was this weekend.
More details one the events reported by Paolo
Event 2023-08-28-13h12m46-UTC
Event 2023-08-03h41m11-UTC
Event 2028-08-27-14h28m44-UTC
Event 2023-08-26-23h54m12-UTC
Looking better into the data, one can find several smaller glitches in the correction, like the one shown in fig 1.
The correction can be reconstructed starting from ASC error signal (ASC_PR_TX_CORR). Doing exactly what the DSP does is not straightforward, because ASC data are at 2 kHz, Sc data are at 10 kHz and the DSP runs at 40 kHz. Anyway, I managed to obtain a good recostruction adding a hole in ASC data (3 samples at 10 kHz), as shown in fig 2 and its zoom, fig 3.
A few debugging probes are required in order to see in which passage the zeroes are overwritten.
We check the TolmFrameBuilder code , there is a warning message only if there is missing samples , in this case the missing samples are expected to be filled with zero.
This means that if there is no message from the TolmFrameBuilder , all the data were received and sometime their contents are equal to zero
After monitornig data flow at PR payload control along the whole day, I found communication errors related to slot #1 processor that received few 'retry' from RapidIO switch #0 and processor in slot #4 that received few 'NoACK' from same switch. These errors could be explained by operations on any of PR payload processors (for example new download or heavy monitornig via ethernet) but could of course be an ageing effect on processors and/or switches. 'Retry' could be generated by busy receiver. 'NoACK' is more worring since associated to 8b/10b deconding errors.
If problem persists we shall consider some processor and switch replacement/relocation
During last 18 hours additional problems were detected on traffic between the two SRIO switches ('Retry' on interlink #2)