Tagged articles
461 articles
Page 2 of 5
Deepin Linux
Deepin Linux
Jan 21, 2025 · Fundamentals

Understanding the Linux Process Scheduler: Concepts, Strategies, and Evolution

This article provides a comprehensive overview of the Linux process scheduler, explaining why scheduling is needed, how it works, the various scheduling policies such as real‑time and CFS, the mechanisms for priority and load balancing, and the historical evolution of Linux schedulers with code examples.

CFSLinuxOperating System
0 likes · 37 min read
Understanding the Linux Process Scheduler: Concepts, Strategies, and Evolution
Linux Kernel Journey
Linux Kernel Journey
Dec 29, 2024 · Fundamentals

Extending Fair Scheduling: Inside Linux’s New EEVDF Algorithm

The article explains how the Earliest Eligible Virtual Deadline First (EEVDF) scheduler, introduced in Linux 6.6, replaces CFS by using virtual deadlines and a lag concept to achieve both fairness and interactivity, and walks through concrete formulas, parameter settings, and step‑by‑step scheduling examples.

CFSEEVDFFairness
0 likes · 11 min read
Extending Fair Scheduling: Inside Linux’s New EEVDF Algorithm
Deepin Linux
Deepin Linux
Dec 22, 2024 · Fundamentals

Deep Dive into Linux Kernel task_struct: Structure, Fields, and Usage

This article provides a comprehensive analysis of the Linux kernel's task_struct data structure, detailing its members such as task IDs, parent‑child relationships, state flags, credentials, scheduling information, signal handling, memory and file management, kernel stack layout, and its role in process creation via system calls like fork.

LinuxSystem Callc++
0 likes · 22 min read
Deep Dive into Linux Kernel task_struct: Structure, Fields, and Usage
Linux Kernel Journey
Linux Kernel Journey
Dec 8, 2024 · Fundamentals

Linux Kernel Source Analysis: Understanding Heap Memory Management

This article explains how the Linux kernel implements heap memory management, covering the heap data structure, the mm_struct fields start_brk and brk, the brk/sbrk and malloc/free allocation methods, the brk and mmap system calls, and the internal glibc structures heap_info and malloc_state that track heap state.

Heap MemoryLinuxbrk
0 likes · 17 min read
Linux Kernel Source Analysis: Understanding Heap Memory Management
Deepin Linux
Deepin Linux
Nov 26, 2024 · Fundamentals

Linux Process Management: Concepts, Implementation, Lifecycle, Scheduling, and Monitoring Tools

This article provides a comprehensive overview of Linux process management, covering fundamental concepts such as tasks and states, the internal task_struct representation, process creation via fork/vfork/clone, execution with execve, lifecycle transitions, scheduling policies, copy‑on‑write optimization, resource limits, and practical tools for monitoring and controlling processes.

COWLinuxdaemon
0 likes · 67 min read
Linux Process Management: Concepts, Implementation, Lifecycle, Scheduling, and Monitoring Tools
DeWu Technology
DeWu Technology
Nov 25, 2024 · Databases

Redis Hot Key Detection and Kernel-Based Real-Time Statistics

The article describes a kernel‑level hot‑key detection module for Redis that tracks per‑second access counts via an O(1) LRU queue, flags keys exceeding configurable thresholds, and provides real‑time subscription alerts and queryable logs, overcoming the latency and overhead limitations of existing detection methods.

HotKeykernelperformance
0 likes · 11 min read
Redis Hot Key Detection and Kernel-Based Real-Time Statistics
Linux Kernel Journey
Linux Kernel Journey
Nov 3, 2024 · Fundamentals

Linux Kernel Source Walkthrough: The Five Core Subsystems

This article explains the Linux kernel architecture, breaks it into three layers and five key subsystems—process scheduling, memory management, virtual file system, network interface, and inter‑process communication—detailing their responsibilities, inter‑dependencies, and providing concrete code examples and diagrams.

IPCLinuxMemory Management
0 likes · 29 min read
Linux Kernel Source Walkthrough: The Five Core Subsystems
21CTO
21CTO
Oct 25, 2024 · Operations

Why Linux Removed Over Ten Russian Kernel Maintainers Amid Sanctions

Linux founder Linus Torvalds confirmed that the kernel project has recently stripped more than ten maintainers linked to Russia, citing compliance requirements and U.S. sanctions, while the removed contributors' driver code remains in the source tree.

GeopoliticsLinuxMaintainers
0 likes · 3 min read
Why Linux Removed Over Ten Russian Kernel Maintainers Amid Sanctions
Deepin Linux
Deepin Linux
Oct 23, 2024 · Fundamentals

Understanding Linux x86-64 System Call Implementation

This article provides a comprehensive overview of how Linux kernel system calls are implemented on the x86-64 architecture, covering the conceptual differences from regular function calls, register conventions, initialization processes, syscall tables, and practical assembly examples such as write and getpid.

AssemblyLinuxOS Internals
0 likes · 28 min read
Understanding Linux x86-64 System Call Implementation
Linux Kernel Journey
Linux Kernel Journey
Oct 17, 2024 · Fundamentals

Inside Linux Memory Compaction: A Source‑Code Walkthrough of Memory Management

The article explains how Linux manages memory page watermarks, when the allocator falls back to kswapd, and the exact conditions that trigger direct compaction via __alloc_pages_direct_compact, then walks through the core compaction functions—try_to_compact_pages, compact_zone_order, compact_zone, and the page‑migration helpers—illustrated with flow diagrams and real kernel code.

LinuxMemory Managementc++
0 likes · 37 min read
Inside Linux Memory Compaction: A Source‑Code Walkthrough of Memory Management
21CTO
21CTO
Oct 15, 2024 · Fundamentals

Can eBPF Run on Windows? Exploring Cross‑Platform Kernel Programmability

At the recent virtual eBPF summit, Isovalent CTO Thomas Graf revealed that Microsoft is developing a Windows version of eBPF, aiming for cross‑platform compatibility with Linux, while the IETF works on standardizing the eBPF ISA and verifier to ensure secure, portable kernel bytecode execution.

Cross‑PlatformLinuxWindows
0 likes · 5 min read
Can eBPF Run on Windows? Exploring Cross‑Platform Kernel Programmability
Liangxu Linux
Liangxu Linux
Oct 13, 2024 · Fundamentals

What Does Your CPU Do When It’s Idle? Inside the System Idle Process

When a computer finishes loading a webpage and the user does nothing, the CPU appears idle, but the operating system runs a special idle process that repeatedly executes the halt instruction, managing power consumption and illustrating core concepts of processes, scheduling, and hardware‑software interaction.

Idle ProcessOperating Systemkernel
0 likes · 9 min read
What Does Your CPU Do When It’s Idle? Inside the System Idle Process
Linux Kernel Journey
Linux Kernel Journey
Oct 9, 2024 · Fundamentals

Understanding Linux Process Creation and Termination (Part 1)

This article walks through the Linux kernel mechanisms for creating and destroying processes, covering copy‑on‑write, the fork/vfork/clone system calls, the kernel_clone implementation in kernels 5.0 and 6.5, the copy_process workflow, and the steps the kernel takes to wake up a new task and clean up a terminated one.

LinuxcloneeBPF
0 likes · 26 min read
Understanding Linux Process Creation and Termination (Part 1)
Java Tech Enthusiast
Java Tech Enthusiast
Sep 20, 2024 · R&D Management

Linus Torvalds Warns of Aging Linux Kernel Maintainers and Future Challenges

At the Open Source Summit Europe, Linus Torvalds warned that the Linux kernel’s aging maintainers and a shrinking pool of interested developers threaten succession, stressing that future leaders must earn community trust through sustained contributions, while better mentorship, documentation, and outreach are needed to attract new talent.

AgingLinuxMaintainers
0 likes · 8 min read
Linus Torvalds Warns of Aging Linux Kernel Maintainers and Future Challenges
Deepin Linux
Deepin Linux
Sep 18, 2024 · Operations

Understanding and Troubleshooting Linux Kernel Network Packet Loss

This article explains why Linux kernel network packet loss occurs, covering causes such as UDP checksum errors, firewall misconfigurations, rp_filter settings, buffer overflows, and hardware faults, and provides detailed diagnostic steps and practical solutions to identify and resolve each issue in Linux environments.

