Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
All three disks are on a Promise 20269 controller. Two with CSEL on the primary channel, and one on the secondary jumpered to master.
Previously I was using kernel version 2.4.23, and had extremely poor performance for ALL my drives. 2.6.27.6 has greatly improved the performance of hdf/hdg, but hde is still utter crap. hde/hdf should be identical, same firmware, both serials start with WMA8C4, so they should've been produced around the same time.
I can list my kernel configuration options if you think it'd help but seeing as how only one drive exhibits these symptoms I didn't think it relevant.. then I didn't think lspci output was really relevant, either.
Is one of my drives FUBAR, or is there something else I can check? I've tried everything I could think of! I even tried turning off DMA and got measly 2.5MB/s reads from hde. I set acoustic management to 254, which I believe it may have already been set at. No change.
root@shrike:~# hdparm -Tt /dev/hde; hdparm -Tt /dev/hdf; hdparm -Tt /dev/hdg
/dev/hde:
Timing cached reads: 498 MB in 2.00 seconds = 248.83 MB/sec
Timing buffered disk reads: 14 MB in 3.48 seconds = 4.02 MB/sec
/dev/hdf:
Timing cached reads: 578 MB in 2.00 seconds = 288.96 MB/sec
Timing buffered disk reads: 120 MB in 3.02 seconds = 39.73 MB/sec
/dev/hdg:
Timing cached reads: 572 MB in 2.00 seconds = 285.96 MB/sec
Timing buffered disk reads: 156 MB in 3.00 seconds = 51.96 MB/sec
Write Tests (to a filesystem) using dd and /dev/zero:
Code:
/dev/hde:
root@shrike:/mnt/storage1# dd if=/dev/zero of=./wtest bs=16k count=12k
12288+0 records in
12288+0 records out
201326592 bytes (201 MB) copied, 71.317 s, 2.8 MB/s
/dev/hdf:
root@shrike:/mnt/storage3# dd if=/dev/zero of=./wtest bs=16k count=12k
12288+0 records in
12288+0 records out
201326592 bytes (201 MB) copied, 3.85981 s, 52.2 MB/s
/dev/hdg:
root@shrike:/mnt/sto1# dd if=/dev/zero of=./wtest bs=16k count=12k
12288+0 records in
12288+0 records out
201326592 bytes (201 MB) copied, 4.31751 s, 46.6 MB/s
System information.. uname output + dmesg snippets:
Code:
root@shrike:~# uname -a
Linux shrike 2.6.27.6 #1 Fri Nov 14 23:43:22 EST 2008 i686 AMD Athlon(tm) XP 2100+ AuthenticAMD GNU/Linux
[ 0.548411] Uniform Multi-Platform E-IDE driver
[ 0.548629] pdc202xx_new 0000:00:0a.0: IDE controller (0x105a:0x4d69 rev 0x02)
[ 0.548782] PCI: setting IRQ 11 as level-triggered
[ 0.548787] pci 0000:00:0a.0: found PCI INT A -> IRQ 11
[ 0.548884] pci 0000:00:0a.0: sharing IRQ 11 with 0000:00:06.0
[ 0.548998] pci 0000:00:0a.0: sharing IRQ 11 with 0000:00:10.1
[ 0.559141] pdc202xx_new 0000:00:0a.0: PLL input clock is 16643 kHz
[ 0.589235] pdc202xx_new 0000:00:0a.0: 100% native mode on irq 11
[ 0.589337] ide2: BM-DMA at 0xc400-0xc407
[ 0.589439] ide3: BM-DMA at 0xc408-0xc40f
[ 0.589536] Probing IDE interface ide2...
[ 0.853143] hde: WDC WD1200JB-00CRA1, ATA DISK drive
[ 1.108106] hdf: WDC WD1200JB-00CRA1, ATA DISK drive
[ 1.158910] hde: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[ 1.159883] hde: UDMA/100 mode selected
[ 1.161015] hdf: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[ 1.162000] hdf: UDMA/100 mode selected
[ 1.163137] Probing IDE interface ide3...
[ 1.427060] hdg: WDC WD1200JB-00GVA0, ATA DISK drive
[ 2.038775] hdg: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[ 2.040058] hdg: UDMA/100 mode selected
[ 2.041456] ide2 at 0xd400-0xd407,0xd002 on irq 11
[ 2.041608] ide3 at 0xcc00-0xcc07,0xc802 on irq 11
[ 4.141556] hde: max request size: 128KiB
[ 4.611932] hde: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=65535/16/63
[ 4.612148] hde: cache flushes not supported
[ 4.612306] hde: hde1 hde2 < hde5 >
[ 4.629529] hdf: max request size: 128KiB
[ 4.637249] hdf: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=65535/16/63
[ 4.637476] hdf: cache flushes not supported
[ 4.637604] hdf: hdf1 hdf2 < hdf5 >
[ 4.656432] hdg: max request size: 512KiB
[ 4.672864] hdg: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=16383/255/63
[ 4.675073] hdg: cache flushes supported
[ 4.675185] hdg: hdg1
lspci -v output:
Code:
root@shrike:~# lspci -v
00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400/KT600 AGP] Host Bridge
Subsystem: VIA Technologies, Inc. Unknown device 0000
Flags: bus master, 66MHz, medium devsel, latency 8
Memory at e0000000 (32-bit, prefetchable) [size=256M]
Capabilities: [a0] AGP version 2.0
Capabilities: [c0] Power Management version 2
00:01.0 PCI bridge: VIA Technologies, Inc. VT8235 PCI Bridge (prog-if 00 [Normal decode])
Flags: bus master, 66MHz, medium devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
Capabilities: [80] Power Management version 2
00:06.0 VGA compatible controller: Matrox Graphics, Inc. MGA 1064SG [Mystique] (rev 02) (prog-if 00 [VGA controller])
Subsystem: Matrox Graphics, Inc. Unknown device 0000
Flags: bus master, stepping, medium devsel, latency 192, IRQ 11
Memory at dfffc000 (32-bit, non-prefetchable) [size=16K]
Memory at de000000 (32-bit, prefetchable) [size=8M]
Memory at df000000 (32-bit, non-prefetchable) [size=8M]
Expansion ROM at dffe0000 [disabled] [size=64K]
00:07.0 RAID bus controller: VIA Technologies, Inc. VT6421 IDE RAID Controller (rev 50)
Subsystem: VIA Technologies, Inc. VT6421 IDE RAID Controller
Flags: bus master, medium devsel, latency 192, IRQ 10
I/O ports at ec00 [size=16]
I/O ports at e800 [size=16]
I/O ports at e400 [size=16]
I/O ports at e000 [size=16]
I/O ports at dc00 [size=32]
I/O ports at d800 [size=256]
Expansion ROM at dffd0000 [disabled] [size=64K]
Capabilities: [e0] Power Management version 2
00:0a.0 Mass storage controller: Promise Technology, Inc. 20269 (rev 02) (prog-if 85)
Subsystem: Promise Technology, Inc. Ultra133TX2
Flags: bus master, 66MHz, slow devsel, latency 192, IRQ 11
I/O ports at d400 [size=8]
I/O ports at d000 [size=4]
I/O ports at cc00 [size=8]
I/O ports at c800 [size=4]
I/O ports at c400 [size=16]
Memory at dfff8000 (32-bit, non-prefetchable) [size=16K]
Expansion ROM at dffc0000 [disabled] [size=16K]
Capabilities: [60] Power Management version 1
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80) (prog-if 00 [UHCI])
Subsystem: Micro-Star International Co., Ltd. Unknown device 7120
Flags: bus master, medium devsel, latency 192, IRQ 5
I/O ports at b800 [size=32]
Capabilities: [80] Power Management version 2
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80) (prog-if 00 [UHCI])
Subsystem: Micro-Star International Co., Ltd. Unknown device 7120
Flags: bus master, medium devsel, latency 192, IRQ 11
I/O ports at bc00 [size=32]
Capabilities: [80] Power Management version 2
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80) (prog-if 00 [UHCI])
Subsystem: Micro-Star International Co., Ltd. Unknown device 7120
Flags: bus master, medium devsel, latency 192, IRQ 10
I/O ports at c000 [size=32]
Capabilities: [80] Power Management version 2
00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82) (prog-if 20 [EHCI])
Subsystem: Micro-Star International Co., Ltd. Unknown device 7120
Flags: bus master, medium devsel, latency 192, IRQ 12
Memory at dfff7f00 (32-bit, non-prefetchable) [size=256]
Capabilities: [80] Power Management version 2
00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
Subsystem: VIA Technologies, Inc. Unknown device 0000
Flags: bus master, stepping, medium devsel, latency 0
Capabilities: [c0] Power Management version 2
00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) (prog-if 8a [Master SecP PriP])
Subsystem: Micro-Star International Co., Ltd. Unknown device 7120
Flags: bus master, medium devsel, latency 32, IRQ 14
[virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
[virtual] Memory at 000003f0 (type 3, non-prefetchable)
[virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
[virtual] Memory at 00000370 (type 3, non-prefetchable)
I/O ports at fc00 [size=16]
Capabilities: [c0] Power Management version 2
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50)
Subsystem: Micro-Star International Co., Ltd. Unknown device 7120
Flags: medium devsel, IRQ 10
I/O ports at b400 [size=256]
Capabilities: [c0] Power Management version 2
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
Subsystem: Micro-Star International Co., Ltd. Unknown device 7120
Flags: bus master, medium devsel, latency 192, IRQ 5
I/O ports at b000 [size=256]
Memory at dfff7e00 (32-bit, non-prefetchable) [size=256]
Capabilities: [40] Power Management version 2
Have you tried running the SMART utils on hde?
Test the drive with:
# smartctl -t long /dev/hde
then when the test is finished (check the output for when this is likely to be), run:
# smartctl --all /dev/hde
to see the results.
I just tried swapping the cable with a known good one, moved hdf to the onboard VIA secondary controller (now hdc).
I'll try moving it around later, but performance was unchanged for all drives. :\ It really looks like a drive issue, I just can't imagine what would make it give me 5-10% of the read/write performance it should get without it having some kind of massive failure/data loss.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.