Tagged articles
tmpfs
29 articles · Page 1 of 1
This article explains why applications report 'No space left on device' despite 40% free disk space, covering inode exhaustion, mount point mismatches, reserved blocks, quotas, deleted open files, tmpfs/container storage limits, and filesystem metadata issues with diagnostic commands and monitoring strategies.
ENOSPCLinux Operationscontainer storage
0 likes · 41 min read

This guide explains why applications receive ENOSPC errors even when df shows available space, covering seven scenarios — inode exhaustion, mount point confusion, reserved blocks, quota limits, deleted but open files, tmpfs/container storage limits, and filesystem metadata issues — with diagnostic commands for each root cause.
ENOSPCcapacity planningcontainer storage
0 likes · 42 min read

This article explains the inner workings of Linux’s ramfs and tmpfs memory file systems, covering kernel page‑cache and shmem mechanisms, allocation and reclamation processes, size and inode limits, swap interaction, practical mounting commands, and suitable use‑cases compared with traditional disk‑based file systems.
IO performanceLinux kernelmemory file system
0 likes · 32 min read

Linux’s shmem subsystem provides hybrid anonymous/file‑backed pages that enable diverse shared‑memory scenarios—parent‑child communication, IPC, tmpfs, Android ashmem, and memfd—by using APIs such as shmem_file_setup, handling page faults through cache and swap mechanisms, and employing a specialized reclamation process to manage memory efficiently.
Linux kernelPage Cachememfd
0 likes · 10 min read

The article investigates why a MySQL‑slave machine shows low free memory despite modest MySQL and Redis usage, revealing that massive hidden files under /run/systemd/users and tmpfs‑based shared memory consume several gigabytes, and proposes practical remediation steps.
MemoryMySQLRedis
0 likes · 11 min read


21CTODec 20, 2022 · Fundamentals
This article explains how Linux’s free command reports memory usage, clarifies the roles of buffer and page caches, demonstrates which caches can be reclaimed, and shows why tmpfs, shared memory, and MAP_SHARED mmap allocations remain in cache until explicitly released.
CacheLinuxPage Cache
0 likes · 19 min read

This article explains how Linux’s free command reports memory usage, clarifies the roles of buffer and page caches, and demonstrates through practical experiments why certain caches—such as those used by tmpfs, shared memory, and MAP_SHARED mmap regions—cannot always be reclaimed as free memory.
CacheLinuxShared Memory
0 likes · 18 min read

This article provides a comprehensive walkthrough of Linux kernel memory management, covering process address space layout, memory allocation mechanisms, OOM selection criteria, where allocated memory resides, and both manual and automatic memory reclamation techniques, complete with code examples and diagrams.
CacheLinuxOOM
0 likes · 20 min read

This guide shows how to use Linux's tmpfs file system together with simple commands like mount, dd, and taskset to allocate large amounts of RAM, simulate OOM conditions, and even target specific NUMA nodes without writing custom code.
MountOOM simulationdd
0 likes · 6 min read

This article explains how Linux allocates memory for a process, the role of OOM when memory runs out, where different types of memory reside, the behavior of shared and private mappings, tmpfs usage, and both manual and automatic memory reclamation mechanisms.
LinuxOOMkernel
0 likes · 20 min read

This guide walks through Docker's three data‑persistence methods—Volumes, bind mounts, and tmpfs mounts—showing how to create, mount, verify, and clean up each option while highlighting their impact on container lifecycle and data durability.
bind mountdata persistencetmpfs
0 likes · 7 min read

This article outlines five typical cloud‑host file‑loss scenarios—including tmpfs data loss after reboot, accidental rm commands, and disk damage from fio or dd—explains their causes, and provides practical prevention and recovery recommendations for operations engineers.
Operationsclouddd
0 likes · 10 min read

This guide shows how to accelerate a PHP website on Ubuntu by mounting a tmpfs RAM disk, using Anything‑Sync‑Daemon to keep the nginx root synchronized, and configuring systemd timers so that changes are safely written back to persistent storage.
PHPperformancetmpfs
0 likes · 6 min read

