• DevOps
    Case Study

    How we built a resilient multi-account, multi-cloud solution for a Health Tech service provider!

    READ CASESTUDY
    icon

    24/7 DevOps as a Service

    Round-the-clock DevOps for uninterrupted efficiency.

    icon

    Infrastructure as a Code

    Crafting infrastructure with ingenious code.

    icon

    CI/CD Pipeline

    Automated CI/CD pipeline for seamless deployments.

    icon

    DevSecOps

    Integrated security in continuous DevOps practices.

    icon

    Hire DevOps Engineers

    Level up your team with DevOps visionaries.

    icon

    Consulting Services

    Navigate success with expert DevOps consulting.

  • TechOps
    Case Study

    How we built a scalable Odoo solution for a Travel Tech service provider!

    READ CASESTUDY

    WEB HOSTING SUPPORT

    icon

    HelpDesk Support

    Highly skilled 24/7 HelpDesk Support

    icon

    Product Support

    Boost your product support with our expertise.

    MANAGED SERVICES

    icon

    Server Management

    Don’t let server issues slow you down. Let us manage them for you.

    icon

    Server Monitoring

    Safeguard your server health with our comprehensive monitoring solutions.

    STAFF AUGMENTATION

    icon

    Hire an Admin

    Transform your business operations with our expert administrative support.

    icon

    Hire a Team

    Augment your workforce with highly skilled professionals from our diverse talent pool.

  • CloudOps
    Case Study

    How we helped a Private Deemed University in India, save US $3500/m on hosting charges!

    READ CASESTUDY
    icon

    AWS Well Architected Review

    Round-the-clock for uninterrupted efficiency

    icon

    Optimize

    Efficient CloudOps mastery for seamless cloud management

    icon

    Manage

    Automated CI/CD pipeline for seamless deployments

    icon

    Migrate

    Upgrade the journey, Migrate & Modernize seamlessly

    icon

    Modernize

    Simplify compliance complexities with our dedicated services

    icon

    FinOps as a Service

    FinOps as a Service

  • SecOps
    Case Study

    How we built a scalable Odoo solution for TravelTech service provider!

    READ CASESTUDY
    icon

    VAPT

    Vulnerability Assessment and Penetration Testing

    icon

    Source Code Review

    Ensuring source code security ans safe practices to reduce risks

    icon

    Security Consultation

    On demand services for improving server security

    icon

    System Hardening

    Reduced vulnerability and proactive protection

    icon

    Managed SoC

    Monitors and maintains system security. Quick response on incidents.

    icon

    Compliance as a Service

    Regulatory compliance, reduced risk

  • Insights
    Case Study

    How we helped a Private Deemed University in India, save US $3,500/m on hosting charges!

    READ CASESTUDY
    icon

    Blog

    Explore our latest articles and insights

    icon

    Case Studies

    Read about our client success stories

    icon

    Flipbook

    Explore our latest Flipbook

    icon

    Events

    Join us at upcoming events and conferences

    icon

    Webinars

    Watch our educational webinar series

  • Our Story
  • Contact Us

Interested to collaborate?

Get in touch with us!

Ready to elevate your business with certified cloud expertise? Contact us today to learn how our team can help you leverage cloud technology to drive growth, streamline operations, and enhance security.

  • AWSAWS
  • Azure CloudAzure Cloud
  • Google CloudGoogle Cloud
  • Akamai CloudAkamai Cloud
  • OVHOVH
  • Digital OceanDigital Ocean
  • HetznerHetzner
  • Kubernetes Consultancy Services
  • K8s & Cloud native Solutions
  • 24/7 Infrastructure Monitoring
  • DevOps as a Service
  • Cloud CI/CD Solutions
  • White Labeled MSP Support
  • Our story
  • Life@SupportSages
  • Insights
  • Careers
  • Events
  • Contact Us

Connect with us!


LinkedInFacebookXInstagramYouTube

aws partneraws advanced partner
SupportSages

Copyright © 2008 – 2026 SupportSages Pvt Ltd. All Rights Reserved.
Privacy PolicyLegal TermsData ProtectionCookie Policy

SysAdmin Series – What does ksoftirqd do ?

Aaden Dev

  • 4 min read
SysAdmin Series – What does ksoftirqd do ?

Generating audio, please wait...

Operating System manages and controls I/O operations and I/O devices. Let’s have a quick overview of different ways of interacting with I/O devices, before we go through what a ksoftirqd does.

Interrupts – The CPU issues commands to the I/O module then proceeds with its normal work until interrupted by I/O device on completion of its work.

DMA – Direct Memory Access (DMA) means CPU grants I/O module, the authority to read from or write to memory without involvement.

Polling – OS simply checks from time to time if a device has completed a request.

There is DMA + Interrupts as well as DMA + polling as well.

Now let’s consider the interrupts way of interacting with the I/O. Interrupts from the hardware are known as “top-half” interrupts. Interrupts are best explained with network traffic.

When a NIC receives incoming data, it copies the data into kernel buffers using DMA. The NIC notifies the kernel of this data by raising a hard interrupt. These interrupts are processed by interrupt handlers which do minimal work, as they have already interrupted another task and cannot be interrupted themselves.

Hard interrupts can be expensive in terms of CPU usage, especially when holding kernel locks. The hard interrupt handler then leaves the majority of packet reception to a software interrupt, or SoftIRQ, a process which can be scheduled more fairly.

Hard interrupts can be seen in /proc/interrupts while soft interrupts can be seen at /proc/softirqs

The softirq system in the Linux kernel is a mechanism for executing code outside of the context of an interrupt handler implemented in a driver. This system is important because hardware interrupts may be disabled during all or part of the execution of an interrupt handler. When the interrupt handlers are processing the interrupts, they cannot be interrupted themselves. That is why we have the interrupt handlers doing the minimal work, of interruption, while the responsibility of actual receiving of network traffic is managed by software interrupts.

In some situations, IRQs come very very fast one after the other and the operating system cannot finish servicing one before another one arrives. One of the mechanisms of deferring the tasks is by implementing a queuing system, called ksoftirqd. ksoftirqd, is utilized when the machine is under heavy soft interrupt load.

If ksoftirqd is taking more than a certain percentage of CPU time, this indicates the machine is under heavy interrupt load and not eating CPU. If there is a bug in a driver or any other issue, you can see that one CPU is taking too much load while others are underutilized.

You can tweak the settings a bit, by defining which CPU picks up a certain
interrupt. You do this by changing the contents of /proc/irq/$interrupt_number/smp_affinity. You can get a list of interrupts and their meaning by doing:

cat /proc/interrupts

The number in smp_affinity is a bitmap of CPUs, represented in hex code. The rightmost bit is the least significant. For instance, if the system has 8 cores and you only wanted to use cores 0, 1 and 3, you should set the smp_affinity to

1a:

cpu_7 cpu_6 cpu_5 cpu_4 cpu_3 cpu_2 cpu_1 cpu_0
0  0  0  0  1  0  1  1 = 00001011 = 0B (in hex)

For eg: if you want to set up any of the CPU to be able to pick up interrupt 38 (eth0 in my 8-core system) with:

sudo echo ff > /proc/irq/38/smp_affinity

Get 24/7 expert server management

  • Sever management

Looking for AWS Experts?

We provide top-of-the-line custom AWS setup services tailored to your needs.

Engintron installation and configuration

Engintron installation and configuration
  • Linux
logo

When does DNS use TCP / UDP?

When does DNS use TCP / UDP?
  • DNS
  • Linux
logo

Posts by Aaden Dev

Aaden Dev

    SysAdmin Series – What does ksoftirqd do ?