LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-16-2003, 10:32 AM   #1
MichaelW
LQ Newbie
 
Registered: Feb 2003
Posts: 1

Rep: Reputation: 0
Smile Linux swap disk


Hi i'm very new linux and thinking about installing redhat as a third operating system on my computer!
as i've done some research on it i've read about a 'swap disk' that linux uses and my question is whether i need to create this swap partition myself usind 'fdisk' or some software like partition magic?
 
Old 02-16-2003, 10:41 AM   #2
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
Welcome to LQ.org, MichaelW!

I wouldn't use partition magic. At best those tools are graphical front ends for the tools like fdisk. At worst they're something completely different.

When you install linux, it will ask you to create a swap partition. This should usually be around twice the size of your system's RAM. (I have 128MB on my laptop so I created a 256MB swap partition).

Please look around the forum for issues on NTFS and linux filesystems. Mostly NTFS can only be accessed read only (although many people claim to be able to use the experimental read-write driver w/o problems). FAT32 is much more desirable to enable reliable access from linux partitions.

If you're new to linux, try Redhat of Mandrake. Don't go for Slackware or NSA Security Enhanced Linux yet.

Have fun. And before you jiggle partitions make backups of essential stuff.

Bert
 
Old 02-16-2003, 11:24 AM   #3
Silent Bob
Member
 
Registered: Feb 2003
Location: Ireland
Distribution: Debian
Posts: 56

Rep: Reputation: 15
What Bert said, and a bit more...

If you have loads of RAM, then the rule of thumb kinda breaks down. E.g. it's a bit daft to have a 1GB swap space if you have 1/2 a GB of RAM.

I have gotten on fine with a 256MB swap partition in computers with RAM varying from 128MB to 512MB.
 
Old 02-16-2003, 12:18 PM   #4
Riley
Member
 
Registered: Feb 2003
Location: SC, USA
Distribution: Mandrake 10.0 Powerpack
Posts: 178

Rep: Reputation: 30
If you have 512 MB RAM i wouldn't even create a swap partition. I've done this when I only had 256 MB RAM and I did everything in X (except play 3d games) and it ran smooth and wasn't slow at all.
 
Old 02-16-2003, 04:07 PM   #5
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
I've recently had a bit of a flame session with someone over at Linux Professional Institute about this - it came up in an exam question, and none of the given answers were correct. There is a curve for the relationship between RAM and swap space.

To understand, you need to look at what swap space is used for and how well it's used by your kernel version. I used to have 1:1 for RAM:swap for Redhat 6.2 and most of the time it did nothing.

By the time 7.1 came around, the swap was being used properly. When your system swaps 'pages' in and out of memory, it obviously needs some dedicated space to do this. When it doesn't have enough, it starts 'thrashing' - swapping pages in and out without doing any work. If you have too much, it just doesn't get used.

Still it's always best to have too much. Hell if you're running a 120GB disk, you won't miss 1GB, even if not all of it's used.

And since 2.2.x I believe linux uses the swap space quite aggresively - as it should. I'd say for a 512MB RAM machine, 700MB swap is good.

Bert
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux swap / solaris not appearing as swap in Ubuntu? Erik_the_Red Linux - Newbie 1 07-30-2005 12:57 PM
How does one test the disk surface of the swap partition? gregmcavoy Linux - Hardware 22 01-17-2005 01:59 AM
Which disk to use for swap? david.skinner Linux - General 1 06-07-2004 02:31 AM
swap disk size Triple-B Slackware 2 02-10-2003 03:04 PM
How do I swap a hard disk w/o reinstalling? jkcunningham Linux - Hardware 4 06-09-2002 09:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration