Tagged articles
54 articles
Page 1 of 1
Deepin Linux
Deepin Linux
Feb 20, 2026 · Fundamentals

Unlocking Zero‑Copy: How Linux Shared Memory Boosts IPC Performance

This article explains the fundamentals of Linux memory management, details how shared memory implements zero‑copy inter‑process communication, and provides step‑by‑step code examples of system calls, mmap, sendfile, splice, and synchronization techniques for high‑performance data transfer.

IPCMemory ManagementZero Copy
0 likes · 40 min read
Unlocking Zero‑Copy: How Linux Shared Memory Boosts IPC Performance
Deepin Linux
Deepin Linux
Feb 2, 2026 · Fundamentals

Mastering Linux IPC: Pipes, Message Queues, Shared Memory, Semaphores, Signals & Sockets Explained

This comprehensive guide breaks down Linux inter‑process communication (IPC) by explaining its core concepts, why it’s needed, and detailing six mechanisms—pipes, named pipes, message queues, shared memory, semaphores/PV operations, signals, and sockets—complete with code samples, diagrams, and real‑world usage scenarios.

C programmingIPCLinux
0 likes · 49 min read
Mastering Linux IPC: Pipes, Message Queues, Shared Memory, Semaphores, Signals & Sockets Explained
Deepin Linux
Deepin Linux
Jan 4, 2026 · Fundamentals

Unlocking Linux Shared Memory: Deep Dive into IPC Mechanics and Implementation

This article thoroughly explains Linux shared memory, covering its advantages over other IPC methods, the kernel data structures, virtual‑physical mapping, creation and destruction APIs, copy‑on‑write behavior, and provides complete example code for inter‑process communication.

C programmingIPCMemory Management
0 likes · 46 min read
Unlocking Linux Shared Memory: Deep Dive into IPC Mechanics and Implementation
Deepin Linux
Deepin Linux
Sep 15, 2025 · Fundamentals

Unlock Linux IPC: Deep Dive into Pipes, Signals, Shared Memory and More

This comprehensive guide explores Linux inter‑process communication (IPC), explaining why processes need to communicate, the underlying kernel mechanisms, and detailed coverage of pipes, FIFOs, signals, files, shared memory, message queues, and sockets with practical code examples and real‑world use cases.

IPCLinuxSockets
0 likes · 48 min read
Unlock Linux IPC: Deep Dive into Pipes, Signals, Shared Memory and More
AsiaInfo Technology: New Tech Exploration
AsiaInfo Technology: New Tech Exploration
Jun 16, 2025 · Artificial Intelligence

How LangGraph Implements Shared Memory for Multi‑Agent Systems: Techniques, Tools, and Future Directions

This article examines the theory and practice of shared memory in multi‑agent systems, tracing its evolution from classic blackboard models to modern solutions like Mem0.ai, Open Memory, and A‑MEM, and provides concrete design patterns, integration strategies, and future research directions for LangGraph users.

AI memoryDistributed SystemsLLM
0 likes · 37 min read
How LangGraph Implements Shared Memory for Multi‑Agent Systems: Techniques, Tools, and Future Directions
IT Services Circle
IT Services Circle
Jun 8, 2025 · Information Security

Why mmap Shared Memory Is More Dangerous Than malloc – Risks Explained

mmap shared memory lets multiple processes access the same physical memory, which can break process isolation, expose permission misconfigurations like PROT_EXEC, and cause cross‑process crashes or code‑injection attacks, making it far riskier than heap allocations with malloc that remain confined to a single process.

C programmingSecuritymalloc
0 likes · 5 min read
Why mmap Shared Memory Is More Dangerous Than malloc – Risks Explained
Java Tech Enthusiast
Java Tech Enthusiast
Apr 10, 2025 · Backend Development

Understanding Nginx: HTTP Server, Reverse Proxy, and Scalable Architecture

The article shows how adding HTML tags turns a plain‑text file into a web page, explains the need for an HTTP service to serve it, introduces reverse proxies for load‑balancing and address hiding, and outlines Nginx’s event‑driven architecture with master and worker processes, shared memory, proxy cache, multi‑protocol support, configurable modules, and scaling options, while warning of a single‑instance failure and recommending cluster mode.

HTTP serverMaster ProcessNGINX
0 likes · 9 min read
Understanding Nginx: HTTP Server, Reverse Proxy, and Scalable Architecture
Liangxu Linux
Liangxu Linux
Mar 12, 2025 · Fundamentals

Master Linux Inter‑Process Communication: Pipes, Signals, Shared Memory, and More

This article provides a comprehensive guide to Linux inter‑process communication (IPC), covering pipes, named pipes, signals, file‑based communication, semaphores, various shared‑memory techniques, message queues, sockets, and Unix domain sockets, each explained with concepts, typical use‑cases, diagrams and complete C code examples.

IPCInterprocess CommunicationLinux
0 likes · 32 min read
Master Linux Inter‑Process Communication: Pipes, Signals, Shared Memory, and More
Linux Kernel Journey
Linux Kernel Journey
Feb 17, 2025 · Fundamentals

Master Linux Interprocess Communication and End Process Isolation Issues

This article explains why Linux processes need to communicate, describes the kernel‑mediated IPC framework, compares shared‑memory and message‑passing approaches, and provides detailed code examples for pipes, FIFOs, signals, files, semaphores, sockets, plus real‑world use cases and case studies.

C programmingIPCInterprocess Communication
0 likes · 31 min read
Master Linux Interprocess Communication and End Process Isolation Issues
Deepin Linux
Deepin Linux
Dec 17, 2024 · Fundamentals

Efficient Memory Sharing with mmap and Zero‑Copy Techniques

This article explains how mmap and zero‑copy mechanisms, combined with DMA and shared‑memory APIs, can dramatically reduce CPU involvement, context switches, and data copies during file and network I/O, thereby improving system performance for high‑throughput applications.

DMAPerformance Optimizationmmap
0 likes · 33 min read
Efficient Memory Sharing with mmap and Zero‑Copy Techniques
Full-Stack Cultivation Path
Full-Stack Cultivation Path
Nov 18, 2024 · Backend Development

Run JavaScript Inside Nginx with njs: A Hands‑On Guide

This article introduces njs, the JavaScript engine for Nginx, explains its basic "Hello world" example and walks through advanced features such as filesystem APIs, asynchronous I/O, shared memory, response handling, logging, and the global namespace, all with concrete code snippets.

JavaScriptNGINXasynchronous processing
0 likes · 8 min read
Run JavaScript Inside Nginx with njs: A Hands‑On Guide
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.

IPCKernelLinux
0 likes · 29 min read
Linux Kernel Source Walkthrough: The Five Core Subsystems
Deepin Linux
Deepin Linux
Sep 28, 2024 · Fundamentals

Understanding io_uring: Linux Asynchronous I/O Framework and Its Implementation

This article provides a comprehensive overview of Linux's io_uring, explaining its design goals, shared‑memory mechanism, submission and completion queues, core system calls, performance advantages over traditional I/O models, typical use cases, and includes a complete example of a network server built with io_uring.

Linux kernelio_uringperformance
0 likes · 39 min read
Understanding io_uring: Linux Asynchronous I/O Framework and Its Implementation
Go Programming World
Go Programming World
Aug 12, 2024 · Cloud Native

Setting /dev/shm Size for Kubernetes Pods: A Production Troubleshooting Guide

During a production deployment of large language model training on Kubernetes, a pod failed due to insufficient /dev/shm shared memory; the article details the root cause, explores missing pod spec parameters, and presents a complete solution using an emptyDir volume with medium: Memory and sizeLimit to configure shared memory.

KubernetesPodemptyDir
0 likes · 11 min read
Setting /dev/shm Size for Kubernetes Pods: A Production Troubleshooting Guide
Open Source Tech Hub
Open Source Tech Hub
May 29, 2024 · Backend Development