This article explains why storing data in a container layer is problematic and details Docker's three persistent storage options—volumes, bind mounts, and tmpfs—along with their usage commands, scenarios, and advanced features such as bind propagation, SELinux labels, and volume drivers.
Volume Driversbind mountcontainer storage
0 likes · 13 min read

This article explains why storing data in a container’s layer is problematic and details Docker’s three persistent storage options—volumes, bind mounts, and tmpfs—along with their commands, configurations, use‑cases, and advanced features such as volume drivers and bind propagation.
Container OpsVolume Driversbind mount
0 likes · 13 min read

This article explores Linux kernel memory management in depth, covering process address space layout, allocation mechanisms, OOM killer behavior, the whereabouts of allocated memory, and both manual and automatic memory reclamation techniques.
CacheLinuxOOM
0 likes · 20 min read

This article explains Linux kernel memory management from a global perspective, covering process address space layout, memory allocation mechanisms, OOM handling, the location of allocated memory, cache behavior, tmpfs usage, and the kernel's automatic memory reclamation strategies.
CacheLinuxOOM
0 likes · 19 min read


ITPUBMay 14, 2018 · Fundamentals
This article explains Linux kernel memory management, covering process address space allocation, OOM selection criteria, memory mapping types, cache behavior, tmpfs, and both manual and automatic memory reclamation mechanisms.
LinuxOOMPage Cache
0 likes · 18 min read

This article explains Linux kernel memory management, covering process address space layout, memory allocation, OOM handling, where allocated memory resides, and both manual and automatic memory reclamation techniques, with practical examples and visual illustrations.
CacheLinuxOOM
0 likes · 19 min read

This article explains the complete web request lifecycle, breaks down each latency component, and details how various cache layers—from browser DNS caches to server‑side memory and disk caches—can be leveraged and tuned to dramatically speed up page loads.
CachingDNSHTTP
0 likes · 22 min read

This article explains Linux kernel memory management, covering process address space layout, memory allocation methods, OOM killer behavior, where different types of memory reside, and both manual and automatic memory reclamation techniques, illustrated with diagrams and command examples.
CacheOOMmemory management
0 likes · 18 min read


ITPUBAug 24, 2016 · Operations
This guide explains how to accelerate software builds on Linux by using make -j for parallel compilation, mounting a tmpfs for faster I/O, leveraging ccache to reuse previous compile results, and employing distcc to distribute compilation across multiple machines.
Build Optimizationccachedistcc
0 likes · 6 min read

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

By installing ccache and distcc on five machines, mounting source and cache on tmpfs, and fine‑tuning makefile dependencies and environment variables, the QQ Music backend build time was slashed from 30‑40 minutes to about 30 seconds, achieving the one‑minute target.
Compilation SpeedMakefileccache
0 likes · 9 min read

This article explains how the Linux free command reports memory usage, clarifies the roles of buffer cache and page cache, demonstrates which cache memory can be reclaimed, and shows practical tests using tmpfs, shared memory, and mmap with code examples.
Buffer CacheLinuxPage Cache
0 likes · 17 min read

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.
LinuxShared Memoryfree command
0 likes · 15 min read

The article describes how Qunar's group‑buying backend faced IO bottlenecks during large‑scale image conversion and solved the issue by moving intermediate files to a memory‑based tmpfs filesystem (/dev/shm), achieving a dramatic load reduction without code changes or server restarts.
IO optimizationLinuximage processing
0 likes · 5 min read

This guide explains how to use Linux's memory‑based tmpfs and the /dev/shm mount point to avoid slow disk I/O, showing how to resize, bind, and apply tmpfs for caching, PHP sessions, and service sockets to dramatically improve server performance.
CachingLinuxdev/shm
0 likes · 5 min read

This article explains how Linux's built‑in tmpfs (mounted at /dev/shm) can be leveraged for high‑speed caching and PHP session storage, detailing its advantages, setup steps, and practical examples with Squid and PHP to improve system performance.
LinuxPHPSquid
0 likes · 3 min read
