Tagged articles
37 articles
Page 1 of 1
Tech Stroll Journey
Tech Stroll Journey
Nov 27, 2025 · Operations

How to Diagnose and Reduce CPU Context Switches on Linux

This guide explains when CPU context switches happen, how to monitor them with vmstat and pidstat, interprets key metrics such as cswch and nvcswch, and provides step‑by‑step analysis techniques for identifying and troubleshooting CPU performance issues on Linux systems.

CPUInterruptsLinux
0 likes · 11 min read
How to Diagnose and Reduce CPU Context Switches on Linux
Liangxu Linux
Liangxu Linux
Oct 28, 2025 · Fundamentals

8 Must‑Know Embedded Interview Questions and How to Ace Them

This article presents eight high‑frequency embedded‑system interview questions, explains the underlying concepts such as boot process, interrupt handling, stack overflow detection, struct alignment, bit‑banding, dynamic memory risks, volatile usage, and provides concise C code examples and best‑practice answers to help candidates succeed in technical interviews.

CCortex-MInterrupts
0 likes · 8 min read
8 Must‑Know Embedded Interview Questions and How to Ace Them
Linux Kernel Journey
Linux Kernel Journey
Sep 13, 2025 · Fundamentals

How Linux Handles Hardware Interrupts: From Signal to Response

This article explains the complete Linux interrupt management process, covering the basics of hardware and software interrupts, the role of programmable interrupt controllers, the CPU's response workflow, top‑half and bottom‑half handling, registration techniques, performance optimizations, and debugging tools, all illustrated with concrete examples and code.

APICInterruptsKernel
0 likes · 26 min read
How Linux Handles Hardware Interrupts: From Signal to Response
Deepin Linux
Deepin Linux
Sep 9, 2025 · Fundamentals

How Linux Handles Hardware Interrupts: From Signal to Task Recovery

This article explains the complete Linux interrupt mechanism—from hardware signal generation, through the programmable interrupt controller and CPU response, to the split top‑half and bottom‑half handling and driver registration—providing developers and operators with a clear understanding of how microsecond‑level hardware events are processed efficiently.

InterruptsKernelLinux
0 likes · 30 min read
How Linux Handles Hardware Interrupts: From Signal to Task Recovery
Raymond Ops
Raymond Ops
Jul 7, 2025 · Operations

Understanding Linux NIC Packet Reception and How to Fix Drop Issues

This article explains the Linux network interface card packet reception flow, how to identify and interpret RX errors, dropped packets and overruns, and provides practical commands and tuning methods such as adjusting ring buffers, IRQ affinity, RSS/RPS, and netdev_max_backlog to resolve packet loss.

InterruptsLinuxPacket Loss
0 likes · 12 min read
Understanding Linux NIC Packet Reception and How to Fix Drop Issues
Deepin Linux
Deepin Linux
Jun 11, 2025 · Fundamentals

How ARM+Linux Interrupts Power Efficient Computing: Deep Dive into Mechanisms

This article explains the role of the interrupt system in ARM‑based Linux platforms, covering hardware modes, vector tables, exception handling, GIC architecture, and kernel integration, and provides detailed code examples and optimization techniques for developers working on embedded and high‑performance systems.

ARMInterruptsKernel
0 likes · 47 min read
How ARM+Linux Interrupts Power Efficient Computing: Deep Dive into Mechanisms
Linux Code Review Hub
Linux Code Review Hub
May 10, 2025 · Fundamentals

How to Optimize Linux Kernel Real‑Time Performance

This article explains the concept of real‑time operating systems, distinguishes soft and hard real‑time, and walks through Linux kernel factors such as clock tick, interrupt handling, scheduling classes, run‑bandwidth limits, and DPDK polling, providing concrete examples and practical tuning steps.

DPDKInterruptsReal-Time
0 likes · 17 min read
How to Optimize Linux Kernel Real‑Time Performance
Liangxu Linux
Liangxu Linux
Apr 29, 2025 · Fundamentals

How Early Computers Invented Interrupts to End Wasteful Polling

The article explains how 1960s batch systems suffered from CPU waste due to polling I/O devices, how IBM 704’s overflow flag inspired automatic error handling, and how the concept evolved into hardware interrupts with a concrete design, interrupt types, and vector table implementation.

CPUInterruptsOperating Systems
0 likes · 7 min read
How Early Computers Invented Interrupts to End Wasteful Polling
IT Services Circle
IT Services Circle
Mar 30, 2025 · Fundamentals

From Polling to Interrupts: Understanding Early Operating System Mechanisms

