Virgo Logbook
UTC--:--:--
GPS-
Reports
DAQ›DAQ #45684

MdVim commands hanged up

Today, around 15h40 LT, I have found MdVim process stopped and several commands vimstart.sh (started by MdVim) hanged up on olserver117. Several root scripts started by those vimstart.sh commands were running since more than 12 minutes while they usually complete in less than 30 sec. I had to kill them manually. I suspect that the problem was the access to the data pointed by /virgoData/ffl/trend_ll.ffl. But I have no specific hint or proof.

A message for the operators: if a process like MdVim can not be restarted , even after you have done a "cm cleanup MdVim", you can try the "cm kill MdVim "command.

5 comments

carbognani, cortese, salconi · 19 Apr 2019 · 19:32 #45688
We made an exhaustive investigation and we didn't find any performance problem in the trenddata or rawdata disk buffers.
Diagnosing further the problem we found that there are trouble trying to access data in the trend data short area:
/data/trenddata/short-10800

The problem could be replicated just using dataDisplay and accessing the trend data of the last day.
We think that MdVim is hitting the same problem.
Going on with our investigation we think there is something wrong with the file (or around it):
/data/trenddata/short-10800/V-trend-1239710400-10800.gwf
because trend data are fine just around it.

It can also been inferred that something is wrong because it's size is the double of the other ones under:
/data/trenddata/short-10800/
fcarbogn@ctrl3[/data/trenddata/short-10800]: ll
.........
-rw-r--r--. 1 virgorun virgo 583498681 Apr 19 14:01 V-trend-1239699600-10800.gwf
-rw-r--r--. 1 virgorun virgo 1003802889 Apr 19 17:00 V-trend-1239710400-10800.gwf

Removing that file didn't change much the situation because most probably both dataDisplay and the MdVIM processes do not like an hole in the data so we put it back.
The whole short trendata tree snapshot around the problem has been saved under /data/archive/gwf_scratch

We expect the situation to recover as soon as this data area become old enough not to interfere any more with the MdVIM processes

masserot · 19 Apr 2019 · 21:39 #45689

The "cm kill MdVim "  command should be used only if  the host where this server is running is unreachable and you want to restart the server on an other host .

Looking at the MdVim troubles I found that

  • removing the  file /data/trenddata//short-10800/V-trend-1239710400-10800.gwf  doen't help as the ffl in this case is updated with V-trend-*1800.gwf files
  • but removing  the file /data/trenddata/short/V-trend-1239712200-1800.gwf allows to recover the standard trend access from dataDisplay and MdVim

So there is a hole in the trenddata file from

  • from GPS1239712200  19 Apr 2019 12:29:42 UTC  (19 Apr 2019 14:29:42 CEST)
  • to GPS1239713000  19 Apr 2019 12:43:02 UTC  (19 Apr 2019 14:43:02 CEST)

To avoid others troubles, the FdWTrend  has been restarted and the long trend file /data/trenddata/V-trend-1239667200-70200.gwf moved in the /data/archive/gwf_scracth '.

Unfortunately the file is already copied in the /data/archive_trenddata/2019/  directory meaning that all the access from the trend.ffl file will not work until the file will be removed .

Using the trend_ll.ffl file, there is no problem

The trenddata file for the 20190419 will be re-built later

masserot, mours, verkindt · 23 Apr 2019 · 17:09 #45712

The sequence of action/issue that lead to this trend data problem is the following.

  1. The commissioning activity of Friday afternoon (see 45683) changed significantly the noise floor in the detection lab around 12h50 UTC, see the plot.
  2. Triggered by this change, the process EnvMoni output a new serdata during two consecutive frames (GPS= 1239713423 et 1239713424), with a misleading samplerate of 0.02 Hz instead of 1 Hz.
  3. The trend frame marked the corresponding vector as incomplete with multiple entries for the same bin.
  4. When extending the trend frames from 200 seconds to 1800 seconds, this strange vector generates an error, before completing the reformatting, producing frames that are unusable for plots made by the various tools.

The trend frame for that day has been reprocessed from raw_full and inserted in the /data/trenddata area, recovering the full trend data of that day. It will have to be move to the archive area.

So, this is a typical side effect of some commissioning activities coupled with bugs and weakness of some code, that of course will be improved.

cortese, salconi · 24 Apr 2019 · 09:03 #45720
The modified files have already been synced to the /data/archive_trendata tree by the automatic on-line -> out-of-line procedures
verkindt · 24 Apr 2019 · 18:59 #45728
The part of code of EnvMoni at the origin of the problem has been identified and fixed. A version v2r9p12 of the Moni package is under test and will be released soon.