• Skip to secondary menu
  • Skip to main content
  • Skip to primary sidebar
  • Home
  • Projects
  • Products
  • Themes
  • Tools
  • Request for Quote

Vengala Vinay

Having 12+ Years of Experience in Software Development

  • Home
  • WordPress
  • PHP
    • Codeigniter
  • Django
  • Magento
  • Selenium
  • Server
Home » Tuning swapspace, VM swappiness, and Out-Of-Memory (OOM) killer priority thresholds on Debian 12 Bookworm

Tuning swapspace, VM swappiness, and Out-Of-Memory (OOM) killer priority thresholds on Debian 12 Bookworm

Understanding Swap Space and its Role

Swap space is a crucial component of memory management on Linux systems. When physical RAM (Random Access Memory) becomes exhausted, the kernel can move less frequently used memory pages from RAM to a dedicated disk partition or file, known as swap space. This process, called swapping or paging out, frees up physical RAM for active processes. While it prevents immediate Out-Of-Memory (OOM) errors, excessive swapping can lead to significant performance degradation due to the much slower access times of disk-based storage compared to RAM.

Assessing Current Swap Configuration on Debian 12

Before tuning, it’s essential to understand the current swap setup. The swapon command provides a clear overview of active swap devices and their priorities. The free command, with the -h flag for human-readable output, shows total, used, and free memory, including swap.

To check active swap devices and their priorities:

swapon -s

The output will look something like this, indicating the file or partition used for swap and its priority. Higher priority numbers mean the kernel will prefer to use that swap space first.

Filename                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                &

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

A little about the Author

Having 12+ Years of Experience in Software Development, Vinay is a principal software architect, senior systems engineer, and elite technical consultant. He specializes in bespoke PHP/WordPress development, high-performance Magento 2 & Shopify architectures, custom plugin/theme development from scratch, and legacy code modernization (including VB6, VB.NET, PyQt, and Crystal Reports). Known for solving complex database bottlenecks, speed optimization (Core Web Vitals), and advanced security code auditing, Vinay engineers production-ready systems designed to scale under heavy concurrent load conditions.



Chat on WhatsApp

Recent Posts

  • Leveraging PHP 8.3’s JIT and Concurrency Features for Next-Gen Laravel Microservices on AWS ECS
  • Optimizing Laravel Vapor Deployments: Advanced Caching Strategies and Cold Start Mitigation for Serverless PHP
  • Leveraging PHP 8.3 JIT and Vectorization for Extreme Performance Gains in High-Throughput Laravel Applications
  • Leveraging PHP 8.3 JIT and Concurrent PHP with Swoole/RoadRunner for Extreme Laravel Performance
  • Achieving Sub-Millisecond API Response Times with Laravel Octane, Redis, and Advanced Nginx Configuration

Categories

  • apache (1)
  • AWS (1)
  • Business & Monetization (390)
  • Centos (4)
  • Comparisons & Decision Making (55)
  • Debian (2)
  • Debugging & Troubleshooting (664)
  • Desktop Applications (14)
  • DevOps (74)
  • DevOps & Cloud Scaling (962)
  • Django (1)
  • Laravel (78)
  • Migration & Architecture (192)
  • Mobile Applications (24)
  • MySQL (1)
  • Performance & Optimization (873)
  • Performance & Security Optimization (8)
  • PHP (265)
  • PHP Development (49)
  • Plugins & Themes (244)
  • Programming Languages (10)
  • Python (20)
  • Ruby on Rails (1)
  • Security (1)
  • Security & Compliance (650)
  • SEO & Growth (492)
  • Server (118)
  • Softwares (1)
  • Ubuntu (9)
  • Uncategorized (528)
  • VB6 & VB.NET (8)
  • Web Applications & Frontend (19)
  • Web Assembly (Wasm) (2)
  • WordPress (139)
  • WordPress Plugin Development (728)
  • WordPress Theme Development (357)

Recent Posts

  • Leveraging PHP 8.3's JIT and Concurrency Features for Next-Gen Laravel Microservices on AWS ECS
  • Optimizing Laravel Vapor Deployments: Advanced Caching Strategies and Cold Start Mitigation for Serverless PHP
  • Leveraging PHP 8.3 JIT and Vectorization for Extreme Performance Gains in High-Throughput Laravel Applications

Top Categories

  • DevOps & Cloud Scaling (962)
  • Performance & Optimization (873)
  • WordPress Plugin Development (728)
  • Debugging & Troubleshooting (664)
  • Security & Compliance (650)
  • Uncategorized (528)

Our Products

  • ERP & LMS Systems (4)
  • Directories & Marketplaces (4)
  • Healthcare Portals (3)
  • Point of Sale (POS) (2)
  • E-Commerce Engines (2)

Our Services

  • E-Commerce Development (10)
  • WordPress Development (8)
  • Python & Desktop GUI (7)
  • General Consulting (7)
  • Legacy Modernization (5)
  • Mobile App Development (4)

Copyright © 2026 · Vinay Vengala