LinuxPacket Losskernel
0 likes · 77 min read
Understanding and Troubleshooting Linux Kernel Network Packet Loss
Open Source Linux
Open Source Linux
Sep 14, 2024 · Operations

Unlocking Linux Kernel Secrets: A Comprehensive Guide to Debugging Tools

This article provides a thorough overview of Linux kernel debugging techniques, covering pseudo‑filesystems such as procfs, sysfs, debugfs and relayfs, as well as essential tools like printk, ftrace, trace‑cmd, kprobe, systemtap, kgdb, kgtp, perf, and other modern tracers, helping developers diagnose and optimise kernel behavior.

Linuxdebuggingkernel
0 likes · 25 min read
Unlocking Linux Kernel Secrets: A Comprehensive Guide to Debugging Tools
Liangxu Linux
Liangxu Linux
Sep 5, 2024 · Fundamentals

Why Linux Uses a Bus‑Device‑Driver Model for High Cohesion, Low Coupling

The article explains how Linux separates board‑level information from drivers using a bus‑device‑driver model, illustrating high cohesion and low coupling with concrete code examples, matching mechanisms, and the evolution toward device trees for scalable hardware abstraction.

Bus ModelHigh CohesionLinux
0 likes · 9 min read
Why Linux Uses a Bus‑Device‑Driver Model for High Cohesion, Low Coupling
Linux Kernel Journey
Linux Kernel Journey
Aug 25, 2024 · Fundamentals

Analyzing Linux Memory Management Locks and Key Optimization Cases

The article examines the role of various locks in Linux kernel memory management, explains their APIs and sleeping constraints, presents detailed case studies of lock‑related performance patches—including per‑memcg LRU, mmap_lock IO‑fault path, SPF, PVL, fault‑around, unmap, and rmap lockless optimizations—and summarizes common strategies for reducing lock contention and improving scalability.

LinuxMemory Managementkernel
0 likes · 28 min read
Analyzing Linux Memory Management Locks and Key Optimization Cases
Code Wrench
Code Wrench
Aug 20, 2024 · Fundamentals

Master OS Fundamentals: From Kernel/User Modes to Semaphores

This article explains core operating system concepts—including its main functions, the distinction between user and kernel modes, process and thread management, and semaphore-based synchronization—providing clear definitions, code examples, and practical usage scenarios for developers.

Threadkernelprocess
0 likes · 8 min read
Master OS Fundamentals: From Kernel/User Modes to Semaphores
Deepin Linux
Deepin Linux
Aug 19, 2024 · Fundamentals

Using GDB to Debug Executables Without Debug Information

This article provides a comprehensive guide on how to employ GDB for debugging programs that lack symbol information, covering basic commands, breakpoint techniques, core‑dump analysis, reverse debugging, and a practical example of integrating VSCode, GDB, and QEMU to debug an ARM64 Linux kernel.

kernelno-debug-inforeverse engineering
0 likes · 33 min read
Using GDB to Debug Executables Without Debug Information
Open Source Linux
Open Source Linux
Aug 15, 2024 · Fundamentals

What Do “buffers” and “cached” Really Mean in Linux’s free Command?

This article demystifies the Linux free command’s “buffers” and “cached” fields by tracing their origins through /proc/meminfo, kernel source functions such as meminfo_proc_show, nr_blockdev_pages, and page‑cache mechanisms, and demonstrates the differences with practical experiments.

BuffersLinuxMemory Management
0 likes · 12 min read
What Do “buffers” and “cached” Really Mean in Linux’s free Command?
Deepin Linux
Deepin Linux
Jul 17, 2024 · Fundamentals

Understanding Page Fault Handling and Virtual Memory Management in uCore OS

This article explains the principles of virtual memory, the data structures and functions used in uCore to manage page faults, and how the operating system handles demand paging, page swapping, and invalid accesses through detailed code examples and workflow descriptions.

Memory ManagementOperating SystemPage Fault
0 likes · 23 min read
Understanding Page Fault Handling and Virtual Memory Management in uCore OS
Liangxu Linux
Liangxu Linux
Jul 13, 2024 · Fundamentals

Exploring the Linux /proc Filesystem: A Complete Guide to Process Information

This article provides a comprehensive overview of the Linux /proc virtual filesystem, detailing how to mount it, the structure of its directories and files such as /proc/pid, /proc/self, and various system information files, and includes practical command examples and security considerations.

LinuxProc FilesystemSystem Internals
0 likes · 23 min read
Exploring the Linux /proc Filesystem: A Complete Guide to Process Information
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jul 12, 2024 · Mobile Development

In-depth Analysis of Android Binder IPC Mechanism (Android 14 & Kernel 6.1)

This article walks through Android Binder IPC on Android 14 and Linux 6.1, detailing client‑side service registration and lookup, the kernel driver’s handling of parcels, reference management, and how ServiceManager maps names to IBinder objects, culminating in a diagram of the full native‑to‑kernel transaction flow.

AndroidAndroid14Binder
0 likes · 22 min read
In-depth Analysis of Android Binder IPC Mechanism (Android 14 & Kernel 6.1)
Liangxu Linux
Liangxu Linux
Jun 26, 2024 · Operations

How to Optimize Linux Kernel Parameters for Better Performance

This guide explains how to fine‑tune Linux kernel settings—including sysctl network parameters, shared memory limits, local port ranges, and disk scheduler options—using configuration files and command‑line tools to improve system stability and throughput.

Linuxdisk-schedulerkernel
0 likes · 11 min read
How to Optimize Linux Kernel Parameters for Better Performance
Tencent Architect
Tencent Architect
Jun 24, 2024 · Operations

Root Cause Analysis of Linux Kernel Hard Lockup on CPU 51

This article walks through a real Linux kernel hard lockup case, explaining what hard lockup is, analyzing stack traces and register values, identifying a spinlock contention on a per‑CPU runqueue, and showing how an inappropriate GFP flag caused interrupts to be enabled at the wrong time, leading to a deadlock and the eventual fix.

LinuxPerf EventsScheduling
0 likes · 17 min read
Root Cause Analysis of Linux Kernel Hard Lockup on CPU 51
Linux Code Review Hub
Linux Code Review Hub
May 17, 2024 · Fundamentals

How Linux Kernel Performs File Readahead: An Illustrated Walkthrough

This article explains the design and implementation of file readahead in the Linux 3.12 kernel, using sequential, random, and multithreaded read scenarios to show how the kernel initializes readahead windows, triggers synchronous and asynchronous prefetches, and updates the page cache.

Linuxfile systemkernel
0 likes · 8 min read
How Linux Kernel Performs File Readahead: An Illustrated Walkthrough
Liangxu Linux
Liangxu Linux
May 16, 2024 · Fundamentals

Understanding the Linux /proc Virtual Filesystem and Its Key Entries

The article provides a comprehensive guide to the Linux /proc virtual filesystem, explaining its purpose, how to mount it, and detailing the most important files and directories such as /proc/pid, /proc/self, security attributes, memory maps, and network information, along with practical commands for inspection.

LinuxProc Filesystemkernel
0 likes · 23 min read
Understanding the Linux /proc Virtual Filesystem and Its Key Entries
Open Source Linux
Open Source Linux
May 16, 2024 · Fundamentals

Unlocking Linux Secrets: A Deep Dive into the /proc Virtual Filesystem

This article explains the Linux /proc virtual filesystem, detailing its purpose as a kernel interface, how to mount it, and describing the most important files and directories—such as /proc/[pid], /proc/self, /proc/net, and security‑related entries—along with example commands for inspecting process information.

LinuxProc FilesystemSystem Administration
0 likes · 22 min read
Unlocking Linux Secrets: A Deep Dive into the /proc Virtual Filesystem
Liangxu Linux
Liangxu Linux
May 13, 2024 · Fundamentals

Unlocking Linux /proc: A Complete Guide to the Virtual Filesystem

The article provides a comprehensive guide to Linux’s /proc virtual filesystem, detailing its purpose, mounting methods, key directories such as /proc/pid, /proc/self, and numerous files that expose process, thread, memory, and kernel information, along with practical command examples.

LinuxProc FilesystemSystem Information
0 likes · 26 min read
Unlocking Linux /proc: A Complete Guide to the Virtual Filesystem
Liangxu Linux
Liangxu Linux
Apr 24, 2024 · Fundamentals

