View Single Post
Old 02-14-07, 01:55 PM   #1
floogy
Registered User
 
Join Date: Aug 2006
Posts: 34
Default 2.6.20-rt5 and libata, sata_nv and ncq patch

Hello,
My Maxtor 6Y200M0 is not very fast. Here some questions:

1. How to enable ATA passthrough (Jeff Garzik) for libata, or is it set by default? How to test that?
Code:
 sudo hdparm -I /dev/sda
gives some output. But the most of the commands are not working, e.g. accoustic Management is set to 128, but the drive supports 192. I'm not able to set it:
Code:
~/download/driver/nvidia/hdparm-6.9# sudo ./hdparm -M192 /dev/sda
/dev/sda:
 setting acoustic management to 192
 HDIO_GET_ACOUSTIC failed: Inappropriate ioctl for device
2. Did someone test the nvidia sata ncq patch? And how to apply that patch against 2.6.20-rt5?
http://lwn.net/Articles/203532/
http://linux-ata.org/driver-status.html#nvidia
http://www.kernel.org/pub/linux/kern...adma.patch.bz2
What is a newer nvidia chipset, which supports ahci? Do I have to enable sata_ahci on asus A8N-SLI deluxe mainboard?

http://linux-ata.org/faq.html#ncq
Code:
# echo 31 > /sys/block/sda/device/queue_depth
bash: /sys/block/sda/device/queue_depth: Permission denied
3. When will libata support smartmontools and vice et versa.
http://linux-ata.org/software-status.html#smart
http://smartmontools.sourceforge.net/#testinghelp
Seems to work here, but the init scripts are (older) corrupt I guess, because it fails on startup.

1. and 2. are important to speed up my harddrive Maxtor 6Y200M0 on my asus A8N-SLI Deluxe? I thought the installation of 2.6.20 would do that automagically:

Code:
~/download/driver/nvidia/hdparm-6.9$ sudo ./hdparm -tT /dev/sda
/dev/sda:
 Timing cached reads:   1146 MB in  2.00 seconds = 573.36 MB/sec
 Timing buffered disk reads:   90 MB in  3.11 seconds =  28.91 MB/sec
 [...]
 Timing buffered disk reads:  148 MB in  3.04 seconds =  48.74 MB/sec
http://www.nvnews.net/vbulletin/show...73#post1050873

On Windows I got a throughput of 95 MB/sec .
So, How to set up ncq on linux?

EDIT: Hmm, it seems, that it is enabled(?), but why is it that slow?

Code:
[   24.879482] ACPI: (supports S0 S1 S3 S4 S5)
[   24.879612] Freeing unused kernel memory: 324k freed
[   24.880247] Time: tsc clocksource has been installed.
[   24.880271] Switched to high resolution mode on CPU 0
[   24.907833] input: AT Translated Set 2 keyboard as /class/input/input0
[   24.911941] Console: switching to colour frame buffer device 128x48
[   24.932342] NFORCE-CK804: IDE controller at PCI slot 0000:00:06.0
[   24.932485] NFORCE-CK804: chipset revision 162
[   24.932557] NFORCE-CK804: not 100% native mode: will probe irqs later
[   24.932663] NFORCE-CK804: 0000:00:06.0 (rev a2) UDMA133 controller
[   24.932767]     ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA
[   24.932894]     ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA
[   24.933017] Probing IDE interface ide0...
[  106.456740] hda: HL-DT-ST DVDRAM GSA-4167B, ATAPI CD/DVD-ROM drive
[  106.763949] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[  106.764076] Probing IDE interface ide1...
[  107.435743] hdc: -DT-ST DVDRAM GSA-4167B, ATAPI CD/DVD-ROM drive
[  107.742478] ide1 at 0x170-0x177,0x376 on irq 15
[  107.749033] SCSI subsystem initialized
[  107.752739] libata version 2.00 loaded.
[  107.756446] sata_nv 0000:00:07.0: version 3.2
[  107.756948] ACPI: PCI Interrupt Link [APSI] enabled at IRQ 23
[  107.757052] ACPI: PCI Interrupt 0000:00:07.0[A] -> Link [APSI] -> GSI 23 (level, low) -> IRQ 23
[  107.757201] sata_nv 0000:00:07.0: Using ADMA mode
[  107.757285] PCI: Setting latency timer of device 0000:00:07.0 to 64
[  107.757345] ata1: SATA max UDMA/133 cmd 0xFFFFC20000002480 ctl 0xFFFFC200000024A0 bmdma 0xD800 irq 23
[  107.757530] ata2: SATA max UDMA/133 cmd 0xFFFFC20000002580 ctl 0xFFFFC200000025A0 bmdma 0xD808 irq 23
[  107.757707] scsi0 : sata_nv
[  108.060675] ata1: SATA link down (SStatus 0 SControl 300)
[  108.060767] scsi1 : sata_nv
[  108.363676] ata2: SATA link down (SStatus 0 SControl 300)
[  108.364195] ACPI: PCI Interrupt Link [APSJ] enabled at IRQ 22
[  108.366084] ACPI: PCI Interrupt 0000:00:08.0[A] -> Link [APSJ] -> GSI 22 (level, low) -> IRQ 22
[  108.368100] sata_nv 0000:00:08.0: Using ADMA mode
[  108.370154] PCI: Setting latency timer of device 0000:00:08.0 to 64
[  108.370197] ata3: SATA max UDMA/133 cmd 0xFFFFC20000004480 ctl 0xFFFFC200000044A0 bmdma 0xC400 irq 22
[  108.372472] ata4: SATA max UDMA/133 cmd 0xFFFFC20000004580 ctl 0xFFFFC200000045A0 bmdma 0xC408 irq 22
[  108.374741] scsi2 : sata_nv
[  119.877746] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[  119.882811] ata3.00: ATA-7, max UDMA/133, 398297088 sectors: LBA48
[  119.885305] ata3.00: ata3: dev 0 multi count 1
[  119.890808] ata3.00: configured for UDMA/133
[  119.893374] scsi3 : sata_nv
[  120.198732] ata4: SATA link down (SStatus 0 SControl 300)
[  120.201481] scsi 2:0:0:0: Direct-Access     ATA      Maxtor 6Y200M0   YAR5 PQ: 0 ANSI: 5
[  120.204316] ata3: bounce limit 0xFFFFFFFFFFFFFFFF, segment boundary 0xFFFFFFFF, hw segs 61
[  120.210833] SCSI device sda: 398297088 512-byte hdwr sectors (203928 MB)
[  120.213884] sda: Write Protect is off
[  120.216933] sda: Mode Sense: 00 3a 00 00
[  120.216946] SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  120.220221] SCSI device sda: 398297088 512-byte hdwr sectors (203928 MB)
[  120.223515] sda: Write Protect is off
[  120.226843] sda: Mode Sense: 00 3a 00 00
[  120.226854] SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  120.230371]  sda: sda1 sda2 sda3 < sda5 sda6 sda7 sda8 sda9 sda10 sda11 >
[  120.361311] sd 2:0:0:0: Attached scsi disk sda
floogy is offline   Reply With Quote