Closed Thread
Results 1 to 9 of 9

Thread: Swap Partition? Why?

  1. #1
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    Swap Partition? Why?

    Why do we need swap space? What is it used for?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Tor
    Tor is offline Programming Expert
    Join Date
    Oct 2007
    Posts
    488
    Rep Power
    0
    It is used as memory, the same as RAM. Only it is slower so the OS moves memory storage to it that isn't used frequently or fast.

  4. #3
    Wanch Guest
    It is to add more memory to your machine. Even Windows has it although it is a swap file and much slower. Using a swap file you can't defrag your entire partition.

  5. #4
    EGS
    EGS is offline Programmer
    Join Date
    Feb 2008
    Posts
    116
    Rep Power
    0
    Isn't it also used for dual-booting operating systems? I think I've heard of this term when a friend of mine used Windows Vista and dual-booted Ubuntu Linux on his machine.

  6. #5
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    Well it is not used for dual booting, even if you install Ubuntu alone on a machine as far as I know it will still need a SWAP partition.

  7. #6
    LinuxBomber is offline Learning Programmer
    Join Date
    Jan 2008
    Posts
    79
    Rep Power
    0
    So the bigger the SWAP partition the better the performance?

    And why is a swap file slower than a swap partition?

  8. #7
    Beryl is offline Newbie
    Join Date
    Jan 2008
    Posts
    29
    Rep Power
    0
    Do all Linux distros need this?

  9. #8
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    I think that depends from the kernel, but I think that a swap partition or a swap file is always required, but it seems like linux uses swap partition not files.

  10. #9
    Oigen is offline Programmer
    Join Date
    Jul 2008
    Posts
    107
    Rep Power
    0
    What's the difference, in terms of performance, between a swap partition and a swap file? Why would a partition be faster than a file?

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. Creating Linux-Swap Partition
    By TcM in forum Linux/Unix General
    Replies: 5
    Last Post: 09-14-2008, 02:52 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