LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 03-01-2004, 05:17 PM   #1
2k.
Member
 
Registered: Apr 2003
Location: Exeter - UK
Distribution: Gentoo
Posts: 45

Rep: Reputation: 15
Swap partitions


Hi there,

Currently i have 2 hard disks in my PC.

I have just reduced the size of the windows partition on hda to 10 gig freeing up about 50 gig and i have a gentoo installation on hdb using 80 gig.

I want to install LFS on the now free 50 gig partition. but what i was wondering is shall i bother with a swap partition on this drive? would there be any negative impact by not having a swap partition and using the one on hdb?

thanks for any advice

Mike
 
Old 03-01-2004, 05:23 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
No, there wouldn't ... however, if you had "shared" stuff,
like a common /home for both installations, it would be
advantageous to have a swapper on both hdd's because
then Linux could use the one on the hdd that's not in access
for swapping (speed gain) ...



Cheers,
Tink

Last edited by Tinkster; 03-01-2004 at 05:24 PM.
 
Old 03-01-2004, 05:30 PM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
One tip for unlikely circumstances, though: I originally had two small drives in this box with the swap on one. I figured one was plenty and I didn't need a swap on the other. So when I replaced the 15 gig drive with an 80, I moved the 15 to a different computer. But then the Slackware install on that drive had no swap and I'd have had to repartition to get any swap for it. However, the drive decided to save me the trouble of repartitioning and just died. So one of these days you might want swap space on each drive. But as long as your two drives stay together, one swap will do for all your distros.

As far as the speed gain, Tink, do they also need to be on different controllers? Earlier in the boxes life I had swap on both drives on that theory but they were both on the same controller so I don't know if it did any good.
 
Old 03-01-2004, 05:33 PM   #4
2k.
Member
 
Registered: Apr 2003
Location: Exeter - UK
Distribution: Gentoo
Posts: 45

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Tinkster
No, there wouldn't ... however, if you had "shared" stuff,
like a common /home for both installations, it would be
advantageous to have a swapper on both hdd's because
then Linux could use the one on the hdd that's not in access
for swapping (speed gain) ...



Cheers,
Tink
There won't be any shared stuff on the systems except for the swap, as i want to play with the lfs installation without running the risk of destroying data / breaking my gentoo installation.
 
Old 03-01-2004, 05:35 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Quote:
As far as the speed gain, Tink, do they also need to be on different controllers? Earlier in the boxes life I had swap on both drives on that theory but they were both on the same controller so I don't know if it did any good.
Well, IDE is a stupid interface, and it would be MORE
beneficial if the HDD's weren't on the same controller,
but even if they are, it's still faster since the head-movements
on the active drive are less ...


Cheers,
Tink
 
Old 03-01-2004, 05:49 PM   #6
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Quote:
Originally posted by Tinkster
Well, IDE is a stupid interface, and it would be MORE
beneficial if the HDD's weren't on the same controller,
but even if they are, it's still faster since the head-movements
on the active drive are less ...


Cheers,
Tink
But it's a cheap interface. Okay - so it cuts the 'mechanical' speed down to the 'electrical' speed. But still has the IDE stepping on its own toes. Cool.
 
Old 03-01-2004, 05:52 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Quote:
Originally posted by digiot
But it's a cheap interface. :) Okay - so it cuts the 'mechanical' speed down to the 'electrical' speed. But still has the IDE stepping on its own toes. Cool.
Yip ...

/me sighs:"SCSI ... "
If only the drives (controllers, cables, ...) weren't so
darn bloody expensive :}

Cheers,
Tink
 
Old 03-01-2004, 05:59 PM   #8
2k.
Member
 
Registered: Apr 2003
Location: Exeter - UK
Distribution: Gentoo
Posts: 45

Original Poster
Rep: Reputation: 15
your not joking!

am i right in thinking that if you want another performance increase then stick the swap partition at the start of the drive? because that means the heads don't have to move as far?
 
  


Reply


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 swap partitions librano Linux - Newbie 6 08-25-2004 01:55 PM
/ and swap partitions (but want more) How to? acummings Slackware 3 07-17-2004 12:33 AM
Do I need 2 swap partitions? CloudBuilder Linux - Newbie 2 11-14-2003 03:09 PM
swap partitions chappy011 Linux - Newbie 2 03-18-2002 01:44 PM
swap partitions rakemup Linux - Software 5 12-10-2001 09:24 PM


All times are GMT -5. The time now is 05:12 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration