Re: [gentoo-user] Howto get nvidia serial ATA with DMA running

2007-04-18 Thread Matthias Fechner
Hello Daniel,

* Daniel Iliev [EMAIL PROTECTED] [17-04-07 15:22]:
 May be it's a io-scheduling issue. This topic from the forums
 could be helpful: http://forums.gentoo.org/viewtopic-t-462230.html

thx, that helps a lot. Now I can trottle high volume copy operations.

Best regards,
Matthias

-- 

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning. --
Rich Cook
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Howto get nvidia serial ATA with DMA running

2007-04-17 Thread Matthias Fechner
Hi,

I have here an AMD64 (32-bit installation) with a MSI K8N-Neo2FX
running.
Gentoo is installed on a serial ATA drive.
lspci says:
00:09.0 IDE interface: nVidia Corporation CK8S Serial ATA Controller (v2.5) 
(rev a2)
00:0a.0 IDE interface: nVidia Corporation CK8S Serial ATA Controller (v2.5) 
(rev a2)
00:0b.0 PCI bridge: nVidia Corporation nForce3 250Gb AGP Host to PCI Bridge 
(rev a2)
00:0e.0 PCI bridge: nVidia Corporation nForce3 250Gb PCI-to-PCI Bridge (rev a2)

I i try now to enable DMA transfer with:
hdparm -d1 /dev/sda
/dev/sda:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Inappropriate ioctl for device

So my first thought was, check kernel for the right driver.
But nv_sata is selected (statically).

I checked dmesg and found:
nv_sata: Primary device added
nv_sata: Primary device removed
nv_sata: Secondary device removed
ata1: dev 0 configured for UDMA/133
scsi0 : sata_nv
ata2: SATA link down (SStatus 0)
scsi1 : sata_nv
  Vendor: ATA   Model: ST3250820NS   Rev: 3.AE
  Type:   Direct-Access  ANSI SCSI revision: 05
