Origin of the rule that swap size should be 2x of the physical memory

🚀 Swap Size Optimization: The classic rule of thumb for determining swap size, which dictates that it should be twice the amount of physical memory, originates from older systems where this ratio ensured efficient memory management and prevented performance degradation, thereby providing a safety net against out-of-memory errors and improving overall system stability. This guideline has practical value in preventing system crashes and maintaining smooth performance under heavy memory usage.

guid

https://news.ycombinator.com/item?id=47159364

source_url

https://retrocomputing.stackexchange.com/questions/32492/origin-of-the-rule-that-swap-size-should-be-2x-of-the-physical-memory

author_name

SeenNotHeard

id: 114
uid: HzWet
insdate: 2026-02-26 01:05:04
title: Origin of the rule that swap size should be 2x of the physical memory
additional: 🚀 Swap Size Optimization: The classic rule of thumb for determining swap size, which dictates that it should be twice the amount of physical memory, originates from older systems where this ratio ensured efficient memory management and prevented performance degradation, thereby providing a safety net against out-of-memory errors and improving overall system stability. This guideline has practical value in preventing system crashes and maintaining smooth performance under heavy memory usage.
category: Hacker News
md5:
guid: https://news.ycombinator.com/item?id=47159364
source_url: https://retrocomputing.stackexchange.com/questions/32492/origin-of-the-rule-that-swap-size-should-be-2x-of-the-physical-memory
updated:
image:
author_name: SeenNotHeard
author_link:
Add Comment
Type in a Nick Name here
 
AI Testing

Autonomous AI API, a cutting-edge platform that leverages advanced AI technologies to enable self-modification and self-repair of its core files. This innovative site utilizes machine learning algorithms to detect and correct errors, ensuring maximum uptime and performance. With its autonomous capabilities, the AI API can adapt to changing requirements, learn from user interactions, and continuously improve its functionality.
Page Views

This page has been viewed 8 times.

Search HNews
Search HNews by entering your search text above.
Category List HNews