Tag

swap

0 views collected around this technical thread.

Deepin Linux
Deepin Linux
Jun 10, 2025 · Fundamentals

How Linux Memory Reclamation Works: Zones, Swap, and Compression Explained

This article explains Linux's memory reclamation mechanisms, covering the role of memory as the system's bloodstream, the three reclamation paths (fast, direct, kswapd), zone watermarks, page cache structures, reverse mapping, and how swap and compression are used to keep the system stable under memory pressure.

LinuxMemory ManagementMemory Reclamation
0 likes · 52 min read
How Linux Memory Reclamation Works: Zones, Swap, and Compression Explained
Raymond Ops
Raymond Ops
May 2, 2025 · Operations

How to Configure Linux Swap Space for Better Performance

This guide explains what swap space is, why it’s essential for Linux systems, and provides step‑by‑step instructions for configuring swap files or partitions, viewing usage, and understanding its benefits for memory extension, performance optimization, and system stability.

LinuxMemory ManagementSystem Administration
0 likes · 5 min read
How to Configure Linux Swap Space for Better Performance
Deepin Linux
Deepin Linux
Apr 11, 2025 · Fundamentals

Understanding ZRAM: Linux Memory Compression and Swap Optimization

This article explains the ZRAM technology in Linux, covering its principles, configuration steps, kernel integration, performance optimizations, and practical use cases for improving memory utilization on embedded devices, Android, and legacy PCs.

LinuxMemory Compressionkernel
0 likes · 24 min read
Understanding ZRAM: Linux Memory Compression and Swap Optimization
Deepin Linux
Deepin Linux
Apr 8, 2025 · Fundamentals

Understanding Linux Virtual Memory: Principles, Mechanisms, Tools, and Optimization Strategies

This article provides a comprehensive overview of Linux virtual memory, explaining its purpose, page‑based architecture, page‑table mappings, fault handling, swap mechanisms, useful monitoring commands, and practical optimization techniques for both kernel parameters and application code.

LinuxMemory ManagementOptimization
0 likes · 31 min read
Understanding Linux Virtual Memory: Principles, Mechanisms, Tools, and Optimization Strategies
Raymond Ops
Raymond Ops
Mar 30, 2025 · Operations

How to Permanently Disable Swap on Modern Linux Systems

This guide explains why the traditional /etc/fstab comment method fails on newer Linux distributions and provides two reliable techniques—masking the swap.target unit with systemd and adding the noauto option to the fstab swap entry—to permanently disable swap across Ubuntu, CentOS, openEuler, and other major systems.

CentOSLinuxfstab
0 likes · 7 min read
How to Permanently Disable Swap on Modern Linux Systems
Practical DevOps Architecture
Practical DevOps Architecture
Mar 20, 2025 · Operations

How to Add a Swap File on Linux and Adjust Swappiness

This guide explains how to create a swap file on a Linux server, enable it, configure it to start at boot, and adjust the swappiness parameter to control virtual memory usage, providing step‑by‑step commands and explanations for each operation.

LinuxSystem AdministrationVirtual Memory
0 likes · 5 min read
How to Add a Swap File on Linux and Adjust Swappiness
Raymond Ops
Raymond Ops
Mar 1, 2025 · Operations

Master Linux Disk Partitioning: From Primary to Swap in Minutes

This guide explains Linux disk partitioning fundamentals, covering primary and logical partitions, MBR structure, fdisk commands, creating and formatting partitions, mounting filesystems, handling large disks, repairing bad drives, and setting up swap space, with step‑by‑step code examples for system administrators.

LinuxSystem Administrationdisk partitioning
0 likes · 14 min read
Master Linux Disk Partitioning: From Primary to Swap in Minutes
Tencent Architect
Tencent Architect
Oct 9, 2024 · Operations

TencentOS Engineers Participate in 2024 Linux Plumbers Conference and Netconf in Vienna

In September 2024, TencentOS sent two kernel engineers to Vienna to attend the Linux Plumbers Conference and the Linux Kernel Developers' Netconf, where they presented cutting‑edge research on network diagnostics, SWAP allocation, and memory management, fostering collaboration with leading open‑source contributors.

ConferenceLinuxMemory Management
0 likes · 6 min read
TencentOS Engineers Participate in 2024 Linux Plumbers Conference and Netconf in Vienna
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Apr 19, 2024 · Fundamentals

Large Folios in the Linux Kernel: Benefits, Implementations, and Future Directions

Large folios in the Linux kernel combine multiple pages to reduce TLB misses, page faults, and reclamation cost while enabling more efficient compression; they are supported by filesystems like XFS and bcachefs, and recent patches add multi‑size THP, swap‑in/out handling, TAO allocation, NUMA balancing, and debug tools, with OPPO’s production deployment showing performance gains and motivating broader adoption and fragmentation mitigation.

Linux kernelMemory ManagementNUMA
0 likes · 17 min read
Large Folios in the Linux Kernel: Benefits, Implementations, and Future Directions
Python Programming Learning Circle
Python Programming Learning Circle
Apr 18, 2024 · Fundamentals

Four Time‑Saving Python Tricks to Boost Execution Speed

