Virgo Logbook
UTC--:--:--
GPS-
Reports
IT infrastructure›Network Comment on #70064 #70090

Comment to vim frozen??

This morning (2026-11-09) olserver115 hung because it ran out of memory.

What happened
- At 06:13-06:14 CET the kernel OOM killer killed 10 root.exe processes. After that the machine still answered ping and port 22, but sshd gave no banner and monitoring lost the host.
- The normal reboot from Xen Orchestra stayed pending. A forced reboot at 07:59 restored access at 08:00. Md.exe was restarted by hand at 08:01, so VIM plot production was stopped or partial from about 06:13 to 08:01.

Cause
- At the first OOM about 100 root.exe processes were using about 46.8 GB of the 48 GB of RAM (about 480 MB each). Swap (3 GB) was exhausted. The peak lasts only seconds, so the 6-minute Ganglia averages do not show it.
- Md.exe limits the number of vimstart.sh scripts running in parallel (MD_NRUNMAX 7), but each script starts all its root.exe in the background (cal about 72, inf 33, env 28, isc 25, vacuum/sqz/daq 22, optchar 19, tcs 18, sum 15). Seven scripts together mean 70-100 simultaneous root.exe, which fill the RAM. The limit of 7 does not limit root.exe.

History
- The system logs start on 11 Oct: 412 kills in 30 days (294 root.exe), with at least one OOM on 25 of 30 days. Since 12 Oct the pattern is always the same: 70-100 root.exe and about 46 GB in use at the OOM.
- The workload has not grown: about 85-88k Md commands per month since April, at most 8-9 in parallel, average load 10-11 for a year, MdVim.cfg unchanged since 2024-06-15.
- The rise started around 12-13 Oct (about 18 OOM in the week 4-11 Oct, 117 in the following week). I could not identify the trigger: no scripts or configs changed on 5-20 Oct; cal/vimstart.sh was modified on 15 Oct and again on 6 Nov. Higher memory per root.exe because of growing input data is possible but not verifiable.
- OOM kills silently drop plots, so the problem only became visible on 5 Nov (plots missing from 01:00 to 09:00) and today.

Already done
- 5 Nov: journal reduced (about 2 GB of swap freed), noisy SELinux rule fixed, host added to Prometheus/Grafana with memory and swap alarms.
- 9 Nov: rescue sshd on port 2222 (root only, from two operator hosts) for access when port 22 does not answer.

Proposals (to agree with the producer owner)
1. Limit concurrent root.exe (per-script cap, or run them in groups, or lower MD_NRUNMAX).
2. Memory cap for user virgorun (about 40 GB) via a systemd slice, so the kernel does not kill random processes.
3. Stagger the heavy cal scripts and the start at day change.
4. Check what was changed in cal/vimstart.sh on 15 Oct and 6 Nov.