swap (noobie question)

This is a discussion about swap (noobie question) in the Linux Customization Tweaking category; 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 , . Last reply 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 in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
May 17
Created
Jan 10
Last Response
0
Likes
1 minute
Read Time
User User User
Users

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