I'm having some troubles with SATA and Linux, I have seagate SATA disk.
DMA seems to be disabled on the disk.
The following is from the default fedora core 3 installation (kernel -2.6.9-1.667), the test gave me different results every time, it kept increasing all the time by approx. 14MB/sec.
Code:
#/sbin/lsmod
sata_sil 7813 3
libata 39813 1 sata_sil
sd_mod 13521 4
scsi_mod 76993 2 libata,sd_mod
#hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 2116 MB in 2.00 seconds = 1058.16 MB/sec
BLKFLSBUF failed: Operation not supported
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Operation not supported
Timing buffered disk reads: 46 MB in 3.11 seconds = 14.79 MB/sec
BLKFLSBUF failed: Operation not supported
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Operation not supported
#hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 2028 MB in 2.00 seconds = 1014.15 MB/sec
BLKFLSBUF failed: Operation not supported
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Operation not supported
Timing buffered disk reads: 88 MB in 3.09 seconds = 28.46 MB/sec
BLKFLSBUF failed: Operation not supported
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Operation not supported
and after some more times
# hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 1988 MB in 2.00 seconds = 993.65 MB/sec
BLKFLSBUF failed: Operation not supported
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Operation not supported
Timing buffered disk reads: 400 MB in 3.06 seconds = 130.65 MB/sec
BLKFLSBUF failed: Operation not supported
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Operation not supported
[root@localhost source]# hdparm -i /dev/sda
/dev/sda:
HDIO_GET_IDENTITY failed: Inappropriate ioctl for device
---------------------------------------------------------------------------
After recompiling the new 2.6.10 kernel:
#/sbin/lsmod
sata_sil 7813 3
libata 39813 1 sata_sil
sd_mod 13521 4
scsi_mod 76993 2 libata,sd_mod
[root@localhost source]# hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 2120 MB in 2.00 seconds = 1059.63 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device
Timing buffered disk reads: 44 MB in 3.09 seconds = 14.23 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device
Here th result is stuck to 14 MB/sec
[root@localhost source]# hdparm -i /dev/sda
/dev/sda:
HDIO_GET_IDENTITY failed: Inappropriate ioctl for device
This is a part of # dmesg
SCSI subsystem initialized
libata version 1.10 loaded.
sata_sil version 0.8
ACPI: PCI Interrupt Link [LNK3] enabled at IRQ 11
PCI: setting IRQ 11 as level-triggered
ACPI: PCI interrupt 0000:01:0b.0[A] -> GSI 11 (level, low) -> IRQ 11
ata1: SATA max UDMA/100 cmd 0xE0802080 ctl 0xE080208A bmdma 0xE0802000 irq 11
ata2: SATA max UDMA/100 cmd 0xE08020C0 ctl 0xE08020CA bmdma 0xE0802008 irq 11
ata1: dev 0 cfg 49:2f00 82:346b 83:7d01 84:4003 85:3469 86:3c01 87:4003 88:207f
ata1: dev 0 ATA, max UDMA/133, 312581808 sectors: lba48
ata1(0): applying Seagate errata fix
ata1: dev 0 configured for UDMA/100
scsi0 : sata_sil
ata2: no device found (phy stat 00000000)
scsi1 : sata_sil
Vendor: ATA Model: ST3160023AS Rev: 3.18
Type: Direct-Access ANSI SCSI revision: 05
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
SCSI device sda: drive cache: write back
sda: sda1 sda2 < sda5 sda6 sda7 sda8 sda9 >
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Can you please advise, is it Seagate mistake? (I have heared that there are some troubles with Seagate SATA disks) or is it SATA SiI 3112 error?
Can anybody with similar setup post results of hdparm -tT /dev/sda?
Thanks in advance
Bookmarks