Building a High‑Performance Shared Cache for PHP Game Servers with Webman, Redis, and APCu

This article explains how to design and implement a fast, shared‑memory cache for a PHP‑based strategy game backend using Webman, Redis, MySQL, and APCu, covering service architecture, Redis usage, atomic operations with APCu locks, channel and list mechanisms, and practical code examples for multi‑process communication.

PHPWebmanredis
0 likes · 14 min read
Building a High‑Performance Shared Cache for PHP Game Servers with Webman, Redis, and APCu
Deepin Linux
Deepin Linux
Mar 7, 2024 · Fundamentals

Understanding Linux mmap: Memory Mapping, Shared Memory, and IPC Mechanisms

This article explains Linux's mmap mechanism, its relationship with shared memory, the advantages and disadvantages of mmap versus traditional shared memory, and provides practical code examples and detailed steps for using mmap in interprocess communication and large‑file handling.

IPCLinuxVirtual Memory
0 likes · 19 min read
Understanding Linux mmap: Memory Mapping, Shared Memory, and IPC Mechanisms
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Feb 23, 2024 · Mobile Development

Understanding Perfetto Data Flow Architecture and Reducing Trace Data Loss

Perfetto’s tracing system links multiple producers to a single consumer via shared‑memory buffers, where careful sizing of pages, chunks, and central buffers, along with tuned protobuf encoding and scheduling priorities, mitigates CPU overhead and prevents data loss, enabling reliable observability on Android devices.

AndroidData FlowObservability
0 likes · 26 min read
Understanding Perfetto Data Flow Architecture and Reducing Trace Data Loss
php Courses
php Courses
Nov 28, 2022 · Backend Development

Using PHP shmop Functions for Shared Memory: Overview and Practical Examples

This article explains PHP's two shared memory interfaces, shm and shmop, details the primary shmop functions, provides code examples for creating, reading, writing, and deleting shared memory segments, demonstrates testing with Linux commands, and includes a practical class‑based usage example.

IPCLinuxPHP
0 likes · 9 min read
Using PHP shmop Functions for Shared Memory: Overview and Practical Examples
360 Quality & Efficiency
360 Quality & Efficiency
Aug 12, 2022 · Big Data

Testing Plan and Efficiency Strategies for a Data Download Refactoring Project

This article outlines the testing plan for a data download refactoring project involving over 400 metrics, describes automated CSV comparison scripts, evaluates single‑process, multithreaded, and multiprocess approaches with shared memory, and provides practical recommendations for improving verification efficiency and performance.

CSV comparisonPerformance OptimizationPython multiprocessing
0 likes · 8 min read
Testing Plan and Efficiency Strategies for a Data Download Refactoring Project
Alibaba Cloud Developer
Alibaba Cloud Developer
May 31, 2022 · Backend Development

How RDMA‑Powered SMC‑R Transforms TCP Performance in Data Centers

This article explains why traditional Linux kernel TCP stacks struggle with high‑performance demands, introduces shared‑memory IPC and RDMA concepts, describes the SMC‑R hybrid protocol that transparently replaces TCP sockets, and outlines practical acceleration methods and community contributions.

Kernel Network StackRDMASMC-R
0 likes · 7 min read
How RDMA‑Powered SMC‑R Transforms TCP Performance in Data Centers
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 24, 2020 · Fundamentals

Common Interprocess Communication Methods in Linux

This article introduces several Linux interprocess communication mechanisms—including pipes, message queues, shared memory, semaphores, signals, and sockets—explaining their principles, advantages, drawbacks, and typical usage scenarios for developers preparing for system‑level programming or interviews.

IPCLinuxSockets
0 likes · 7 min read
Common Interprocess Communication Methods in Linux
Laravel Tech Community
Laravel Tech Community
May 27, 2020 · Backend Development

Using Swoole Table for Shared Memory and High‑Performance Data Sharing in PHP

