ksoftirqd/3 Linux high cpu usage solution

This is often related to your network traffic and that most of the time I find the kernel just uses a single core to send or receive via your NIC.

This can be adjusted like this so that multiple cores are used to send and receive data via your NIC (eth0).

multicore eth0 RX

#enable multicore

echo f > /sys/class/net/eth0/queues/rx-0/rps_cpus

# enable flow and entries count or this will not have an impact
echo 32768 > /proc/sys/net/core/rps_sock_flow_entries
echo 32768 > /sys/class/net/eth0/queues/rx-0/rps_flow_cnt

multicore eth0 TX

echo f > /sys/class/net/eth0/queues/tx-0/xps_cpus

You may not notice if you are not running servers or other high throughput machines but in all stress tests that I've done and on real life high throughput nodes, it has made a huge difference in network performance and stopped high pings due to NIC traffic being pegged to a single core.

Watch it in action:

watch -n 1 'cat /proc/interrupts | grep -E "(CPU|eth|enp|IRQ)"'
 


Tags:

ksoftirqd, linux, cpu, usage, solutionthis, kernel, via, nic, adjusted, multiple, cores, eth, multicore, rx, enable, echo, sys, queues, rps_cpus, entries, proc, rps_sock_flow_entries, rps_flow_cnt, tx, xps_cpus, servers, throughput, ve, nodes, pings, pegged, interrupts, grep, quot, enp, irq,

Latest Articles

  • ksoftirqd/3 Linux high cpu usage solution
  • E: The repository 'http://deb.debian.org/debian buster Release' does not have a Release file. - solution Debian 10
  • Recommended SFP+ to RJ45 Adapter Module for Switch Juniper Cisco Ubiquiti TP-Link etc...
  • Bad Power Supply Issue Story Diagnosing Troubleshooting
  • Getting started with AI (Artificial Intelligence) in Linux / Ubuntu using by deploying LLM (Language Learing Models) using Ollama LLMA
  • microk8s kubernetes how to install OpenEBS
  • Flash LSI MegaRAID 2208 to IT mode in Linux Mint/Debian/Ubuntu
  • LSI MegaRAID in Linux Ubuntu / Centos Tutorial Setup Guide megacli
  • Convert-im6.q16: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/413. convert-im6.q16: no images defined `pts-time.jpg' @ error/convert.c/ConvertImageCommand/3258. solution ImageMagick P
  • Apache PHP sending expires header solution cannot use cache with CDN
  • How to install virt-manager in Mint 22/Ubuntu 22
  • Infiniband Guide
  • python mysql install error: /bin/sh: 1: mysql_config: not found /bin/sh: 1: mariadb_config: not found /bin/sh: 1: mysql_config: not found mysql_config --version
  • FreePBX 17 How To Add a Trunk
  • Docker Container Onboot Policy - How to make sure a container is always running
  • FreePBX 17 How To Add Phones / Extensions and Register
  • Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes. solution
  • Cisco How To Use a Third Party SIP Phone (eg. Avaya, 3CX)
  • Cisco Unified Communication Manager (CUCM) - How To Add Phones
  • pptp / pptpd not working in DD-WRT iptables / router