LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-23-2002, 09:21 PM   #1
thanko
Member
 
Registered: Feb 2002
Location: MI
Distribution: Slackware 9.1
Posts: 83

Rep: Reputation: 15
hard drive perfomance


I have a Pentium 4 2.0 GHz with 2 Western Digital hard drives installed, both UDMA 100. However both of them are reported in dmesg as UDMA(33). As far as I have been able, I've followed the instructions at www.geocities.com/ender7007/ to turn all the kernel stuff on but haven't had any luck. Am I just misinterpreting the message in dmesg? or is there something I did not do?
 
Old 04-23-2002, 11:26 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
What kind of cables are you using? Should be 80conductor.

Are there any other drives on the IDE chain? Each controller (Primary or secondary) will only fly at the lowest speed of any drive attached to it.

If it's none of the above I would check to see which kind of controller you are using. From the link provided, it appears that the instructions are for older 2.2.x kernels. kernels 2.4.5 and up should support ATA/66 (some 100) interfaces. Which kernel are you running?
 
Old 04-24-2002, 07:06 AM   #3
thanko
Member
 
Registered: Feb 2002
Location: MI
Distribution: Slackware 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
Here's the scoop, Mcleodnine. Thanks for the response.

I'm running two hard drives in my system, both on the primary IDE port, both Western Digital, a WD400BB (slave) and a WD800BB (master). Linux is on the WD800. According to Western Digital's web site both drives support UDMA5, which, as I understand is ATA100. Correct me if I'm wrong. I am using an 80 conductor cable, although one conductor looks like it has been intentionally opened. There's about a 3/16" chunk between the two drive connectors missing from it . As near as I can tell I have an Intel D850MV motherboard, which also supports ATA100.

When I run "hdparm -i /dev/hda" (WD800) hdparm reports that the drive only supports up to udma2 and that the drive is running at udma2. When I run "hdparm -i /dev/hdb" (WD400) hdparm reports that the drive supports up to udma5 but that the drive is running at udma2. Which make sense if the WD800 is only running udma2.

The kernel version I'm running is 2.4.18 with RedHat 7.2. I'm not sure which options need to be enabled in the kernel so I just turned on the ones I could find suggested in www.geocities.com/ender7007/.
 
Old 04-24-2002, 11:37 AM   #4
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
The chunk of cable that has been cut out is normal - it's something to do with the cable select settings for the HDD's. According to Quantum's orignal spec for ATA/66, drives should be configured (jumpers) for 'CS' (cable select) rather than using master or slave.


The only other thing I can think of is to check which drive controller you're using and make sure you've got the kernel compiled properly for it. There's a P4 in the house with the D850 chipset on it that works nicely with Intel's ATA/100 controller. The only problem was that we have to disable APIC as it will crash otherwise. <shrug>.
 
Old 04-24-2002, 11:46 AM   #5
thanko
Member
 
Registered: Feb 2002
Location: MI
Distribution: Slackware 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
Here's another update.

I took a cable from work (www.vibres.com, if anyone cares) and replaced the cable in the box with the one from work. The new cable did not have the wire cut out (probably not the problem), however the old cable had been installed backwards by my PC manufacturer. When I plugged the cable in correctly both drives reported (using hdparm -i /dev/hdX) that they were capable of doing UDMA5. I tuned a couple of parameters (hdparm -d 1 -X 64 /dev/hdX) and I think everything is working.

When I started up the PC after changing the cable "hdparm /dev/hd" reported that DMA was turned off. I assume it's off by default.
 
Old 04-24-2002, 11:48 AM   #6
thanko
Member
 
Registered: Feb 2002
Location: MI
Distribution: Slackware 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
Which kernel parameters should be compiled into the kernel?

Which parameters in hdparm should be turned on?

I think I've done the following with hdparm:

-c 1 /dev/hdX
-W 1 /dev/hdX
-m 16 /dev/hdX
-d 1 /X 69 /dev/hdX

Any thing else?
 
Old 04-24-2002, 11:55 AM   #7
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Looks to me like you solved the problem. Now try 'hdparm -tT /dev/hdX' to see what kind of performace you're getting.
 
Old 04-25-2002, 12:51 AM   #8
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
Quote:
...and replaced the cable in the box with the one from work. The new cable did not have the wire cut out
As mcleodnine said, the cutout cable configuration had to do with the Cable Select (CS) option. Don't use it, period- Use a normal cable (as you are now), and hard-set the Master/Slave jumpers for each drive.

Quote:
however the old cable had been installed backwards by my PC manufacturer.
The new 80-pin cables consist of 40 extras ground lines added to the original 40-line ATA cables, and proper orientation of the cable is critical. Here's a link to Intel's explanation of the subject.

Quote:
When I plugged the cable in correctly both drives reported (using hdparm -i /dev/hdX) that they were capable of doing UDMA5. I tuned a couple of parameters (hdparm -d 1 -X 64 /dev/hdX) and I think everything is working.When I started up the PC after changing the cable "hdparm /dev/hd" reported that DMA was turned off. I assume it's off by default.
You did put the relevant hdparm lines in your rc.local file, yes?

Last edited by DMR; 04-25-2002 at 12:52 AM.
 
Old 04-25-2002, 06:59 AM   #9
thanko
Member
 
Registered: Feb 2002
Location: MI
Distribution: Slackware 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
I have not written those commands to that file yet. I'm a little nervous about doing so because I'm not entirely sure which ones are safe to play with. Do you have any suggestions?

Are the ones listed in a previous post un this thread correct?
 
Old 04-26-2002, 08:34 PM   #10
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
You're not sure which commands are safe, or which file it's safe to put them in?

The idea of testing different values for the different parameters is only to determine what combination of settings (which could be different for each drive) yields the best performance; you aren't permanently applying any of the settings by running the tests, and they will be lost on reboot. So: do the tests, find the optimal settings, and then force those settings to be applied at each boot up by putting the relevent hdparm commands in /etc/rc.d/rc.local.

Just for reference, here's another
short, concise hdparm instruction page.
 
Old 05-01-2002, 03:30 AM   #11
rommel
LQ Newbie
 
Registered: Dec 2001
Location: a cornfield in SD
Posts: 15

Rep: Reputation: 0
i just finished an install of gentoo...just have the base install compiled so far...and i added this line to /etc/conf.d/local.start ...depending on the distro your start script may be named differently

/sbin/hdparm -qc 1 -qd 1 /dev/hda

this sets it to initiate at boot so you dont have to reset it each time you start the system...my read went from 1.8mb/s before i set this to 38.7mb/s after
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
Reiser file system / Hard Disk/ Hard Drive Problems Oxyacetylene Linux - Software 4 10-10-2005 02:24 PM
2 hard drive in system mirror 1st hard drive sburns76247 Linux - General 2 12-21-2004 01:47 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 12:01 PM
STUCK--Trying to copy old Hard Drive to new Hard Drive. Please Help tsw Linux - Newbie 8 05-26-2004 02:47 AM

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

All times are GMT -5. The time now is 12:20 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