LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-16-2004, 10:51 AM   #1
reetep
Member
 
Registered: Oct 2003
Location: UK
Distribution: Debian
Posts: 122

Rep: Reputation: 15
ide cabling -most efficient way?


I've got hold of a separate disk on which to have my swap partition. I believe this will give a performance boost.

I currently have my first hard disk on ide channel 1 with cdrom as slave, and second disk on ide channel two.

Would it make any difference (for better or for worse) if I put the two disks on one channel and left the cdrom one its own as master?

What is the most efficient set up with a view to maximising disk performance, and ignoring the cdrom?

Many thanks, reetep.
 
Old 09-16-2004, 11:01 AM   #2
Slaxx
LQ Newbie
 
Registered: Sep 2004
Location: Purdue University
Distribution: Slackware 10.0
Posts: 11

Rep: Reputation: 0
IDE Drive Setup

I've heard (although never tested myself) that putting two hard-disk drives on separate IDE channels will improve their performance. This is because a hard-drive that is mounted and in use will be frequently sending information across the IDE data channels, so it is faster to separate the two drives and therefore the two streams of information. Therefore, I'd say that putting your main hard-disk as primary master and your CD drive as primary slave, and your other hard-disk as secondary master, would be a good plan to increase performance. However, you should check into it more carefully from the boot perspective, because you might not be able to boot from CD if you configure your system like this. (As far as I know, my system will only boot to a master device, but I'm not entirely sure that all systems do that.)
 
Old 09-16-2004, 11:02 AM   #3
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
The bandwidth of an IDE or ATAPI channel is shared between both devices, so it's best to keep the hard disks on seperate channels if you can, or the devices will slow down.

The CD won't take up any bandwidth unless it's being used. If you really want maximum performance even with the CD being used, buy a second IDE controller (on a PCI card) and put the CD on that.

Also, note that swapping only kicks in when you run out of free RAM pages; you might want to play with /proc/cpu/swappiness in recent kernels to control the balance between RAM cache pages and application RAM pages, which directly affects how many pages are free in RAM.

To make the hard disks go faster, you could look also at using software RAID, or even buying a RAID controller.
 
Old 09-16-2004, 11:57 AM   #4
reetep
Member
 
Registered: Oct 2003
Location: UK
Distribution: Debian
Posts: 122

Original Poster
Rep: Reputation: 15
Thanks guys that's great. I'll give it a go on separate channels and then experiment further just for fun

Thanks also for telling me about /proc/cpu/swappiness - I didn't know about that. Do you have any particular recommendations for someone who

a) has 256MB
b) has 512MB

?

Thanks again, reetep.
 
Old 09-16-2004, 12:24 PM   #5
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
The value to put in swappiness doesn't really have anything to do with the amount of RAM you have.

Basically, the lower the value the more likely you are to use cache memory rather than swap space, making applications more responsive but possibly slowing down hardware access.
 
Old 09-16-2004, 12:47 PM   #6
reetep
Member
 
Registered: Oct 2003
Location: UK
Distribution: Debian
Posts: 122

Original Poster
Rep: Reputation: 15
Ok thanks, I'll definitely do some googling on that to check it out
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
IDE cabling question danimalz Linux - Hardware 5 10-22-2005 07:32 AM
a more efficient set up dr_zayus69 Linux - Newbie 3 12-03-2004 09:47 AM
Whats faster Coaxial Cabling or CAT5 Cabling!?? FreakboY Linux - Networking 22 08-25-2004 09:16 AM
Hardware and cabling Ricky Linux - Hardware 3 10-30-2003 09:28 AM
how to do cabling? yowwww Linux - Networking 7 04-14-2003 09:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:06 PM.

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