Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I have a system with 4gb of RAM and Intel i5 processor. I want to know how much memory I should allocate to SWAP. Will allocating more memory help increase the system performance.

In the past i have always allocated 4gb for SWAP.

share|improve this question

marked as duplicate by Eric Carvalho, Danatela, Rinzwind, psusi, Sneetsher Jun 4 '14 at 22:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 11 down vote accepted

Swap is what is used when you run out of RAM.

RAM is fast. SWAP is SLOWWWWWW (being as its mechanical (hard disk) as opposed to ram (purely electronic)).

In the old days, you allocated double the amount of RAM you had to swap. These days its not such a hard and fast rule. 2-4gb is the usual.

Related Question:

  1. I have 16GB RAM. Do I need 32GB swap?
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.