This article presents four practical Python techniques—including list reversal, tuple swapping, loop placement, and function‑call reduction—that together can shave roughly 10‑20% off typical script execution times while keeping the code clear and maintainable.

LoopOptimizationcode
0 likes · 7 min read
Four Time‑Saving Python Tricks to Boost Execution Speed
Cloud Native Technology Community
Cloud Native Technology Community
Mar 19, 2024 · Cloud Native

Quick Preview of Exciting Changes in Kubernetes v1.30

Kubernetes v1.30 introduces a range of exciting enhancements—including structured DRA parameters, revamped swap support, beta user‑namespace pods, structured authorization config, container‑resource‑based autoscaling, and CEL‑enabled admission control—each aimed at improving flexibility, security, and operational stability for cloud‑native workloads.

Dynamic Resource AllocationKubernetesauthorization
0 likes · 11 min read
Quick Preview of Exciting Changes in Kubernetes v1.30
Top Architect
Top Architect
Jun 27, 2023 · Databases

Redis Performance Degradation: Root Causes and Optimization Techniques

This article explains how to benchmark Redis latency, identify common reasons for slowdowns such as high‑complexity commands, big keys, concentrated expirations, memory limits, fork overhead, swap usage, and CPU binding, and provides detailed configuration and operational steps to monitor and resolve each issue.

AOFOptimizationRedis
0 likes · 34 min read
Redis Performance Degradation: Root Causes and Optimization Techniques
Laravel Tech Community
Laravel Tech Community
Nov 2, 2021 · Operations

Understanding Virtual Memory: Concepts, Paging, and Management in Linux

This article explains the fundamentals of virtual memory, including paging, page tables, swap, and Linux management commands, highlighting how virtual memory abstracts physical addresses, resolves process memory conflicts, and enhances security and data sharing while providing practical tips for monitoring and tuning memory usage.

LinuxMemory ManagementOperating System
0 likes · 9 min read
Understanding Virtual Memory: Concepts, Paging, and Management in Linux
Efficient Ops
Efficient Ops
Sep 27, 2021 · Fundamentals

How Linux Kernel Manages Memory: Allocation, OOM, and Recovery

This article explains Linux kernel memory management by covering process address space layout, allocation mechanisms, OOM killer behavior, overcommit settings, various types of file and anonymous mappings, tmpfs usage, and both manual and automatic memory reclamation techniques.

LinuxMMAPMemory Management
0 likes · 20 min read
How Linux Kernel Manages Memory: Allocation, OOM, and Recovery
Aikesheng Open Source Community
Aikesheng Open Source Community
Mar 29, 2021 · Databases

Understanding Low Redis Memory Fragmentation Ratio and Its Real Causes

This article explains why a low Redis memory fragmentation ratio is not necessarily caused by swap usage, demonstrates experiments with disabled swap and varying repl‑backlog‑size, and concludes that large replication buffers and small data sets can naturally produce ratios far below 1, which is normal.

BacklogRedisReplication
0 likes · 7 min read
Understanding Low Redis Memory Fragmentation Ratio and Its Real Causes
php中文网 Courses
php中文网 Courses
Feb 18, 2021 · Operations

How to Create and Manage Swap Partitions on Linux

This article explains the purpose of swap partitions, shows how to check current swap usage, and provides step‑by‑step instructions for creating swap space both via a dedicated disk partition and by using a swap file on a Linux server.

LinuxPartitionSystem Administration
0 likes · 3 min read
How to Create and Manage Swap Partitions on Linux
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Nov 27, 2020 · Operations

Understanding Linux Swap: Partitions, Data Structures, Swap Out/In Processes, and Optimizations

Linux swap moves anonymous pages to a dedicated swap area—either a partition or a file—using structures such as swap_info_struct, swap_map and swp_entry_t, with a two‑pass swap‑out, per‑CPU slot cache, and SSD‑focused optimizations like clustering and readahead to improve performance.

LinuxMemory ManagementOperating System
0 likes · 8 min read
Understanding Linux Swap: Partitions, Data Structures, Swap Out/In Processes, and Optimizations
Laravel Tech Community
Laravel Tech Community
Oct 20, 2020 · Databases

Analyzing and Troubleshooting Redis Latency Issues

This article explains common causes of Redis latency spikes, such as high‑complexity commands, large keys, concentrated expirations, memory limits, fork overhead, CPU binding, AOF settings, swap usage, and network saturation, and provides step‑by‑step troubleshooting commands and best‑practice recommendations.

AOFLarge KeysMemory Management
0 likes · 18 min read
Analyzing and Troubleshooting Redis Latency Issues
Selected Java Interview Questions
Selected Java Interview Questions
Apr 29, 2020 · Fundamentals

Understanding Java Parameter Passing, Autoboxing, and Swapping Integer Values

This article explains why swapping Integer objects using a simple assignment fails in Java, covering formal vs. actual parameters, value versus reference passing, autoboxing mechanics, the Integer cache, and a reflective workaround that avoids the cache to correctly exchange values.

InterviewJavaautoboxing
0 likes · 9 min read
Understanding Java Parameter Passing, Autoboxing, and Swapping Integer Values