Virgo Logbook
UTC--:--:--
GPS-
Reports
AdV-DAQ›Data collection #31962

Latency of frame files

Just before the holidays, I implemented a monitor for the latency of the various frame files. The algorithm, which was added to the PyFLags process, takes the difference between the gps of the current frame in the DAQ chain and the gps of the last data available in an ffl file (this ignores the latency of the DAQ chain itself, so the calculated number is probably too high by about 2 seconds). The calculated latency is saved as slow channels named DAQ_FFL_RAW_LATENCY and DAQ_FFL_TREND_LATENCY. These channels might later be used to implement a flag on the DMS. In the ideal case, this latency should show a sort of saw-tooth pattern, with a minimum close to zero, and a maximum slightly higher than the length of the frames (which is currently 300 seconds for raw.ffl). In reality, something more complex is going on. The minimum latency (which gives an upper limit to the computation time required to archive a gwf file and add it to the ffl file) went from 64 seconds before the showdown to 20 seconds after the shutdown. This shows the new hardware is quite a bit faster than the old one. But there is also something weird going on: every time a new gwf file is added to the ffl file, the latency drops by 300 seconds, but the time between these updates is not constant, so the average latency slowly increases over about 40 minutes, and then decreases quickly. I think this is caused by the 'aliasing' between the production rate of the frames (which presumably is exactly 300 seconds) and something else (probably the script that archives the new frames), which runs with a period of 160 seconds. So for about 40 minutes, the time between two updates is 320 seconds, after which the next update is 160 seconds. This aliasing effect can be seen both before and after the upgrade. Fixing this issue (e.g. by reducing the polling rate of the script from 160 to a few seconds) could lower the average latency from 249 seconds to the expected 170 seconds (20 seconds computation + half of frame length). In addition to this, it would be nice to reduce the length of the frames, so that the maximum latency drops to well below a minute. This would speed up the analysis of data during commissioning experiments and the would lower the latency of the online plots.

1 comment

swinkels · 21 Jan 2015 · 10:48 #31965
On request of Alain, I also added a monitor for raw_bck.ffl. This file does not seem to suffer from the aliasing effect, see figure 1. Also the raw_full.ffl seems to have a slight aliasing effect, but this is only a few seconds, see figure 2. New channel names are DAQ_FFL_RAW_BCK_LATENCY, DAQ_FFL_RDS_LATENCY and DAQ_FFL_RAW_FULL_LATENCY.