Files
openairinterface5g/ci-scripts
Robert Schmidt 8d16ff8459 Use timeout command to kill hangling iperf3
In some pipelines, it happens that iperf3 is hanging on 100% CPU load.
In these cases, a simple TERM signal does not seem to be enough to kill
it; KILL is necessary.

While e.g., RemoteCmd's driver paramiko has a timeout command, the
documentation [1] is not really clear how it is trying to stop commands.
Since it effectively does not stop, we have to assume it is only sending
TERM.

To remedy this, use the timeout command to start iperf3. We use option
-v for diagnose timeouts on stderr, and send KILL after an additional 3
seconds (-k3) if TERM does not succeed. The timeout is sent to the same
duration as the overall iperf timeout.

[1] https://docs.paramiko.org/en/3.4/api/channel.html#paramiko.channel.Channel.settimeout
2024-05-24 14:20:04 +02:00
..
2024-04-09 16:55:51 +02:00
2023-02-06 16:55:04 +01:00
2022-11-30 14:30:18 +01:00
2023-02-23 17:37:31 +01:00
2023-02-24 18:19:36 +01:00
2022-02-25 17:27:02 +01:00
2023-08-04 13:05:06 +02:00
…
2023-02-23 17:38:10 +01:00
2024-04-12 15:53:43 +02:00
2022-10-27 12:29:34 +02:00
2022-02-01 09:42:39 +01:00