Find the answer to your Linux question:
Results 1 to 8 of 8
Hello all! I'm still pretty new to linux and was wondering... I'm getting a new 'puter soon, and I'm trying to figure out how much swap space I should create. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2004
    Posts
    61

    Swap Size?


    Hello all! I'm still pretty new to linux and was wondering... I'm getting a new 'puter soon, and I'm trying to figure out how much swap space I should create. I have heard it should never be more than 500 Megs, but I'm not sure if that's true. My new system will probably have 1 Gig of ram, and a 120 Gig HD. Suggestions? Thanks in advance!

  2. #2
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    500 megs would be fine.

    Basically it would mean you could have 1.5Gb of data in RAM at any one time, which is quite a lot. If you ever find yourself using 500Mb of swapspace its proberly time to buy some more ram anyway

    Jason

  3. #3
    Linux Engineer
    Join Date
    May 2003
    Location
    Greece / Athens
    Posts
    1,169
    generally i have heard that swap should be 1,5-2 *RAM .i don't know if it wrong or not....i have 1 gb ram and swap was never used for me (swap=800 mb).
    Linux For Ever!

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined! eBopBob's Avatar
    Join Date
    Jul 2004
    Location
    France, Europe.
    Posts
    89
    I too have been told that the amount for SWAP should be two times that of your ram. For example if you have 256mb ram, then SWAP should be 512mb, or some people just make it 500mb for ease.

  6. #5
    Linux Engineer
    Join Date
    May 2003
    Location
    Greece / Athens
    Posts
    1,169
    as i mentioned in another post swap is useful when you run many jobs(processes at the same time).so if you are watching a dvd movie and the same time you compile a kernel or installing a program swap will increase performance.although if you do a job at a time swap will not be useful.i suggest to have 500mb of swap as jason said as hard disks we have are above 40gb i think so it's not a problemof wasting space..
    Linux For Ever!

  7. #6
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    Location
    England
    Posts
    1,219
    I agree with 500Mb swap space I use this in all my Linux boxes. I have never seen one use more then about 50Mb swap and they have 256, 512 and 1024Mb RAM.

  8. #7
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Location
    Lat: 39:03:51N Lon: 77:14:37W
    Posts
    2,396
    the rule used to be 2* ram = swap, but nowadays with people getting into the multi gig ranges fro swap, its not practical, and can actualy slow you down, after 512 ram, just give yourself 500 of swap. Its handy for buffering, but unless you have like fibrechannel drives, the write speed will impare operations too much.
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

  9. #8
    Just Joined!
    Join Date
    Jun 2004
    Posts
    61
    Thanks for all the responses everyone! 500 it is!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •