Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Swap Partition? Why?

hardware

  • Please log in to reply
8 replies to this topic

#1 TcM

TcM

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 7563 posts

Posted 27 February 2008 - 09:29 AM

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

#2 Tor

Tor

    CC Devotee

  • Just Joined
  • PipPipPipPipPipPip
  • 448 posts

Posted 28 February 2008 - 09:38 AM

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.
  • 0

#3 Guest_Wanch_*

Guest_Wanch_*
  • Guest

Posted 29 February 2008 - 05:04 AM

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.
  • 0

#4 EGS

EGS

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 110 posts

Posted 03 March 2008 - 11:06 AM

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. :)
  • 0

#5 TcM

TcM

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 7563 posts

Posted 22 March 2008 - 02:59 AM

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.
  • 0

#6 LinuxBomber

LinuxBomber

    CC Resident

  • Just Joined
  • PipPipPipPip
  • 74 posts

Posted 25 March 2008 - 06:48 AM

So the bigger the SWAP partition the better the performance?

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

#7 Beryl

Beryl

    CC Regular

  • Just Joined
  • PipPipPip
  • 27 posts

Posted 27 March 2008 - 08:59 AM

Do all Linux distros need this?
  • 0

#8 TcM

TcM

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 7563 posts

Posted 28 March 2008 - 12:30 PM

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.
  • 0

#9 Oigen

Oigen

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 105 posts

Posted 18 June 2008 - 05:53 AM

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?
  • 0





Also tagged with one or more of these keywords: hardware

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download