The article explains how early batch-processing systems relied on inefficient polling of slow I/O devices, describes the inspiration from IBM 704's overflow flag, and details the invention and implementation of hardware and software interrupts, including interrupt types, vector tables, and handler functions, to enable efficient CPU‑device interaction.

CPUException HandlingHardware
0 likes · 7 min read
From Polling to Interrupts: Understanding Early Operating System Mechanisms
Deepin Linux
Deepin Linux
Dec 4, 2024 · Fundamentals

Understanding Linux Interrupt Number Mapping Mechanism

This article explores the Linux kernel's interrupt management architecture, detailing how hardware interrupt IDs are mapped to software IRQ numbers through the irq_domain structure, GIC controller design, and various mapping strategies such as linear, radix‑tree, and no‑map approaches.

Device TreeIRQ MappingInterrupts
0 likes · 21 min read
Understanding Linux Interrupt Number Mapping Mechanism
Liangxu Linux
Liangxu Linux
Mar 30, 2024 · Fundamentals

Essential Linux Kernel Q&A: Architecture, Memory Management, and Process Basics

This comprehensive Q&A explains Linux system composition, kernel placement, core subsystems, address translation, paging structures, process concepts, scheduling algorithms, interrupt handling, system calls, synchronization, deadlock avoidance, and the virtual file system, providing a solid foundation for operating‑system fundamentals.

InterruptsKernelLinux
0 likes · 19 min read
Essential Linux Kernel Q&A: Architecture, Memory Management, and Process Basics
Deepin Linux
Deepin Linux
Nov 5, 2023 · Fundamentals

Understanding Linux ARM Interrupt Mechanism and Kernel Implementation

This article explains the ARM hardware interrupt flow, the Linux kernel's handling of IRQ and FIQ, the construction of exception vector tables, the role of asmlinkage, interrupt registration, shared interrupt models, and the specific implementation for the S3C2410 platform.

ARMDevice DriversInterrupts
0 likes · 18 min read
Understanding Linux ARM Interrupt Mechanism and Kernel Implementation
IT Services Circle
IT Services Circle
Sep 14, 2023 · Fundamentals

Why Does a Computer Freeze? What Happens Inside the CPU When It Crashes

During a computer freeze, the CPU isn’t simply idle; it may be trapped in a high‑priority interrupt handler or deadlocked kernel code, and the operating system’s scheduling and interrupt priorities determine whether the processor can be reclaimed, explaining why a simple infinite loop rarely causes a crash.

CPUInterruptsOperating System
0 likes · 6 min read
Why Does a Computer Freeze? What Happens Inside the CPU When It Crashes
Open Source Linux
Open Source Linux
Sep 13, 2023 · Fundamentals

What Really Happens Inside a CPU When Your Computer Freezes?

This article explains why computers freeze, describing how the CPU can become stuck in software loops, the crucial role of interrupts and their priorities, and how kernel‑level deadlocks can render a system unresponsive despite the CPU still running.

CPUInterruptscomputer crash
0 likes · 6 min read
What Really Happens Inside a CPU When Your Computer Freezes?
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
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
Refining Core Development Skills
Refining Core Development Skills
Mar 2, 2022 · Fundamentals

Interrupt Mechanism, PIC, APIC, and Interrupt Affinity Explained

This article explains how a CPU handles interrupts using mechanisms like the programmable interrupt controller (PIC), advanced APIC, interrupt vectors, IDT, and how interrupt affinity and CPU affinity can be configured to balance load across multiple cores, illustrating both synchronous exceptions and asynchronous interrupts.

APICCPUHardware
0 likes · 9 min read
Interrupt Mechanism, PIC, APIC, and Interrupt Affinity Explained
Liangxu Linux
Liangxu Linux
Nov 21, 2021 · Fundamentals

Why Interrupts Matter: Unraveling CPU Interrupt Mechanisms and the IDT

This article explains how CPUs receive interrupt numbers through hardware, exceptions, or the INT instruction, describes the structure and purpose of the Interrupt Descriptor Table, and details the stack operations and control‑flow steps the processor performs to handle and return from an interrupt.

CPUException HandlingIDT
0 likes · 17 min read
Why Interrupts Matter: Unraveling CPU Interrupt Mechanisms and the IDT
Liangxu Linux
Liangxu Linux
Nov 1, 2021 · Backend Development

How Linux Sends Network Packets: From send() to the NIC Explained

This article walks through the complete Linux kernel path for sending a network packet, covering the send() system call, TCP processing, IP routing, queueing, driver interaction, DMA mapping, and the role of hard and soft interrupts, while answering common performance questions.