SCSI device sda: 488397168 512-byte hdwr sectors (250059 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
SCSI device sda: 488397168 512-byte hdwr sectors (250059 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
 sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: Attached scsi disk sda

I boot my system with grub and had the option from the installer
doscsi in the boot params.

Must I use a different driver for that sata controller?

Thx a lot for help,
Matthias

-- 

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning. --
Rich Cook
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Howto get nvidia serial ATA with DMA running

2007-04-17 Thread Hemmann, Volker Armin
Hi,

On Dienstag, 17. April 2007, Matthias Fechner wrote:
 Hi,

 I have here an AMD64 (32-bit installation) with a MSI K8N-Neo2FX
 running.
 Gentoo is installed on a serial ATA drive.
 lspci says:
 00:09.0 IDE interface: nVidia Corporation CK8S Serial ATA Controller (v2.5)
 (rev a2) 00:0a.0 IDE interface: nVidia Corporation CK8S Serial ATA
 Controller (v2.5) (rev a2) 00:0b.0 PCI bridge: nVidia Corporation nForce3
 250Gb AGP Host to PCI Bridge (rev a2) 00:0e.0 PCI bridge: nVidia
 Corporation nForce3 250Gb PCI-to-PCI Bridge (rev a2)

 I i try now to enable DMA transfer with:
 hdparm -d1 /dev/sda
 /dev/sda:
  setting using_dma to 1 (on)
  HDIO_SET_DMA failed: Inappropriate ioctl for device

which is correct. You don't set dma for SATA devices and you don't do it with 
hdparm.


 So my first thought was, check kernel for the right driver.
 But nv_sata is selected (statically).

 I checked dmesg and found:
 nv_sata: Primary device added
 nv_sata: Primary device removed
 nv_sata: Secondary device removed
 ata1: dev 0 configured for UDMA/133

as you can see, it uses udma/133 already.

 scsi0 : sata_nv
 ata2: SATA link down (SStatus 0)
 scsi1 : sata_nv
   Vendor: ATA   Model: ST3250820NS   Rev: 3.AE
   Type:   Direct-Access  ANSI SCSI revision: 05
 SCSI device sda: 488397168 512-byte hdwr sectors (250059 MB)
 sda: Write Protect is off
 sda: Mode Sense: 00 3a 00 00
 SCSI device sda: drive cache: write back
 SCSI device sda: 488397168 512-byte hdwr sectors (250059 MB)
 sda: Write Protect is off
 sda: Mode Sense: 00 3a 00 00
 SCSI device sda: drive cache: write back
  sda: sda1 sda2 sda3 sda4
 sd 0:0:0:0: Attached scsi disk sda

 I boot my system with grub and had the option from the installer
 doscsi in the boot params.

 Must I use a different driver for that sata controller?

No.
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Howto get nvidia serial ATA with DMA running

2007-04-17 Thread Matthias Fechner
Hello Volker,

* Hemmann, Volker Armin [EMAIL PROTECTED] [17-04-07 10:11]:
 which is correct. You don't set dma for SATA devices and you don't do it with 
 hdparm.

ah ok, thx for that information.
But I have a problem. If I copy some data on disks the system is at a
very high load and extremely slow (load at 2.5).

If I record movies with VDR every recording is damaged (distortions).

So I thought it is a problem of missing DMA.

Is the SATA driver so bad and produces a such high CPU load?

Best regards,
Matthias

-- 

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning. --
Rich Cook
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Howto get nvidia serial ATA with DMA running

2007-04-17 Thread Hemmann, Volker Armin
On Dienstag, 17. April 2007, Matthias Fechner wrote:
 Hello Volker,

 * Hemmann, Volker Armin [EMAIL PROTECTED] [17-04-07 
10:11]:
  which is correct. You don't set dma for SATA devices and you don't do it
  with hdparm.

 ah ok, thx for that information.
 But I have a problem. If I copy some data on disks the system is at a
 very high load and extremely slow (load at 2.5).

 If I record movies with VDR every recording is damaged (distortions).

 So I thought it is a problem of missing DMA.

 Is the SATA driver so bad and produces a such high CPU load?

Dunno, I am recording fine and sata is fast (uli based board, jmicron 
controller). There is a lot of stuff that can go wrong. IO-scheduler (which 
one are you using), preemption (don't use forced preemption), ticks... 

The lower the latency, the lower the troughput, for example
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Howto get nvidia serial ATA with DMA running

2007-04-17 Thread Daniel Iliev
On Tue, 17 Apr 2007 12:37:28 +0200
Matthias Fechner [EMAIL PROTECTED] wrote:

 Hello Volker,
 
 * Hemmann, Volker Armin [EMAIL PROTECTED]
 [17-04-07 10:11]:
  which is correct. You don't set dma for SATA devices and you don't
  do it with hdparm.
 
 ah ok, thx for that information.
 But I have a problem. If I copy some data on disks the system is at a
 very high load and extremely slow (load at 2.5).
 
 If I record movies with VDR every recording is damaged (distortions).
 
 So I thought it is a problem of missing DMA.
 
 Is the SATA driver so bad and produces a such high CPU load?
 
 Best regards,
 Matthias
 

May be it's a io-scheduling issue. This topic from the forums
could be helpful: http://forums.gentoo.org/viewtopic-t-462230.html

-- 
Best regards,
Daniel

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Howto get nvidia serial ATA with DMA running

2007-04-17 Thread Jerry McBride
On Tuesday 17 April 2007 08:22:23 am Daniel Iliev wrote:
 On Tue, 17 Apr 2007 12:37:28 +0200

 May be it's a io-scheduling issue. This topic from the forums
 could be helpful: http://forums.gentoo.org/viewtopic-t-462230.html


Daniel... the post you made wasn't directed tome, but I benefited from it 
greatly. Thanks for the info...


-- 


Jerry McBride
-- 
[EMAIL PROTECTED] mailing list