LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-05-2001, 11:23 AM   #1
synth
LQ Newbie
 
Registered: Jul 2001
Posts: 3

Rep: Reputation: 0
UDMA66 help!!


I installed RH7.1 last night and everything seems to be working fine....except my hard drive. It's a Western Digital 20GB UDMA66 drive. I'm not using my controller card. It goes directly to the primary controller on the mother board (Tyan 1854..which also has UDMA66 capabilities).

It seems extremely slow! I've recompiled the kernel to use DMA by default but it didn't seem to help much. I've also tried adding a line in my lilo.conf:


image=/boot/vmlinuz-2.4.2-3
label=2.4.2-3
read-only
root=/dev/hda2
append="idebus=66 ide0=ata66"

Here's what I got after I ran lilo and rebooted:

Linux version 2.4.2-2 (root@147-198.waldenweb.com) (gcc version 2.96 20000731 (R
ed Hat Linux 7.1 2.96-81)) #1 Wed Jul 4 23:41:41 CDT 2001
BIOS-provided physical RAM map:
BIOS-e820: 000000000009fc00 @ 0000000000000000 (usable)
BIOS-e820: 0000000000000400 @ 000000000009fc00 (usable)
BIOS-e820: 0000000000010000 @ 00000000000f0000 (reserved)
BIOS-e820: 0000000000010000 @ 00000000ffff0000 (reserved)
BIOS-e820: 000000001fef0000 @ 0000000000100000 (usable)
BIOS-e820: 000000000000d000 @ 000000001fff3000 (ACPI data)
BIOS-e820: 0000000000003000 @ 000000001fff0000 (ACPI NVS)
On node 0 totalpages: 131056
zone(0): 4096 pages.
zone DMA has max 32 cached pages.
zone(1): 126960 pages.
zone Normal has max 991 cached pages.
zone(2): 0 pages.
zone HighMem has max 1 cached pages.
Kernel command line: auto BOOT_IMAGE=2.4.2-3 ro root=302 BOOT_FILE=/boot/vmlinuz
-2.4.2-3 idebus=66 ide0=ata66
ide_setup: idebus=66
ide_setup: ide0=ata66
Initializing CPU#0
Detected 400.912 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 799.53 BogoMIPS
Memory: 513188k/524224k available (1347k kernel code, 10648k reserved, 77k data,
192k init, 0k highmem)
Dentry-cache hash table entries: 65536 (order: 7, 524288 bytes)
Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
CPU: Before vendor init, caps: 0183f9ff 00000000 00000000, vendor = 0
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After vendor init, caps: 0183f9ff 00000000 00000000 00000000
CPU: After generic, caps: 0183f9ff 00000000 00000000 00000000
CPU: Common caps: 0183f9ff 00000000 00000000 00000000
CPU: Intel Pentium II (Deschutes) stepping 01
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
PCI: PCI BIOS revision 2.10 entry at 0xfb290, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Disabled enhanced CPU to PCI posting #2
Unknown bridge resource 0: assuming transparent
Unknown bridge resource 1: assuming transparent
Unknown bridge resource 2: assuming transparent
PCI: Using IRQ router VIA [1106/0596] at 00:07.0
Activating ISA DMA hang workarounds.
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Starting kswapd v1.8
Detected PS/2 Mouse Port.
pty: 256 Unix98 ptys configured
block: queued sectors max/low 340762kB/209690kB, 1024 slots per queue
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 66MHz system bus speed for PIO modes
VP_IDE: IDE controller on PCI bus 00 dev 39
VP_IDE: chipset revision 16
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: User given PCI clock speed impossible (66), using 33 MHz instead.
VP_IDE: Use ide0=ata66 if you want to force UDMA66/UDMA100.
VP_IDE: VIA vt82c596b (rev 23) IDE UDMA66 controller on pci00:07.1
VP_IDE: ATA-66/100 forced bit set (WARNING)!!
ide0: BM-DMA at 0xe000-0xe007, BIOS settings: hdaMA, hdbio
ide1: BM-DMA at 0xe008-0xe00f, BIOS settings: hdcMA, hddio
hda: WDC WD200BB-00AUA1, ATA DISK drive
hdc: TOSHIBA DVD-ROM SD-M1102, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 39102336 sectors (20020 MB) w/2048KiB Cache, CHS=2434/255/63, UDMA(66)
hdc: ATAPI 24X DVD-ROM drive, 256kB Cache, DMA
Uniform CD-ROM driver Revision: 3.12
Partition check:
hda:hda: timeout waiting for DMA
ide_dmaproc: chipset supported ide_dma_timeout func only: 14
hda: irq timeout: status=0xd0 { Busy }
hda: DMA disabled
ide0: reset: success
hda1 hda2 hda3 hda4
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
NTFS version 010116
loop: loaded (max 8 devices)
Serial driver version 5.02 (2000-08-09) with MANY_PORTS SHARE_IRQ SERIAL_PCI ISA
PNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
PCI: Found IRQ 11 for device 00:13.0
3c59x.c:LK1.1.13 27 Jan 2001 Donald Becker and others. http://www.scyld.com/net
work/vortex.html
See Documentation/networking/vortex.txt
eth0: 3Com PCI 3c905C Tornado at 0xec00, 00:50:da:b3:7e:90, IRQ 11
product code 4242 rev 00.13 date 11-21-99
8K byte-wide RAM 5:3 Rx:Tx split, autoselect/Autonegotiate interface.
MII transceiver found at address 24, status 782d.
Enabling bus-master transmits and whole-frame receives.
eth0: scatter/gather enabled. h/w checksums enabled
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: Detected Via Apollo Pro chipset
agpgart: AGP aperture is 128M @ 0xd0000000
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 32768)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 192k freed
Adding Swap: 128480k swap-space (priority -1)
hda: irq timeout: status=0xd0 { Busy }
ide0: reset: success
eth0: using NWAY device table, not 8
hda: irq timeout: status=0xd0 { Busy }
ide0: reset: success
hda: irq timeout: status=0xd0 { Busy }
ide0: reset: success
hda: irq timeout: status=0xd0 { Busy }
ide0: reset: master: error (0x00?)

