swap (noobie question)

I'm thinking of increasing my swap partition, which is easy enough. but I've recently read up on how to also make a swap file. I was wondering; what are the pros and cons of using a swap file vs a swap partition?.

Linux Customization Tweaking 106 This topic was started by ,


data/avatar/default/avatar13.webp

1 Posts
Location -
Joined 2005-05-17
I'm thinking of increasing my swap partition, which is easy enough. but I've recently read up on how to also make a swap file. I was wondering; what are the pros and cons of using a swap file vs a swap partition?

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


data/avatar/default/avatar20.webp

2 Posts
Location -
Joined 2004-08-15
Without knowing your system setup I have found that the best configuration if possible is creating swap partitions on each individual hard drive. The old discussion rages as to the size of it, but I normally reserve 1GB on each drive. I have 700 odd meg of RAM in my machine.
The pro for a swap partition is that it is dedicated purely to that function and therefore the read speed is no slowed by having to process other irrelevant data.

data/avatar/default/avatar10.webp

2895 Posts
Location -
Joined 2002-08-30
For the best description of swap space and the reason for it, an oldie but goodie is on the RedHat Linux page here.
 
The next page tells you how to create either via the command line.
 
The question is, do you really need more swap space?
 
Of course, if you have a large hard drive and space to use...