High ksoftirqd/1 cpu usage with openvpn

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
dedicatedorange
OpenVpn Newbie
Posts: 3
Joined: Tue May 16, 2023 8:32 am

High ksoftirqd/1 cpu usage with openvpn

Post by dedicatedorange » Wed Feb 21, 2024 3:55 pm

Hi,
Using openvpn on an aws instance using Amazon Linux 2. When a client connects and tries to transfer a file (from a file on another server), it goes quite slow and on the instance the cpu usage is almost entirely used (99%) by ksoftirqd/1 for the duration of the transfer.

Is there any pointers to troubleshoot this, I can find very little in relation to ksoftirqd/1 in relation to openvpn, has anyone else seen this?

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: High ksoftirqd/1 cpu usage with openvpn

Post by TinCanTech » Wed Feb 21, 2024 5:25 pm

A quick search for ksoftirqd using duckduckgo gives plenty of results about CPU usage.

allan735
OpenVpn Newbie
Posts: 3
Joined: Wed Jan 08, 2025 11:47 am

Re: High ksoftirqd/1 cpu usage with openvpn

Post by allan735 » Fri Jan 10, 2025 10:05 am

High CPU usage by ksoftirqd/1 during OpenVPN file transfers on your Amazon Linux 2 instance can be addressed by optimizing OpenVPN configuration (e.g., cipher selection, multithreading), checking network interface settings (MTU, offloading), and monitoring for network congestion. Consider increasing CPU resources if necessary and use tools like perf for in-depth analysis.

Post Reply