This article explains how Swoole's multi‑process model isolates memory in PHP, recommends external storage such as Redis or shared memory via Swoole/Table, details capacity calculations, handling of oversized strings, and provides a complete PHP example demonstrating table creation, data storage, and server communication.

Backend DevelopmentPHPSwoole
0 likes · 6 min read
Using Swoole Table for Shared Memory and High‑Performance Data Sharing in PHP
360 Tech Engineering
360 Tech Engineering
Nov 7, 2019 · Fundamentals

Understanding mmap: Concepts, Usage, and Typical Applications in Linux

This article explains the Linux mmap system call, covering virtual address space fundamentals, how mmap interacts with the page cache and inode structures, typical use‑cases such as shared memory and anonymous mappings, code examples, and special considerations like alignment, copy‑on‑write and memory swapping.

Copy-on-WriteLinuxMemory Management
0 likes · 9 min read
Understanding mmap: Concepts, Usage, and Typical Applications in Linux
ITPUB
ITPUB
Oct 20, 2019 · Fundamentals

Explore Python 3.8: Assignment Expressions, Positional‑Only Params & New Features

Python 3.8 introduces several practical enhancements—including the walrus operator (:=) for assignment expressions, positional‑only parameters marked by '/', runtime audit hooks, f‑string debugging with '=', improved asyncio REPL handling, shared memory support, a built‑in @cached_property decorator, and numerous performance and library updates.

3.8assignment expressioncached_property
0 likes · 8 min read
Explore Python 3.8: Assignment Expressions, Positional‑Only Params & New Features
MaGe Linux Operations
MaGe Linux Operations
Oct 15, 2019 · Fundamentals

Discover Python 3.8’s Game‑Changing Features: Walrus Operator, Audit Hooks & Beyond

Python 3.8 introduces a suite of powerful language enhancements—including the assignment expression (Walrus Operator), mandatory positional‑only parameters, runtime audit hooks, cross‑process shared memory, importlib.metadata utilities, cached_property, decorator simplifications for lru_cache, an interactive asyncio REPL, f‑string debugging, AsyncMock for asynchronous testing, and iterable unpacking fixes—each illustrated with concise code examples.

AsyncMockPython 3.8assignment expression
0 likes · 7 min read
Discover Python 3.8’s Game‑Changing Features: Walrus Operator, Audit Hooks & Beyond
Didi Tech
Didi Tech
Aug 24, 2019 · Backend Development

Levin: Didi's Open‑Source Solution for Fast Loading of Large Static Data

Levin, Didi’s open‑source GitHub project, uses shared‑memory containers and offline‑compiled binary layouts to mmap large, low‑frequency static datasets, cutting service cold‑start times from minutes to seconds, lowering memory overhead, simplifying version switches, and improving stability for high‑scale applications.

LevinPerformance Optimizationbackend infrastructure
0 likes · 6 min read
Levin: Didi's Open‑Source Solution for Fast Loading of Large Static Data
ITPUB
ITPUB
Jun 12, 2019 · Fundamentals

Mastering Linux Shared Memory IPC: Theory, API Calls, and a Complete Example

This article explains the principles of Linux shared memory interprocess communication, details the relevant data structures and system limits, walks through the essential API calls for creating, controlling, attaching, and detaching shared memory, and provides a full C program demonstrating parent‑child communication.

C programmingIPCInterprocess Communication
0 likes · 7 min read
Mastering Linux Shared Memory IPC: Theory, API Calls, and a Complete Example
Xueersi Online School Tech Team
Xueersi Online School Tech Team
May 31, 2019 · Backend Development

Nginx Shared Memory Allocation and Slab Management Mechanism

This article explains how Nginx obtains and releases shared memory on Unix and Windows, describes the unified ngx_shm_alloc/ngx_shm_free interfaces, and details the slab allocator’s page‑level and small‑block management, including allocation strategies, bitmap handling, and fragmentation issues.

Backend DevelopmentNGINXSlab Allocator
0 likes · 15 min read
Nginx Shared Memory Allocation and Slab Management Mechanism
Alibaba Cloud Developer
Alibaba Cloud Developer
Feb 1, 2019 · Artificial Intelligence

How an Automatic Pipeline Framework Supercharges AI Inference in Retail Surveillance

This article explains how Alibaba's automatic task‑pipeline system transforms deep‑learning inference for retail video streams by decoupling model execution from scheduling, using Python‑based pipelines, high‑performance shared memory, and robust fault‑tolerance, achieving up to 13% faster processing and double the camera capacity.

AI PipelineDeep LearningPerformance Optimization
0 likes · 22 min read
How an Automatic Pipeline Framework Supercharges AI Inference in Retail Surveillance
Efficient Ops
Efficient Ops
Jul 23, 2018 · Operations

Why lsof Misses Thousands of File Handles: Linux Kernel Secrets Revealed

The article explains the discrepancy between the file‑handle count reported by /proc/sys/fs/file‑nr and the numbers shown by lsof, clarifying the difference between file descriptors and file handles, describing how the kernel allocates struct file objects, and showing how shared memory, mmap, and other operations can inflate handle counts unnoticed by lsof.

Kernelfile-descriptorslsof
0 likes · 9 min read
Why lsof Misses Thousands of File Handles: Linux Kernel Secrets Revealed
MaGe Linux Operations
MaGe Linux Operations
Jul 15, 2018 · Fundamentals

Unlock Fast Interprocess Communication: Master Linux Shared Memory IPC

This article explains Linux shared memory IPC, covering its data structures, system limits, essential API calls for creating, controlling, attaching, and detaching memory segments, conventions between parent and child processes, and provides a complete C example demonstrating interprocess communication.

C programmingIPCLinux
0 likes · 7 min read
Unlock Fast Interprocess Communication: Master Linux Shared Memory IPC
MaGe Linux Operations
MaGe Linux Operations
Apr 16, 2017 · Fundamentals

Unlocking Linux Memory: How mmap Works and When to Use It

This article explains the Linux mmap system call, its usage, flags, error handling, related calls like munmap and msync, two shared‑memory techniques, and the underlying virtual‑address and vm_area_struct mechanisms that enable memory mapping.

System Callmemory mappingmmap
0 likes · 16 min read
Unlocking Linux Memory: How mmap Works and When to Use It
ITPUB
ITPUB
Jun 16, 2016 · Databases

Forcefully Kill Oracle Processes and Release Shared Memory on Linux

This guide explains two powerful Linux commands that instantly terminate all Oracle-related processes and clean up shared memory, providing a quick recovery method for stuck Oracle databases while warning of the risks involved.

Database AdministrationLinuxOracle
0 likes · 5 min read
Forcefully Kill Oracle Processes and Release Shared Memory on Linux
MaGe Linux Operations
MaGe Linux Operations
Jun 4, 2016 · Fundamentals

Why Linux’s Buffer/Cache Isn’t Always Free Memory – A Deep Dive

This article explains how the Linux free command reports memory usage, clarifies the roles of buffer and page cache, shows how to manually drop caches, and reveals scenarios—such as tmpfs, shared memory, and mmap—where cached memory cannot be reclaimed, helping readers achieve a deeper understanding of system memory behavior.

Buffer CacheCachepage cache
0 likes · 14 min read
Why Linux’s Buffer/Cache Isn’t Always Free Memory – A Deep Dive
Efficient Ops
Efficient Ops
May 3, 2016 · Operations

Do You Really Understand Linux’s free Command and Cache Behavior?

This article demystifies the Linux free command, explains the distinction between buffer and page caches, shows how various caches are reclaimed—or not—through practical tests with tmpfs, shared memory, and mmap, and provides actionable tips for accurately interpreting memory usage on RHEL 6 systems.

LinuxMemory Managementfree command
0 likes · 15 min read
Do You Really Understand Linux’s free Command and Cache Behavior?