Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I've created a swap file of 4.3GB. Made it a swap file with mkswap and then mounted it at boot. Now... if I have done a free -m of my system I got:

             total       used       free     shared    buffers     cached
Mem:           461         98        363          0         13         49
-/+ buffers/cache:         35        426
Swap:          511          0        511

Why the swap size is limited to 512MB? (My RAM size!) How can I increase that? Thank you!

share|improve this question
Post your method of creating the swap file (exact commands). I bet the issue lies there. How you mounted the swap file may also be relevant. – Ярослав Рахматуллин Jul 17 '13 at 23:35

I retried doing the swap file with these parameters (that I thought I used before but..) and it worked.

dd if=/dev/zero of=/wherever/you/want bs=1024 count=4194304

Where 4194304 is 1024*4096(MB).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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