Tag

shared memory

0 views collected around this technical thread.

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 ProgrammingMMAPSecurity
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.

Master ProcessNginxReverse Proxy
0 likes · 9 min read
Understanding Nginx: HTTP Server, Reverse Proxy, and Scalable Architecture
Deepin Linux
Deepin Linux
Jan 31, 2025 · Fundamentals

Understanding Shared Memory in Linux: Concepts, APIs, and Practical Examples

This article explains the fundamentals of shared memory as an efficient inter‑process communication method on Linux, covering its principles, core system calls, usage steps, advantages, synchronization challenges, and real‑world case studies with complete C code examples.

C++IPCLinux
0 likes · 19 min read
Understanding Shared Memory in Linux: Concepts, APIs, and Practical Examples
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.

DMAMMAPZero Copy
0 likes · 33 min read
Efficient Memory Sharing with mmap and Zero‑Copy Techniques
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 kernelNetwork Programmingasynchronous i/o
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
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.

IPCLinuxMMAP
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.

Data FlowObservabilityTracing
0 likes · 26 min read
Understanding Perfetto Data Flow Architecture and Reducing Trace Data Loss
Deepin Linux
Deepin Linux
Nov 27, 2023 · Fundamentals

Understanding Linux Memory Mapping (mmap): Concepts, APIs, and Source‑Code Analysis

This article explains the fundamentals of memory‑mapped files in Linux, covering the mmap/munmap interfaces, mapping types, protection flags, error handling, virtual‑memory structures, kernel implementation details, driver examples, and practical use‑cases such as shared memory and high‑performance I/O.

KernelLinuxMMAP
0 likes · 34 min read
Understanding Linux Memory Mapping (mmap): Concepts, APIs, and Source‑Code Analysis
Deepin Linux
Deepin Linux
Jul 22, 2023 · Fundamentals

DPDK Memory Management: Architecture, Hugepage Initialization, and Allocation Mechanisms

This article explains DPDK's memory management architecture, covering the hierarchical memory layout, hugepage discovery and mapping, shared configuration structures, NUMA‑aware allocation, custom malloc‑heap implementation, memzone and mempool creation, and the mbuf buffer model, with detailed code examples.

DPDKMemory ManagementNUMA
0 likes · 41 min read
DPDK Memory Management: Architecture, Hugepage Initialization, and Allocation Mechanisms
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.

BackendIPCLinux
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 comparisonData TestingPython multiprocessing
0 likes · 8 min read
Testing Plan and Efficiency Strategies for a Data Download Refactoring Project
Python Programming Learning Circle
Python Programming Learning Circle
Oct 11, 2021 · Artificial Intelligence

How PyTorch DataLoader Transfers Data Between Processes Using Multiprocessing Queues

This article explains the internal mechanism of PyTorch's DataLoader when using multiple worker processes, detailing how tensors are serialized, shared via multiprocessing.Queue, and reconstructed in the main process to avoid unnecessary memory copies.

DataLoaderMultiprocessingPyTorch
0 likes · 7 min read
How PyTorch DataLoader Transfers Data Between Processes Using Multiprocessing Queues
vivo Internet Technology
vivo Internet Technology
Sep 16, 2020 · Fundamentals

Shared Memory Principles and a Practical VCS Data Collection Implementation

The article explains Linux shared‑memory fundamentals, why it outperforms file‑based IPC, demonstrates the mmap() system call, and walks through a complete Go implementation that creates, synchronizes, reads, and protobuf‑serializes advertising‑tracking metrics in the VCS monitoring platform.

GoIPCMMAP
0 likes · 19 min read
Shared Memory Principles and a Practical VCS Data Collection Implementation
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.

IPCLinuxMessage Queues
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.

PHPSwoolebackend development
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.

LinuxMMAPMemory Management
0 likes · 9 min read
Understanding mmap: Concepts, Usage, and Typical Applications in Linux
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.

Backend InfrastructureLevinoffline compilation
0 likes · 6 min read
Levin: Didi's Open‑Source Solution for Fast Loading of Large Static Data
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.

Memory ManagementNginxSlab Allocator
0 likes · 15 min read
Nginx Shared Memory Allocation and Slab Management Mechanism