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

  • nginx how to see the real IP when behind a CDN
  • Docker how to find real container child process ID
  • Alibaba Aliyun how to reset password solution 'Setup does not meet the requirements, please resetting'
  • RTL88X Series 80Mhz hostapd mode for Linux Debian Kali
  • How To Deploy Your Own Mastodon Server in Docker
  • ffmpeg burning subtitles in non-English errors [Parsed_subtitles_0 @ 0x561d3a0b3b80] Glyph 0x6709 not found, selecting one more font for (Sans, 700, 0)
  • rsyslog in container config
  • Interesting Whisper AI CPU vs GPU Test
  • How to install pytorch with cuda capability for AI acceleration with Nvidia Tesla etc.. GPUs
  • How to Spider the web archive.org to recover your old website/webpage
  • Debian 10 /etc/apt/sources.list
  • Linux Debian Cannot Upgrade Kernel Headers Missing Solution
  • How to install ZFS on Linux Ubuntu Debian Mint
  • How to Add Contrib Packages to Debian/Linux/Mint by editing /etc/apt/sources.list
  • Proxmox How To Purge Ceph
  • VMWare ESXi/VSphere Disable Balloon Segfault in Services Solution
  • Apache Linux Debian Ubuntu Container how to manually restart without killing
  • Docker enable UTF8 in Container to stop seeing gibberish ? characters
  • Debian 8 How To Use Apt Update Archive sources.list
  • Debian Live CD Password