InterruptsTCPdriver
0 likes · 31 min read
How Linux Sends Network Packets: From send() to the NIC Explained
Liangxu Linux
Liangxu Linux
Sep 2, 2021 · Fundamentals

Understanding x86 Interrupts: Vectors, Descriptors, and Handling Mechanisms

This article explains the fundamentals of x86 interrupt handling, covering the distinction between interrupt vectors and descriptors, classification of internal and external interrupts, the role of the 8259A PIC, how interrupt numbers are assigned, and the mechanisms for saving and restoring CPU state during an interrupt.

CPUHardwareInterrupts
0 likes · 15 min read
Understanding x86 Interrupts: Vectors, Descriptors, and Handling Mechanisms
ITPUB
ITPUB
Feb 2, 2021 · Fundamentals

How Linux Receives Network Packets: From NIC Interrupts to recvfrom

This article provides a detailed, step‑by‑step walkthrough of the Linux kernel’s packet‑receiving path, covering NIC DMA, hardware and soft interrupts, ksoftirqd threads, NAPI polling, protocol‑stack registration, IP/UDP processing, and the final recvfrom system call that delivers data to user space.

InterruptsKernelLinux
0 likes · 29 min read
How Linux Receives Network Packets: From NIC Interrupts to recvfrom
ITPUB
ITPUB
Dec 3, 2020 · Fundamentals

What Really Happens Inside Linux When recvfrom Receives a Packet?

This article walks through the complete Linux kernel path a network packet follows—from the NIC’s DMA and hardware interrupt, through soft‑interrupt handling, NAPI polling, protocol‑stack registration, IP and UDP processing, all the way to the user‑space recvfrom system call—revealing the many hidden steps that make packet reception possible.

InterruptsKernelLinux
0 likes · 28 min read
What Really Happens Inside Linux When recvfrom Receives a Packet?
Liangxu Linux
Liangxu Linux
Sep 2, 2020 · Fundamentals

What Really Happens Inside the OS When You Press a Keyboard Key?

This article explains how operating systems manage diverse I/O devices through device controllers, registers, drivers, DMA, and Linux’s generic block layer, and walks through the complete sequence that occurs—from a keyboard press to the character appearing on the screen.

DMADevice DriversI/O
0 likes · 16 min read
What Really Happens Inside the OS When You Press a Keyboard Key?
macrozheng
macrozheng
Aug 8, 2020 · Fundamentals

How CPUs Handle Interrupts: From 8259A PIC to APIC and Affinity

This article explains the CPU's interrupt mechanism, describing how hardware devices trigger interrupts, the role of the 8259A programmable interrupt controller, the evolution to APIC with I/O and Local APICs, and how interrupt affinity can be configured to improve multi‑core performance.

APICCPUInterrupts
0 likes · 9 min read
How CPUs Handle Interrupts: From 8259A PIC to APIC and Affinity
Open Source Linux
Open Source Linux
Jul 9, 2020 · Fundamentals

How CPUs Handle Interrupts: From PIC to APIC and Interrupt Affinity

This article explains the CPU interrupt mechanism, describing how hardware devices generate interrupt signals, how the legacy 8259A PIC and modern APIC manage and prioritize those interrupts, and how interrupt affinity can be configured to improve multi‑core performance.

APICCPUInterrupts
0 likes · 9 min read
How CPUs Handle Interrupts: From PIC to APIC and Interrupt Affinity
dbaplus Community
dbaplus Community
May 15, 2018 · Operations

Why High‑Throughput Redis Still Drops Packets: Deep Dive into Linux Network Stack and Interrupt Optimization

The article investigates massive packet loss in Meituan‑Dianping's Redis service despite 10 Gbps NIC upgrades, traces the issue to kernel receive‑buffer drops and single‑CPU interrupt handling, and presents a step‑by‑step optimization using backlog tuning, CPU and Redis affinity, and NUMA‑aware placement to eliminate drops and improve latency.

InterruptsLinuxNUMA
0 likes · 30 min read
Why High‑Throughput Redis Still Drops Packets: Deep Dive into Linux Network Stack and Interrupt Optimization
MaGe Linux Operations
MaGe Linux Operations
Dec 10, 2017 · Fundamentals

Master Linux Fundamentals: From GNU to Kernel Internals Explained

This comprehensive guide covers Linux fundamentals, explaining GNU's role, system components, kernel subsystems, memory addressing, process management, interrupt handling, system calls, synchronization mechanisms, file systems, and device drivers, providing clear answers to common questions for learners and developers.

InterruptsKernelMemory Management
0 likes · 22 min read
Master Linux Fundamentals: From GNU to Kernel Internals Explained
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