Unlocking Linux Memory: From Basics to Advanced Allocation Strategies

This comprehensive guide explains Linux memory fundamentals, address space layout, fragmentation, the buddy and slab allocators, kernel and user‑mode memory pools, DMA handling, common programming pitfalls, and practical tools for monitoring memory usage.

DMALinuxMemory Management
0 likes · 19 min read
Unlocking Linux Memory: From Basics to Advanced Allocation Strategies
Liangxu Linux
Liangxu Linux
Apr 18, 2024 · Fundamentals

Mastering Linux Memory Management: Structures, Allocation Algorithms, and Common Pitfalls

This article provides a comprehensive guide to Linux memory management, covering memory fundamentals, address spaces, MMU translation, segmentation and paging, the buddy and slab allocation algorithms, kernel and user memory pools, typical usage scenarios, common bugs, and practical tools for monitoring and debugging memory usage.

DMALinuxMemory Management
0 likes · 25 min read
Mastering Linux Memory Management: Structures, Allocation Algorithms, and Common Pitfalls
Practical DevOps Architecture
Practical DevOps Architecture
Apr 6, 2024 · Fundamentals

Overview of a Linux Kernel Lecture Series

This article lists a comprehensive series of 46 video lectures covering essential Linux kernel concepts such as scheduling, memory management, synchronization, file systems, networking, and device drivers, providing a valuable resource for embedded and systems programmers.

Operating SystemSystems Programmingfundamentals
0 likes · 6 min read
Overview of a Linux Kernel Lecture Series
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.

InterruptsLinuxMemory Management
0 likes · 19 min read
Essential Linux Kernel Q&A: Architecture, Memory Management, and Process Basics
Deepin Linux
Deepin Linux
Mar 29, 2024 · Backend Development

Understanding QEMU Vhost‑User Backend for Virtio‑Net Devices

This article explains the architecture and implementation of the virtio/vhost device model, details how QEMU creates and initializes virtio‑net‑pci devices, describes the vhost‑user communication protocol and its integration with DPDK and the Linux vhost‑net kernel driver, and provides practical command‑line examples and code snippets.

BackendDPDKNetwork Virtualization
0 likes · 31 min read
Understanding QEMU Vhost‑User Backend for Virtio‑Net Devices
Tencent Architect
Tencent Architect
Mar 27, 2024 · Operations

Why Does TCP Send RST? Deep Dive into Causes and Debugging Techniques

This article explains the fundamentals of TCP RST packets, distinguishes active and passive resets, outlines common kernel scenarios that generate them, and provides practical debugging methods using tcpdump, bpftrace, and source‑code analysis to resolve real‑world network incidents.

BPFLinuxRST
0 likes · 20 min read
Why Does TCP Send RST? Deep Dive into Causes and Debugging Techniques
Deepin Linux
Deepin Linux
Mar 5, 2024 · Fundamentals

Understanding System Calls, APIs, and Their Relationship in Linux

This article explains the concept of system calls, how they provide a privileged interface between user programs and the kernel, distinguishes them from APIs and library functions, and describes their role in Linux operating‑system architecture and application development.

APIC libraryLinux
0 likes · 19 min read
Understanding System Calls, APIs, and Their Relationship in Linux
Java Tech Enthusiast
Java Tech Enthusiast
Feb 3, 2024 · Fundamentals

Linus Torvalds Criticizes Google Contributor Over Inode Usage

Linus Torvalds blasted a Google contributor’s proposal to make all file and directory inodes identical, calling the idea outdated, labeling the pull request as garbage, and urging that the inode concept be abandoned in favor of modern file‑system designs that no longer rely on unique identifiers.

LinuxOpenSourceSoftwareEngineering
0 likes · 3 min read
Linus Torvalds Criticizes Google Contributor Over Inode Usage
Java Tech Enthusiast
Java Tech Enthusiast
Jan 31, 2024 · Fundamentals

Linus Torvalds Criticizes Google Contributor Over Inode Design

Linus Torvalds unleashed a rare, scathing rebuke on the Linux kernel mailing list, denouncing Google contributor Steven Rostedt’s inode‑related patch as “garbage code” and arguing that the legacy practice of treating inodes as mandatory unique identifiers is outdated and should be abandoned.

