This morning the server PAY_Img_50Hz was not running since 2021-03-12-02h13m34 . Below the logfile messages from FbmFE ,the PAY_Img_50Hz frame receiver:
- 2021-03-12-02h13m34-UTC>WARNING-FdFrMrgr: Could not wait longer for frame parts, output 1299550424.0, nSources=23 first:FbsISC
- 2021-03-12-02h13m34-UTC>WARNING-FdFrMrgr:1299550424.0 frames from PAY_Img_50Hz start to be missing
amd the ones from the TproImgPAY50Hz Tolm processor server
- 2021-03-12-02h13m30-UTC>WARNING-Missing packets [V1:PAY_WI_Cam,V1:PAY_WE_Cam,V1:SQZ_ESQB1_HD_CAM_NF,V1:SQZ_ESQB1_HD_CAM_FF]
Trying to restart the PAY_Img_50Hz server it appears that:
- the Cm name server is unreachable from the rtpc15:
-
2021-03-12-04h44m46-UTC>INFO...-Cm> Host cmns.virgo.infn.it unknown.
2021-03-12-04h44m46-UTC>INFO...-Cm> Impossible to reach the NameServer.
2021-03-12-04h44m46-UTC>INFO...-Cm> NameServer is not reachable.
2021-03-12-04h44m46-UTC>INFO...-CfgClose> Done
-
-
a ping on ctrl7 or olserver52, FbmFE host, fails from the rtpc5
-
virgorun@rtpc15[~]: ping ctrl7.virgo.infn.it
ping: ctrl7.virgo.infn.it: Name or service not known
virgorun@rtpc15[~]: ping olserver52.virgo.infn.it
ping: olserver52.virgo.infn.it: Name or service not known
-
While of course the CmNameServer is running
-
masserot@ctrl17[~]: date; cm connects | grep CmN
Fri Mar 12 06:01:25 CET 2021
CmNameServer olserver111.virgo.infn.it 29000 virgod
Please do not reboot the rtpc15 until the IT expert investigate the issue
4 comments
The OOM killer also killed the unbound process, which is the DNS resolver, explaining why a ping using a machine name does not work. A ping using an IP adresse still work.
```
[Sun Mar 7 02:06:53 2021] Out of memory: Kill process 30330 (Imaging.exe) score 714 or sacrifice child
[Tue Mar 9 07:45:45 2021] Out of memory: Kill process 32523 (Imaging.exe) score 944 or sacrifice child
[Fri Mar 12 03:14:22 2021] Out of memory: Kill process 22930 (Imaging.exe) score 942 or sacrifice child
[Fri Mar 12 03:14:23 2021] Out of memory: Kill process 2607 (unbound) score 2 or sacrifice child
```
It is possible the memory leak is triggered by a missing camera, and caused by the code in Imaging trying to reconnect.
Looking at the memory leak rate increase starting March 06 around 10h30 UTC, I have found this event:
```
2021-03-06-10h35m57-UTC>WARNING-Lost control of camera 'WI_Cam'
2021-03-06-10h35m58-UTC>INFO...-CfgReachState> Active(Active) Ok
2021-03-06-10h35m59-UTC>INFO...-Appsrc destroyed for stream 'WI_Cam'
2021-03-06-10h36m02-UTC>ERROR..-1299062179 Channel V1:PAY_WI_Cam_Image start to be missing
...
2021-03-06-10h36m02-UTC>ERROR..-1299062179 Channel V1:PAY_WI_Cam_ProcessingTime start to be missing
2021-03-06-10h36m04-UTC>INFO...-Stream 'WI_Cam' requested
2021-03-06-10h36m07-UTC>INFO...-Reconnect to camera 'WI_Cam' (New attempt every 10 seconds)
2021-03-06-10h36m08-UTC>INFO...-Use camera 'Basler-21523158'
2021-03-06-10h36m08-UTC>INFO...-Camera 'WI_Cam' - pixel format = Mono8
2021-03-06-10h36m08-UTC>INFO...-Camera 'WI_Cam' - width = 640 - height = 512
2021-03-06-10h36m08-UTC>INFO...-Camera 'WI_Cam' - x_offset = 0 - y_offset = 0
2021-03-06-10h36m08-UTC>INFO...-Camera 'WI_Cam' - x binning = 2 - y binning = 2
2021-03-06-10h36m08-UTC>INFO...-Camera 'WI_Cam' - exposure_time = 5000 µs - gain = 0
2021-03-06-10h36m08-UTC>INFO...-Camera 'WI_Cam' - GevSCPD = 1600 ticks
2021-03-06-10h36m09-UTC>INFO...-Memory Used increase, cur. 553776.00(KB), inc. 5432.00(KB)
2021-03-06-10h36m09-UTC>INFO...-Latency[0] = 0.25 ms
...
2021-03-06-10h36m09-UTC>INFO...-Latency[19] = 0.264 ms
2021-03-06-10h36m09-UTC>INFO...-Camera WI_Cam sensor readout latency calibrated to 0.3 ms
2021-03-06-10h36m09-UTC>INFO...-Measured image acquisition period is 20.0 ms
2021-03-06-10h36m09-UTC>INFO...-CfgReachState> Golden(Golden) Ok
2021-03-06-10h36m10-UTC>INFO...-1299062187 Channel V1:PAY_WI_Cam_Pwr is back
...
2021-03-06-10h36m10-UTC>INFO...-1299062187 Channel V1:PAY_WI_Cam_ProcessingTime is back
2021-03-06-10h36m10-UTC>INFO...-Memory Used increase, cur. 576448.00(KB), inc. 22672.00(KB)
2021-03-06-10h36m11-UTC>INFO...-1299062188 Channel V1:PAY_WI_Cam_Image is back
2021-03-06-10h36m11-UTC>INFO...-Memory Used increase, cur. 577016.00(KB), inc. 568.00(KB)
2021-03-06-10h36m12-UTC>INFO...-Memory Used increase, cur. 577064.00(KB), inc. 48.00(KB)
2021-03-06-10h36m13-UTC>INFO...-Memory Used increase, cur. 577072.00(KB), inc. 8.00(KB)
2021-03-06-10h36m14-UTC>INFO...-Memory Used increase, cur. 577084.00(KB), inc. 12.00(KB)
2021-03-06-10h36m15-UTC>INFO...-Memory Used increase, cur. 577100.00(KB), inc. 16.00(KB)
2021-03-06-10h36m16-UTC>INFO...-Memory Used increase, cur. 577128.00(KB), inc. 28.00(KB)
```
As unbound was killed by the OOM, it is may be this process.
A restart of the unbound service allowed us to recover the network name resolution and restart Imaging, with no obvious memory leak.
Due to the SQZ_Img deconnection issue, we had to reboot rtpc15 and restart the processes.