socat runs at 100% CPU forever
After the Turris Omnia starts, a socat process runs at 100 % CPU forever, until I kill it.
|top]
Mem: 197080K used, 834580K free, 1576K shrd, 1472K buff, 61300K cached
CPU: 5% usr 45% sys 0% nic 50% idle 0% io 0% irq 0% sirq
Load average: 1.11 1.04 0.97 2/135 8419
PID PPID USER STAT VSZ %VSZ %CPU COMMAND
4689 3104 root R 2656 0% 50% socat STDIO OPENSSL:api.turris.cz:567
root@turris:~# ps w|grep socat
4689 root 2656 R socat STDIO OPENSSL:api.turris.cz:5679,cafile=/etc/ssl/ucollect-server.pem,cipher=HIGH:!LOW:!MEDIUM:!SSLv
5015 root 2744 S socat STDIO OPENSSL:api.turris.cz:5679,cafile=/etc/ssl/ucollect-server.pem,cipher=HIGH:!LOW:!MEDIUM:!SSLv
8429 root 1076 R grep socat
As a result, the Omnia is hot:
root@turris:~# sensors
armada_thermal-virtual-0
Adapter: Virtual device
temp1: +87.0°C
kill -KILL
is necessary to kill the runaway socat process. Temperature then becomes more reasonable.
root@turris:~# sensors
armada_thermal-virtual-0
Adapter: Virtual device
temp1: +76.5°C
I attach a graph of system load after startup (which the drop after I killed the process)
Note it has been reported on the forum https://discourse.labs.nic.cz/t/big-load-socat-stdio-openssl-api-turris-cz-5679/1141 but I do not know of the Omnia developers are reading the forum? Anyway, as of today, the bug is still present.
Device Turris Omnia - RTROM01 Serial number [redacted] Turris OS version 3.2.1 Kernel version 4.4.13-05df79f63527051ea0071350f86faf76-8 Sending of uCollect data Online (status updated 6 seconds ago) Sending of firewall logs Online (status updated 481 seconds ago)