LinuxOpenSourceSoftwareEngineering
0 likes · 2 min read
Linus Torvalds Criticizes Google Contributor Over Inode Design
Linux Code Review Hub
Linux Code Review Hub
Jan 25, 2024 · Fundamentals

Exploring BPF LSM Support on aarch64 Using ftrace

The article investigates why BPF LSM programs fail to load on aarch64 kernels, uses ftrace‑based tools such as bpftrace and trace‑cmd to trace kernel execution, discovers missing arch_prepare_bpf_trampoline support in 5.15 and 6.1, and shows that a patch merged into the mainline kernel restores functionality for upcoming releases.

BPFLSMLinux
0 likes · 27 min read
Exploring BPF LSM Support on aarch64 Using ftrace
Tencent Architect
Tencent Architect
Jan 23, 2024 · Fundamentals

XFS Deep Dive: Layout, Inode Management, and Read/Write Operations

This article analyzes the XFS filesystem implementation in the Linux kernel, covering its on‑disk layout, superblock and allocation‑group structures, inode and free‑space B+ trees, operation sets (iops, fops, aops), file creation, write and read paths, logging, block layer interactions, and useful XFS utilities.

FilesystemXFSinode
0 likes · 12 min read
XFS Deep Dive: Layout, Inode Management, and Read/Write Operations
Open Source Linux
Open Source Linux
Jan 5, 2024 · Fundamentals

How Does the Linux Kernel Boot? A Deep Dive into Decompression and Initialization

This article explains the Linux kernel boot sequence, covering the decompression of a compressed kernel, the early startup code in head.S, the preparation steps performed by U-Boot, and the detailed initialization phases—including architecture setup, memory management, process creation, and the start_kernel routine.

AssemblyInitializationLinux
0 likes · 9 min read
How Does the Linux Kernel Boot? A Deep Dive into Decompression and Initialization
MaGe Linux Operations
MaGe Linux Operations
Dec 17, 2023 · Fundamentals

How Linux Kernel Manages Dynamic Memory and Process Address Space

This article explains how the Linux kernel allocates dynamic memory, distinguishes kernel and user‑space allocation strategies, describes the mm_struct layout of a process address space, and shows how pages and page tables translate virtual addresses to physical memory.

LinuxMemory ManagementVirtual Memory
0 likes · 10 min read
How Linux Kernel Manages Dynamic Memory and Process Address Space
Liangxu Linux
Liangxu Linux
Nov 19, 2023 · Fundamentals

How Linux Processes Sleep, Wake Up, and Avoid Invalid Wakeups

This article explains Linux process scheduling, the difference between TASK_RUNNING, TASK_INTERRUPTIBLE, and TASK_UNINTERRUPTIBLE states, shows code examples for putting a process to sleep and waking it, analyzes the invalid wakeup race condition, and presents kernel patterns that safely avoid such issues.

kernelprocess schedulingwake up
0 likes · 11 min read
How Linux Processes Sleep, Wake Up, and Avoid Invalid Wakeups
Deepin Linux
Deepin Linux
Nov 14, 2023 · Fundamentals

Understanding Linux Processes, Scheduling Algorithms, and Inter‑Process Communication

This article provides a comprehensive overview of Linux processes—from their definition and lifecycle to creation, scheduling strategies such as FCFS, round‑robin, EDF, and RMS, as well as various inter‑process communication mechanisms like pipes, sockets, shared memory, semaphores, and the kernel implementation of fork and context switching.

Schedulingkerneloperating-system
0 likes · 65 min read
Understanding Linux Processes, Scheduling Algorithms, and Inter‑Process Communication
Liangxu Linux
Liangxu Linux
Nov 2, 2023 · Fundamentals

Why Is the Linux Kernel TCP/IP Stack Hard to Scale Compared to User‑Space Stacks?

The article examines the scalability limitations of the Linux kernel TCP/IP stack, comparing its packet‑processing and connection‑setup performance with user‑space stacks such as mTCP and F‑Stack, explains how hash‑table locking and spin‑lock contention cause poor CPS scaling, and argues why user‑space implementations often achieve higher throughput despite their own trade‑offs.

