Hardware:
Via KT600 based motherboard (a7v600)
Wester Digital SATA hard drive
Software:
Ubuntu Hardy (before it was gutsy, but it was the same)
Kernel 2.6.24 from ubunty gutsy
or
Kernel 2.6.24.4 self compiled
(same behaviour and results)
What happens:
The machine shows the signs of PIO mode on the old IDE drives.
What i mean? well, hdparm -tT shows good values, but effective operations
on the drive raise the cpu load (on top, under the voice "wait") and i can achieve performances like 5mb/sec with the machine almost frozen
Examples:
# time cat /local/movies/Cult/Il\ nome\ della\ Rosa.avi >/dev/null
real 2m41.562s
user 0m0.040s
sys 0m3.750s
# ls -la /local/movies/Cult/Il\ nome\ della\ Rosa.avi
-rw-r--r-- 1 root root 856510464 2008-01-03 14:32 /local/movies/Cult/Il nome della Rosa.avi
(it means roughly 5Mb/sec)
in the meanwhile, "top" says:
Cpu(s): 0.3%us, 2.3%sy, 0.0%ni, 0.0%id, 97.4%wa, 0.0%hi, 0.0%si, 0.0%st
BUT:
# hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 440 MB in 2.00 seconds = 220.02 MB/sec
Timing buffered disk reads: 188 MB in 3.03 seconds = 62.14 MB/sec
so here the drive seems fast, AND dmesg says:
Apr 28 20:36:55 rivendell kernel: [ 32.111204] ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Apr 28 20:36:55 rivendell kernel: [ 32.111363] VP_IDE: IDE controller (0x1106:0x0571 rev 0x06) at PCI slot 0000:00:0f.1
Apr 28 20:36:55 rivendell kernel: [ 32.111415] ACPI: PCI Interrupt 0000:00:0f.1[A] -> GSI 20 (level, low) -> IRQ 16
Apr 28 20:36:55 rivendell kernel: [ 32.111436] VP_IDE: not 100% native mode: will probe irqs later
Apr 28 20:36:55 rivendell kernel: [ 32.111455] VP_IDE: VIA vt8237 (rev 00) IDE UDMA133 controller on pci0000:00:0f.1
Apr 28 20:36:55 rivendell kernel: [ 32.111468] ide0: BM-DMA at 0x7800-0x7807, BIOS settings: hdaio, hdb
io
Apr 28 20:36:55 rivendell kernel: [ 32.111492] ide1: BM-DMA at 0x7808-0x780f, BIOS settings: hdcMA, hdd
io
Apr 28 20:36:55 rivendell kernel: [ 33.336051] hdd: IRQ probe failed (0xfffffcfe)
Apr 28 20:36:55 rivendell kernel: [ 33.655836] hdd: IRQ probe failed (0xfffffcfe)
Apr 28 20:36:55 rivendell kernel: [ 34.635133] hdc: LITE-ON LTR-52327S, ATAPI CD/DVD-ROM drive
Apr 28 20:36:55 rivendell kernel: [ 34.635355] hdc: UDMA/33 mode selected
Apr 28 20:36:55 rivendell kernel: [ 34.635535] ide1 at 0x170-0x177,0x376 on irq 15
Apr 28 20:36:55 rivendell kernel: [ 35.245742] hdc: ATAPI 52X CD-ROM CD-R/RW drive, 2048kB Cache
Apr 28 20:36:55 rivendell kernel: [ 35.245755] Uniform CD-ROM driver Revision: 3.20
Apr 28 20:36:55 rivendell kernel: [ 35.248585] Driver 'sd' needs updating - please use bus_type methods
Apr 28 20:36:55 rivendell kernel: [ 35.248668] Driver 'sr' needs updating - please use bus_type methods
Apr 28 20:36:55 rivendell kernel: [ 35.249131] ACPI: PCI Interrupt 0000:00:0f.0[B] -> GSI 20 (level, low) -> IRQ 16
Apr 28 20:36:55 rivendell kernel: [ 35.249203] sata_via 0000:00:0f.0: routed to hard irq line 0
Apr 28 20:36:55 rivendell kernel: [ 35.249449] scsi0 : sata_via
Apr 28 20:36:55 rivendell kernel: [ 35.249597] scsi1 : sata_via
Apr 28 20:36:55 rivendell kernel: [ 35.252255] ata1: SATA max UDMA/133 cmd 0x9800 ctl 0x9400 bmdma 0x8400 irq 16
Apr 28 20:36:55 rivendell kernel: [ 35.252263] ata2: SATA max UDMA/133 cmd 0x9000 ctl 0x8800 bmdma 0x8408 irq 16
Apr 28 20:36:55 rivendell kernel: [ 35.454498] ata1: SATA link down 1.5 Gbps (SStatus 0 SControl 300)
Apr 28 20:36:55 rivendell kernel: [ 35.674349] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Apr 28 20:36:55 rivendell kernel: [ 35.880105] ata2.00: ATA-7: WDC WD10EACS-00ZJB0, 01.01B01, max UDMA/133
Apr 28 20:36:55 rivendell kernel: [ 35.880113] ata2.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 0/32)
Apr 28 20:36:55 rivendell kernel: [ 35.914627] ata2.00: configured for UDMA/133
Apr 28 20:36:55 rivendell kernel: [ 35.914830] scsi 1:0:0:0: Direct-Access ATA WDC WD10EACS-00Z 01.0 PQ: 0 ANSI: 5
Apr 28 20:36:55 rivendell kernel: [ 35.915133] sd 1:0:0:0: [sda] 1953525168 512-byte hardware sectors (1000205 MB)
Apr 28 20:36:55 rivendell kernel: [ 35.915164] sd 1:0:0:0: [sda] Write Protect is off
Apr 28 20:36:55 rivendell kernel: [ 35.915211] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Apr 28 20:36:55 rivendell kernel: [ 35.915319] sd 1:0:0:0: [sda] 1953525168 512-byte hardware sectors (1000205 MB)
Apr 28 20:36:55 rivendell kernel: [ 35.915344] sd 1:0:0:0: [sda] Write Protect is off
Apr 28 20:36:55 rivendell kernel: [ 35.915388] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Apr 28 20:36:55 rivendell kernel: [ 35.915397] sda: sda1 sda2 sda3
Apr 28 20:36:55 rivendell kernel: [ 35.940362] sd 1:0:0:0: [sda] Attached SCSI disk
Apr 28 20:36:55 rivendell kernel: [ 35.940553] sd 1:0:0:0: Attached scsi generic sg0 type 0
At the moment i'm trying to recompile the kernel with everything SATA or PATA or SCSI related as module, so i can see exactly which driver is getting used.
Anyways, any hint?



Adv Reply




Bookmarks