Tagged articles
18 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Jul 24, 2025 · Fundamentals

Inside Linux: How UDP Packets Travel From NIC to Kernel and Back

This article explains the complete Linux network packet lifecycle for UDP, detailing how a packet moves from the physical NIC into kernel memory, is processed by drivers, soft‑irqs, the IP and transport layers, and finally traverses the send path back to the NIC, including key functions, queues, and configuration points.

KernelNetworkingUDP
0 likes · 15 min read
Inside Linux: How UDP Packets Travel From NIC to Kernel and Back
Linux Kernel Journey
Linux Kernel Journey
Dec 18, 2024 · Operations

Tracing Linux Soft Interrupts with eBPF: Measuring Processing Time

This article demonstrates how to write an eBPF program that attaches to Linux soft‑interrupt entry and exit points, records timestamps in eBPF maps, computes handling duration, updates counters and histograms, and exposes the data to user space for performance analysis.

LinuxPerformance MonitoringeBPF
0 likes · 5 min read
Tracing Linux Soft Interrupts with eBPF: Measuring Processing Time
Liangxu Linux
Liangxu Linux
Sep 7, 2023 · Fundamentals

Understanding Linux IRQ and SoftIRQ: From Hardware Interrupts to Deferred Handling

This article explains the fundamentals of Linux interrupt handling, covering hardware and software interrupts, the IRQ processing flow, maskable vs non‑maskable interrupts, and the three deferred execution mechanisms—softirq, tasklet, and workqueue—along with code examples and performance considerations.

Deferred ExecutionInterruptssoftirq
0 likes · 15 min read
Understanding Linux IRQ and SoftIRQ: From Hardware Interrupts to Deferred Handling
Open Source Linux
Open Source Linux
Aug 25, 2023 · Fundamentals

Understanding Linux IRQ and SoftIRQ: From Basics to Deferred Handling

This article explains the fundamentals of Linux interrupt handling, covering the concepts of hardware and software interrupts, the IRQ processing flow, maskable versus non‑maskable interrupts, and the three deferred execution mechanisms—softirq, tasklet, and workqueue—along with code examples and practical considerations.

Deferred ExecutionKernelLinux
0 likes · 14 min read
Understanding Linux IRQ and SoftIRQ: From Basics to Deferred Handling
Tencent Architect
Tencent Architect
May 16, 2023 · Fundamentals

Optimizing Network Latency in TencentOS: Kernel SoftIRQ and ksoftirqd Tuning

This article details a systematic investigation and multi‑stage optimization of TencentOS network latency, uncovering kernel soft‑interrupt bottlenecks, proposing and upstreaming patches to net_rx_action, RPS handling, and ksoftirqd scheduling, ultimately reducing handshake failures by over 80% while sharing practical insights for Linux kernel developers.

Linux kernelksoftirqdnetwork performance
0 likes · 15 min read
Optimizing Network Latency in TencentOS: Kernel SoftIRQ and ksoftirqd Tuning
Alibaba Cloud Native
Alibaba Cloud Native
Mar 10, 2023 · Cloud Native

Uncovering the Root Causes of ACK Cluster Network Latency: kubelet, softirq, and cgroup Insights

A detailed post‑mortem explains how excessive cgroup files, kubelet's sys‑CPU usage, soft‑interrupt scheduling delays, and a buggy page‑free routine caused intermittent hundreds‑of‑milliseconds network latency in an Alibaba Cloud ACK cluster, and how targeted CPU binding and kernel patches resolved the issue.

Cloud NativeKernelKubernetes
0 likes · 14 min read
Uncovering the Root Causes of ACK Cluster Network Latency: kubelet, softirq, and cgroup Insights
Open Source Linux
Open Source Linux
Oct 8, 2022 · Fundamentals

Understanding Linux IRQ and SoftIRQ: From Hard Interrupts to Deferred Handling

This article explains the fundamentals of Linux interrupt handling, covering the distinction between hardware and software interrupts, the processing flow of hard IRQs, maskable versus non‑maskable interrupts, the need for deferred execution, and a deep dive into softirqs, tasklets, and workqueues with code examples and performance considerations.

Deferred ExecutionInterruptsKernel
0 likes · 15 min read
Understanding Linux IRQ and SoftIRQ: From Hard Interrupts to Deferred Handling
Liangxu Linux
Liangxu Linux
Oct 3, 2022 · Fundamentals

Understanding Linux IRQ and SoftIRQ: From Hardware Interrupts to Deferred Handling

This article explains the fundamentals of Linux interrupt handling, covering hardware and software interrupt types, the IRQ processing flow, maskable versus non‑maskable interrupts, the need for deferred execution, and detailed mechanisms of softirqs, tasklets, and workqueues with practical code examples.

Deferred ExecutionInterruptsKernel
0 likes · 14 min read
Understanding Linux IRQ and SoftIRQ: From Hardware Interrupts to Deferred Handling
ITPUB
ITPUB
May 13, 2021 · Fundamentals

Unveiling Linux’s Network Send Path: From send() to the Wire

This article provides a deep, step‑by‑step analysis of how Linux 3.10 processes a send() call—from user‑space socket handling through TCP, IP routing, queueing, driver DMA mapping, and both hard and soft interrupt handling—answering why CPU time appears in sy/si, why NET_RX softirqs dominate, and what memory copies occur during transmission.

DMAKernelLinux
0 likes · 32 min read
Unveiling Linux’s Network Send Path: From send() to the Wire
Liangxu Linux
Liangxu Linux
Mar 27, 2021 · Operations

Understanding Linux CPU Scheduling and Interrupt Handling

This article explains Linux's sophisticated scheduling system, CPU context switching, and the architecture of hardware and software interrupts, detailing how the kernel manages CPU resources, interrupt contexts, and bottom‑half mechanisms to optimize performance and stability.

CPU affinityCPU schedulingLinux
0 likes · 20 min read
Understanding Linux CPU Scheduling and Interrupt Handling
ITPUB
ITPUB
Aug 21, 2017 · Fundamentals

Understanding Linux Interrupt Handling: Tasklets, SoftIRQs, and Workqueues

This article explains Linux interrupt handling mechanisms, covering the basic vector‑table approach, the concept of bottom‑half processing, and the evolution from simple interrupt routines to softirqs, tasklets, and workqueues, while offering practical guidance on when to use each technique.

InterruptsKernelWorkqueue
0 likes · 8 min read
Understanding Linux Interrupt Handling: Tasklets, SoftIRQs, and Workqueues
ITPUB
ITPUB
Oct 20, 2016 · Fundamentals

Understanding Linux Hard IRQ vs Soft IRQ: A Deep Dive into Kernel Interrupt Handling

This article explains the distinction between hard IRQ and soft IRQ in the Linux x86 32‑bit kernel, detailing how preempt_count tracks interrupt context, how do_IRQ, irq_enter, and irq_exit manage the transition, and how __do_softirq processes pending softirqs with code examples and diagrams.

HardIRQInterruptsKernel
0 likes · 9 min read
Understanding Linux Hard IRQ vs Soft IRQ: A Deep Dive into Kernel Interrupt Handling