Should You Use Twice the Amount of Ram as Swap Space? | Linux Today

Should You Use Twice the Amount of Ram as Swap Space?

Written By
Web Webster
Web Webster
Nov 19, 2008

[ Thanks to An Anonymous Reader for
this link. ]

“Old dumb memory managers

“I think the ‘2x swap space’ rule came from Old Solaris and
Windows admins. Also, earlier memory mangers were very badly
designed. There were not very smart. Today, we have very smart and
intelligent memory manager for both Linux and UNIX.

“Nonsense rule: Twice the size of your main system RAM for
Servers

According to OpenBSD FAQ:

“Many people follow an old rule of thumb that your swap
partition should be twice the size of your main system RAM. This
rule is nonsense. On a modern system, that’s a LOT of swap, most
people prefer that their systems never swap. You don’t want your
system to ever run out of RAM+swap, but you usually would rather
have enough RAM in the system so it doesn’t need to swap.”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.