That didn't help either. Here are the numbers I'm getting from hdparm:

[root@147-198 /etc]# hdparm -i /dev/hda

/dev/hda:

Model=WDC WD200BB-00AUA1, FwRev=18.20D18, SerialNo=WD-WMA6Y2969510
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=40
BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=off
CurCHS=16383/16/63, CurSects=-66060037, LBA=yes, LBAsects=39102336
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 *udma4 udma5

This is what really confuses me. The above hdparm says I'm using UDMA66 yet, the below says I'm not using it:

[root@147-198 /etc]# hdparm /dev/hda

/dev/hda:
multcount = 0 (off)
I/O support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
nowerr = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 2434/255/63, sectors = 39102336, start = 0

The hdparm test is what really bothers me. It literally takes about 5 minutes for it to spit out a timed buffered disk read....and when it does, it's not very impressive:

[root@147-198 /etc]# hdparm -tT /dev/hda

/dev/hda:
Timing buffer-cache reads: 128 MB in 1.18 seconds =108.47 MB/sec
Timing buffered disk reads: 64 MB in 623.91 seconds =105.04 kB/sec


How can I increase the speed of the disk reads? If anyone could help me out I'd really appreciate it!
 
Old 07-05-2001, 12:13 PM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Re: UDMA66 help!!

Quote:
Originally posted by synth
I'm not using my controller card. It goes directly to the primary controller on the mother board (Tyan 1854..which also has UDMA66 capabilities).
So you've got a second controller installed? You might be experiencing a conflict if this is the case. Try removing the controller card (if its there). It also moans about your some of your PCI resources - have you got any 'unusal' hardware in your box? If you have try removing it and seeing if that helps, if it does the it looks like the kernel either doesn't like the hardware or is configuring it in a strage way.

Did you have these problems beford you enabled UDMA66? Post some answers back...

cheers

Jamie...
 
Old 07-05-2001, 01:17 PM   #3
synth
LQ Newbie
 
Registered: Jul 2001
Posts: 3

Original Poster
Rep: Reputation: 0
nope. No unusual hardware. In fact, here ya go:

[root@147-198 /root]# lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT82C691 [Apollo PRO] (rev c4)
00:01.0 PCI bridge: VIA Technologies, Inc. VT82C598/694x [Apollo MVP3/Pro133x AGP]
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C596 ISA [Mobile South] (rev 23)
00:07.1 IDE interface: VIA Technologies, Inc. Bus Master IDE (rev 10)
00:07.3 Host bridge: VIA Technologies, Inc. VT82C596 Power Management (rev 30)
00:0f.0 VGA compatible controller: ATI Technologies Inc 3D Rage Pro 215GP (rev 5c)
00:13.0 Ethernet controller: 3Com Corporation 3c905C-TX [Fast Etherlink] (rev 74)

Just a vid card and a NIC. That's it. No controller card. Is it possible that the drive might be bad?
 
Old 07-05-2001, 01:48 PM   #4
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
is this a new drive? did you use the W.D. disk to set the drive to udma66?
 
Old 07-05-2001, 05:44 PM   #5
synth
LQ Newbie
 
Registered: Jul 2001
Posts: 3

Original Poster
Rep: Reputation: 0
Do i need to set the WD disk to use UDMA66? With some kind of WD disk utility? Most drives I've had in the past auto-detect the transfer mode. I didn't think I needed to manually set it. I'll try going to WD's site and see if I can find anything.
 
Old 07-05-2001, 05:57 PM   #6
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
i don't know about yours, but mine did come with a utility disk that allowed me to choose 33,66,or 100. nothings running in the background, i think it just writes a little info to an eeprom somewhere in the drive.

Last edited by rshaw; 07-05-2001 at 06:01 PM.
 
Old 07-06-2001, 01:43 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
Do you have IDE-DMA support in the kernel or as a module?

Y'all will need to have support for whatever controller you are using as well.

Just an educated guess but you should be up around 15 to 20 MBits/s with the hardware listed.
 
  


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
Udma33>Udma66 mnaz Linux - Hardware 13 03-04-2004 01:08 AM
Strange behaviour psb. UDMA66 VIA in rh 7.3? klod Linux - Hardware 5 04-05-2003 08:46 PM
udma66 or 100, HOW? Olliiie Linux - General 5 06-13-2002 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:23 AM.

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