Network StackScalabilityTCP
0 likes · 16 min read
Why Is the Linux Kernel TCP/IP Stack Hard to Scale Compared to User‑Space Stacks?
Bin's Tech Cabin
Bin's Tech Cabin
Sep 18, 2023 · Fundamentals

Unveiling Linux mmap: From Virtual Memory to Page Tables and Huge Pages

This article provides an in‑depth exploration of the Linux mmap system call, covering its role in virtual memory management, page table structures, various mapping types (anonymous, file‑backed, shared, private), flag options, and advanced concepts such as huge pages and transparent huge pages, with kernel‑level diagrams and code examples.

LinuxPage Tablehugepages
0 likes · 62 min read
Unveiling Linux mmap: From Virtual Memory to Page Tables and Huge Pages
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Sep 1, 2023 · Operations

eBPF Program Injection into the Kernel (Part 1)

The article walks through the complete eBPF injection workflow—opening a skeleton, loading and JIT‑compiling the program with bpf_object__load_skeleton, attaching it to a kernel kprobe via perf_event_open_probe and bpf_link_create, and finally triggering the probe so the JIT‑compiled eBPF code runs inside the kernel.

ProfilingeBPFkernel
0 likes · 20 min read
eBPF Program Injection into the Kernel (Part 1)
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 ExecutionLinuxinterrupt handling
0 likes · 14 min read
Understanding Linux IRQ and SoftIRQ: From Basics to Deferred Handling
Liangxu Linux
Liangxu Linux
Aug 6, 2023 · Operations

Why Does Your Network Lose Packets? 30+ Troubleshooting Steps Revealed

This article explains the concept of network packet loss, walks through the sending and receiving mechanisms of Ethernet frames, and provides a comprehensive, layer‑by‑layer checklist—including hardware NIC, driver, kernel, IP, TCP/UDP, and application‑level diagnostics—plus concrete Linux commands and configuration tweaks to locate and fix the root cause.

Packet LossTCPdiagnostics
0 likes · 36 min read
Why Does Your Network Lose Packets? 30+ Troubleshooting Steps Revealed
21CTO
21CTO
Aug 1, 2023 · Information Security

Why Linus Torvalds Wants to Disable AMD’s fTPM RNG – A Hidden Kernel Issue

Linus Torvalds has publicly criticized AMD’s firmware‑based TPM random number generator for causing system stalls on Linux, urging the community to disable the fTPM hwrng until reliable fixes are delivered, highlighting broader security and firmware concerns.

AMDRandom Number GeneratorTPM
0 likes · 6 min read
Why Linus Torvalds Wants to Disable AMD’s fTPM RNG – A Hidden Kernel Issue
Laravel Tech Community
Laravel Tech Community
Jun 27, 2023 · Fundamentals

Linux Kernel 6.4 Released with New Rust Features, Filesystem Improvements, and Architecture Optimizations

Linux 6.4 has been officially released, featuring the removal of SELinux runtime disabling, enhancements to F2FS and Btrfs filesystems, a batch of new Rust code, integration of Intel LAM after criticism, performance optimizations for LoongArch, early Apple M2 support, Wi‑Fi 7, and AMD autonomous boot, while the merge window for 6.5 is now open.

FilesystemLinuxOperating System
0 likes · 2 min read
Linux Kernel 6.4 Released with New Rust Features, Filesystem Improvements, and Architecture Optimizations
Liangxu Linux
Liangxu Linux
Jun 25, 2023 · Fundamentals

Understanding Linux Process Creation: Kernel and User Space APIs

This article explains Linux process creation and termination, covering kernel functions like kernel_thread, kthread_create, kthread_run, the central _do_fork implementation, and user‑space interfaces such as fork, vfork, and pthread_create, with code snippets and diagrams.

Linuxforkkernel
0 likes · 7 min read
Understanding Linux Process Creation: Kernel and User Space APIs
Bin's Tech Cabin
Bin's Tech Cabin
Jun 20, 2023 · Fundamentals

How Linux’s kmalloc Memory Pool Works: From Slab Design to Allocation

This article explains the architecture and implementation of the Linux kernel kmalloc memory pool, detailing slab cache creation, size selection rules, cache initialization, allocation and free paths, and how different memory zones are handled, with code examples and diagrams.

