LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-28-2004, 10:43 PM   #1
grndrush
LQ Newbie
 
Registered: Jan 2004
Location: Hamilton, Ontario, Canada
Distribution: Arch
Posts: 17

Rep: Reputation: 0
Slower Disk Transfer Rate in 2.6 kernel


I've seen numerous posts alluding to this "problem", and I've www.google.com/linux'ed until I'm cross-eyed, but I've found no "solution", if indeed one is needed.

I'm running a 2.4GHz Cel on a M-266 generic (ASRock) mobo, UDMA/133 support, 512MB, with a 120GB HD (WD 12000, 7200 RPM, 8MB cache, UDMA/100) on IDE0 all by it's lonesome. Under 2.4.(10-24), hdparm -t returned tranfer rates in the 42-47MB/sec range (notice the variance). Under 2.6.0 and 2.6.1 (both vanilla kernels from www.kernel.org, custom-configured starting from the 2.4 config file), I am getting 32.5-34M/sec (usually it's in the 33.1-33.6 range). I've checked all the logs and drive settings via hdparm; dma is set, multi is set, etc.

The fact that the 2.6 transfer rate, test after test, is so tightly packed around 33MB/sec seems to indicate to me that something is limiting the drive to UDMA/33...

Interesting note: if hdparm wasn't *telling* me the transfer rate was slower, I'd never know it - the system is definitely zippier. But, it looks like I might not be getting all I paid for...
 
Old 01-28-2004, 10:59 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
What does your dmesg say as far as the disk operating mode?

For instance:

hde: max request size: 128KiB
hde: 90069840 sectors (46115 MB) w/1916KiB Cache, CHS=65535/16/63, UDMA(100)
/dev/ide/host2/bus0/target0/lun0: p1 p2 p3
hdh: max request size: 128KiB
hdh: 78165360 sectors (40020 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(100)
/dev/ide/host2/bus1/target1/lun0: p1


That indicates that on my server both the HD's are running UDMA(100). Yours should said 133 right?

Last edited by jtshaw; 01-28-2004 at 11:01 PM.
 
Old 01-29-2004, 12:34 AM   #3
grndrush
LQ Newbie
 
Registered: Jan 2004
Location: Hamilton, Ontario, Canada
Distribution: Arch
Posts: 17

Original Poster
Rep: Reputation: 0
jt -

Sorry for the delay. I've been rebooting repeatedly playing with BIOS and init options for exactly what you are talking about.

Remember: all this worked at 42-47MB/sec w/o any doings on my part under 2.4.

The following has apparently been in dmesg forever (I have no idea about under 2.4):

> ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx

So, I tried idebus=100 (My mobo is UDMA/133, but the drive is only UDMA/100).
That gave me a screaming "INVALID PARAMETER" (I think) error. Very close to that. So, I tried idebus=66 and it gave me (in dmesg) an "IMPOSSIBLE PCI SPEED (66000), 33MHz assumed instead." It was also giving me a "use ide0=ata66 to indicate an 80-pin cable" (again, wording may not be exact, but it's close and meaning s/be preserved). "ide0=ata100" also syntaxes, but I did get "ide0=ata66" accepted w/no err msgs. I also noticed the following (again, in dmesg):

> ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hdaMA, hdbio
> ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdcMA, hddMA

I did *everything* I could think of in BIOS to get hdb seen as either not present, or DMA, thinking that the 1st msg above meant hdb was limiting the channel to 33MHz, but to no avail. It's currently set as UDMA/100 and disabled, but you can see the results below.

Below is a dmesg dump of all I thought might be needed; trying not to overload here! I tried to include nearby 'markers' so you'd know where in the log they are. If I need to be more specific, just let me know.


Early in boot:

>>
Building zonelist for node : 0
Kernel command line: root=/dev/hda5 quiet devfs=mount ide0=ata66
ide_setup: ide0=ata66
Initializing CPU#0
<<

Then, later in boot:

>>
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
via-rhine.c:v1.10-LK1.1.19-2.5 July-12-2003 Written by Donald Becker
http://www.scyld.com/network/via-rhine.html
eth0: VIA VT6102 Rhine-II at 0xdfffff00, 00:50:ba:2b:46:6a, IRQ 18.
eth0: MII PHY found at address 8, status 0x782d advertising 05e1 Link 45e1.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 0000:00:11.1
ACPI: No IRQ known for interrupt pin A of device 0000:00:11.1 - using IRQ 255
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci0000:00:11.1
ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hdaMA, hdbio
ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdcMA, hddMA
hda: WDC WD1200JB-00DUA3, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: Compaq DVD-ROM SD-M1612, ATAPI CD/DVD-ROM drive
hdd: SONY CD-RW CRX175A, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 1024KiB
hda: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=16383/255/63, UDMA(100)
/dev/ide/host0/bus0/target0/lun0: p1 p2 p3 p4 < p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 >
hdc: ATAPI 48X DVD-ROM drive, 512kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
hdd: ATAPI 40X CD-ROM CD-R/RW drive, 2048kB Cache, DMA
<<


It seems to be reporting everything accurately (drive and controller modes). BTW During the tests I was doing a few minutes ago, all right after a fresh boot, I was getting 33.58-33.80 MHz every time. It looks real suspect....

TIA!

Blue Skies...K
 
Old 01-29-2004, 12:52 AM   #4
grndrush
LQ Newbie
 
Registered: Jan 2004
Location: Hamilton, Ontario, Canada
Distribution: Arch
Posts: 17

Original Poster
Rep: Reputation: 0
jt -

In case you have smilies turned on, I've put a space between all the colons on that all-important line:

ide0 : BM-DMA at 0xfc00-0xfc07, BIOS settings : hda : DMA, hdb : pio
ide1 : BM-DMA at 0xfc08-0xfc0f, BIOS settings : hdc : DMA, hdd : DMA

The hdb : pio is what worries me (in relation to the "Assuming 33MHz system bus speed for PIO modes;" message).

Is it seeing hdb as a pio mode drive, and limiting the channel to same?

FWIW: I have what is likely a test mobo. I've had absolutely no problems with it, and you can see that the relevant chipsets are all detected w/no problem. However, the vendor # in the BIOS boot screen (across the bottom) is "009999"...hey, it was cheap. Real "inexpensive" (barebones) system which I built from there.

Isn't ATA/UDMA 100/133 already running in Linux 2.4 (I've seen Q's about SATA drives)? Where would the (valid) boot-time init options be documented? EG I couldn't get either idebus=99 or ide0=ata99 to work w/99=100. Couldn't get idebus=99 to work w/anything.

The source is the force? Never had to venture there before...LOL.
 
  


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
Quick question about hard disk transfer rate cav Linux - Hardware 2 06-02-2004 10:44 PM
VERY slow transfer rate.. dkc_ace *BSD 2 03-24-2004 10:11 PM
samba transfer rate deflin39 Linux - Software 4 01-12-2004 01:15 PM
Nic transfer rate ? wizade Linux - Networking 3 01-07-2004 06:24 PM
ftp transfer rate Serena Linux - Networking 1 04-30-2002 01:20 PM

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

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