Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-16-2002, 06:00 PM   #1
LQ Newbie
Registered: Mar 2002
Location: Troy, NY
Distribution: Red Hat 7.2
Posts: 9

Rep: Reputation: 0
swap partitions

I have two hard drives in my computer - one is 4 GB, the other is 2 GB. When I installed Red Hat, I had 48 MB of RAM in my computer. Red Hat gave me a swap partition of 180 MB on the 4 GB hard drive.

I added another 128 of RAM yesterday, and have read that i should have swap space of twice the amount of RAM. My 4 GB hard drive has no space left for partitions. But my 2 GB hard drive is almost all free.

So my question is this - should i delete the old swap partition from the 4 GB drive and create one new swap partition on the 2 GB drive that is twice the size of my total amount of RAM? In this case, what do I do with the space left from the old swap partition? Is there an easy way to add it to one of my other partitions, or will it just be wasted?

Or, should I create a separate swap partition on the 2 GB hard drive (and not delete the old swap partition) so that both partitions together add up to twice the size of the RAM?

Is it bad (or impossible) to have swap partitions spread out over two hard drives?

Thanks a bunch.
Old 03-16-2002, 06:11 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
no, your swap is fine as it is, indeed it'll be used less now than before. that stupid rule about being 2xram is just a daft archiac old rule from when you had a remortage your house for a stick of ram. many people still keep blindly reciting it tho. it does have a certain application as far as high end servers go, but gerneally it's irrelevant.
Old 03-18-2002, 02:44 PM   #3
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
And, acid_kewpie, I thought I was the only one.

Swap is garbage on a computer with 128MB+ RAM. BTW, swap could slow things down cuz disk is slower than RAM. Remove it from vi /etc/fstab and run lilo.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 swap partitions librano Linux - Newbie 6 08-25-2004 02:55 PM
/ and swap partitions (but want more) How to? acummings Slackware 3 07-17-2004 01:33 AM
Swap partitions 2k. Linux - General 7 03-01-2004 06:59 PM
Do I need 2 swap partitions? CloudBuilder Linux - Newbie 2 11-14-2003 04:09 PM
swap partitions rakemup Linux - Software 5 12-10-2001 10:24 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:53 AM.

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