Closed Thread
Results 1 to 9 of 9

Thread: Add more swap space?

  1. #1
    Tor
    Tor is offline Programming Expert
    Join Date
    Oct 2007
    Posts
    488
    Rep Power
    0

    Add more swap space?

    Is it possible to add more swap space to my Linux installation? I think this will help Linux run better because I only have 512mb with 2gb of actual ram. I've been reading that I should have at least 4gb, is this true?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    v0id is offline Retired
    Join Date
    Apr 2007
    Posts
    2,937
    Blog Entries
    3
    Rep Power
    42
    As far as I know, 200 mb is enough swap space. Personally, I use 200 mb, and I've never had any problems, not even when I've played 3D-heavy games.

    If you want to change/modify your swap space anyway, then this looks like a nice guide.

  4. #3
    Jordan Guest
    I've always heard and doubled my swap space compared to my physical RAM. So if I have 2 gigs I use 4 gigs of space. I've never used more than 4 gigs of swap though. If you run Oracle or similar then you will about 20gb of swap.

    v0id's link should show you how to add more swap.

  5. #4
    Tor
    Tor is offline Programming Expert
    Join Date
    Oct 2007
    Posts
    488
    Rep Power
    0
    So I have 1 gig of ram. Should I use 2 gigs of swap or go ahead an up to 4 gigs?

  6. #5
    v0id is offline Retired
    Join Date
    Apr 2007
    Posts
    2,937
    Blog Entries
    3
    Rep Power
    42
    Wow. I've never been aware of this. My 200mb of swap-space is working fine.

  7. #6
    Oigen is offline Programmer
    Join Date
    Jul 2008
    Posts
    107
    Rep Power
    0
    What's the difference between swap partition and swap file?

  8. #7
    rumen is offline Programmer
    Join Date
    Jun 2008
    Posts
    110
    Rep Power
    0
    I think the swap file is an artificially created swap space to fill up when you run out of your actual swap partition. You have to rename a regular file, adjust its size and use it as a backup to your existing swap space.

  9. #8
    Tor
    Tor is offline Programming Expert
    Join Date
    Oct 2007
    Posts
    488
    Rep Power
    0
    A swap file is simply a file on your local partition. A swap partition is an entire new partition used as swap space. The reason a partition is better is because a swap file can become fragmented but you can't defrag a system file (swap file) so it slows down your computer.

  10. #9
    Oigen is offline Programmer
    Join Date
    Jul 2008
    Posts
    107
    Rep Power
    0
    Ok, I got it now. Thanks for the info, guys.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Swap!!! Urgent! Thank you thank you
    By fishnewbie in forum C and C++
    Replies: 2
    Last Post: 08-04-2011, 12:00 PM
  2. Swap method
    By Roman Y in forum Java Help
    Replies: 6
    Last Post: 08-20-2010, 09:59 AM
  3. Swap Partition? Why?
    By TcM in forum Linux Hardware
    Replies: 8
    Last Post: 06-18-2008, 06:53 AM
  4. Swap never used?
    By Off in forum Linux/Unix General
    Replies: 3
    Last Post: 06-16-2008, 03:54 AM
  5. Label a Linux Swap Partition
    By erik in forum Linux Hardware
    Replies: 1
    Last Post: 10-11-2007, 03:25 PM

Tags for this Thread

Bookmarks

Posting Permissions

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