LinuxSlab Allocatorkernel
0 likes · 31 min read
How Linux’s kmalloc Memory Pool Works: From Slab Design to Allocation
Bin's Tech Cabin
Bin's Tech Cabin
Jun 17, 2023 · Fundamentals

Why Linux Relies on Slab Allocators: Inside the Kernel’s Small Object Pool

This article explains how the Linux kernel supplements its buddy system with the slab allocator to efficiently manage tiny memory blocks, covering slab’s design, memory layout, red‑zone protection, poisoning, per‑CPU caches, NUMA node warehouses, allocation fast‑paths, slow‑paths, and release strategies.

LinuxSLUBSlab Allocator
0 likes · 58 min read
Why Linux Relies on Slab Allocators: Inside the Kernel’s Small Object Pool
Liangxu Linux
Liangxu Linux
Jun 5, 2023 · Fundamentals

How Linux Schedules Processes: Sleep, Wakeup, and Avoiding Invalid Wakeups

This article explains Linux process states, how the scheduler puts a running task to sleep with TASK_INTERRUPTIBLE or TASK_UNINTERRUPTIBLE, how wake_up_process() restores TASK_RUNNING, why invalid wakeups occur due to race conditions, and the kernel techniques used to prevent them.

Linuxkernelprocess-scheduling
0 likes · 11 min read
How Linux Schedules Processes: Sleep, Wakeup, and Avoiding Invalid Wakeups
Efficient Ops
Efficient Ops
Jun 5, 2023 · Fundamentals

Master Linux Memory Management: From Physical Pages to Virtual Addressing

This comprehensive guide explains Linux memory management, covering physical and virtual memory concepts, allocation and release methods, related kernel functions, process switching interactions, performance tuning, leak detection, fragmentation handling, and real‑world application scenarios for servers, embedded systems, and driver development.

C ProgrammingPhysical MemoryVirtual Memory
0 likes · 37 min read
Master Linux Memory Management: From Physical Pages to Virtual Addressing
MaGe Linux Operations
MaGe Linux Operations
May 31, 2023 · Fundamentals

Master Linux Kernel Essentials: Modules, Commands, and System Configuration

This article provides a comprehensive overview of the Linux kernel, explaining its core components, memory and process management, device drivers, system calls, and security, while detailing essential commands such as uname, lsmod, modinfo, modprobe, depmod, insmod, rmmod, sysctl, and guiding readers through kernel compilation and configuration using /proc and /sys.

CompilationLinuxModules
0 likes · 22 min read
Master Linux Kernel Essentials: Modules, Commands, and System Configuration
Open Source Linux
Open Source Linux
May 25, 2023 · Fundamentals

Mastering Linux Process Sleep and Wake‑Up: Avoiding Invalid Wake‑Ups

This article explains Linux process states, how the scheduler puts processes to sleep and wakes them, describes the problem of invalid wake‑ups caused by race conditions, and provides kernel‑level coding patterns to prevent such issues while illustrating with concrete code examples.

Linuxkernelprocess scheduling
0 likes · 11 min read
Mastering Linux Process Sleep and Wake‑Up: Avoiding Invalid Wake‑Ups
MaGe Linux Operations
MaGe Linux Operations
May 23, 2023 · Operations

Linux 6.2 Reaches EOL – Why You Should Upgrade to 6.3 Now

The Linux 6.2 kernel series has been marked end‑of‑life on kernel.org, ending security patches and bug fixes, and users are urged to migrate promptly to the newer 6.3 series which brings several new features and will itself be supported only until mid‑2024.

6.3EOLLinux
0 likes · 4 min read
Linux 6.2 Reaches EOL – Why You Should Upgrade to 6.3 Now
Liangxu Linux
Liangxu Linux
May 17, 2023 · Fundamentals

Understanding Linux Kernel Synchronization: From Semaphores to Thread Pools

This article explains the various Linux kernel synchronization mechanisms—including inter‑process communication, semaphores, mutexes, message queues, shared memory, and thread pools—detailing how they work, when to use them, and their role in ensuring coordinated execution within the kernel.

IPCLinuxSynchronization
0 likes · 10 min read
Understanding Linux Kernel Synchronization: From Semaphores to Thread Pools