Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* turning on DMA for DS10 hard drive?
@ 2000-09-18  3:30 Jason Stratos Papadopoulos
  2000-09-22  4:00 ` Serguei Patchkovskii
  0 siblings, 1 reply; 8+ messages in thread
From: Jason Stratos Papadopoulos @ 2000-09-18  3:30 UTC (permalink / raw)


Hello. In the course of running lmbench on a DS10 I noticed that the
transfer rate from the hard drive was very low. After some investigation I
found that kernel 2.2.16 doesn't turn on DMA for the particular hard drive
I have.

The computer came with a Fujitsu MPD3108AT 10GB drive. Fujitsu's specs
for the drive state a transfer rate of 14-26MB/s, and that the drive
supports both ATA-33 and ATA-66. I'm seeing 2.3 MB/s right now; by
comparison, the 366MHz Celeron sitting next to it and running kernel
2.0.36 manages almost 12 MB/s on the same test.

What gives? Does the Tsunami chipset support any of this fancy DMA
stuff? Is there anything I can do to get better bandwidth out of this
drive?

Thanks in advance,
jasonp


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: turning on DMA for DS10 hard drive?
  2000-09-18  3:30 turning on DMA for DS10 hard drive? Jason Stratos Papadopoulos
@ 2000-09-22  4:00 ` Serguei Patchkovskii
  2000-09-23  6:45   ` Jason Stratos Papadopoulos
  0 siblings, 1 reply; 8+ messages in thread
From: Serguei Patchkovskii @ 2000-09-22  4:00 UTC (permalink / raw)


Jason Stratos Papadopoulos (jasonp@z.glue.umd.edu) wrote:
: Is there anything I can do to get better bandwidth out of this drive?

You can try fiddling with some of the IDE parameters using /sbin/hdparm;
it may be a good idea to make sure you have an up-to-date backup first.

/Serge.P

---
Home page: http://www.cobalt.chem.ucalgary.ca/ps/



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: turning on DMA for DS10 hard drive?
  2000-09-23  6:45   ` Jason Stratos Papadopoulos
  2000-09-23  4:00     ` Serguei Patchkovskii
@ 2000-09-23  4:00     ` sideband
  2000-09-23  4:00       ` Jason Stratos Papadopoulos
  1 sibling, 1 reply; 8+ messages in thread
From: sideband @ 2000-09-23  4:00 UTC (permalink / raw)


Sounds like you don't have the right IDE controller compiled into your
kernel. do a cat /proc/pci and see what chipset comes up. Write that
down, then turn that option on in the kernel, recompile, install and
reboot.

That SHOULD fix the problem.

What platform is this on again?

-SSB

On or about 23 Sep 2000 06:45:14 GMT, Jason Stratos Papadopoulos
<jasonp@z.glue.umd.edu>, using the forum comp.os.linux.alpha did say:

:Serguei Patchkovskii <patchkov@acs1.acs.ucalgary.ca> wrote:
:: Jason Stratos Papadopoulos (jasonp@z.glue.umd.edu) wrote:
:: : Is there anything I can do to get better bandwidth out of this drive?
:
:: You can try fiddling with some of the IDE parameters using /sbin/hdparm;
:: it may be a good idea to make sure you have an up-to-date backup first.
:
:Well, the IDE docs stated that it's safe to try turning on DMA from 
:the command line, so I tried that. "hdparm -d1" responded with permission
:denied. The hdparm manpage describes other flags that make more sweeping
:changes, but I'm reluctant to try them (for obvious reasons).
:
:At bootup, dmesg has a few lines about IDE, something like
:
:PCI_IDE: Unknown IDE controller on PCI bus 00 device 68, VID=10b9,...
:PCI_IDE: not 100% native mode, will probe irq's later
:PCI_IDE: simplex device, DMA disabled 
:ide0: PCI_IDE Bus-Master DMA disabled (BIOS)
:PCI_IDE: simplex device, DMA disabled 
:ide1: PCI_IDE Bus-Master DMA disabled (BIOS)
:
:The kernel source was no help in determining what this means. Does Ultra
:DMA require a special connector on the motherboard, or will a normal IDE
:connector allow it? Maybe another possibility is that the unknown DMA
:controller makes the kernel back off (the Celeron I mentioned before that
:has DMA turned on also has a controller that linux recognizes).
:
:Thanks,
:jasonp




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: turning on DMA for DS10 hard drive?
  2000-09-23  4:00     ` sideband
@ 2000-09-23  4:00       ` Jason Stratos Papadopoulos
  0 siblings, 0 replies; 8+ messages in thread
From: Jason Stratos Papadopoulos @ 2000-09-23  4:00 UTC (permalink / raw)


sideband <sideband@cac.net> wrote:
: Sounds like you don't have the right IDE controller compiled into your
: kernel. do a cat /proc/pci and see what chipset comes up. Write that
: down, then turn that option on in the kernel, recompile, install and
: reboot.

: That SHOULD fix the problem.

: What platform is this on again?

This is a brand new DS10; it came with RedHat 6.2 but I subsequently
switched kernels from 2.2.14 to 2.2.16 (neither managed DMA). The bootup
messages correctly identify the Tsunami chipset.

/proc/pci says the IDE interface is an Acer Labs M5229 TXpro. The comments
in the kernel source seem to imply the TX chipset is supported, but the
Acer controller isn't mentioned by name. Likewise, the kernel config 
menus don't mention anything by Acer under IDE stuff.

hdparm -i gives this for the drive:
 
/dev/hda:
 
 Model=FUJITSU MPD3108AT, FwRev=DD-25-04, SerialNo=33054060
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
 BuffType=0(?), BuffSize=512kB, MaxMultSect=16, MultSect=off
 DblWordIO=no, OldPIO=2, DMA=yes, OldDMA=0
 CurCHS=16383/16/63, CurSects=-66060037, LBA=yes, LBAsects=19541088
 tDMA={min:120,rec:120}, DMA modes: mword0 mword1 *mword2 
 IORDY=yes, tPIO={min:120,w/IORDY:120}, PIO modes: mode3 mode4 
 UDMA modes: mode0 mode1 mode2 mode3 mode4 

Can anyone tell if the drive configuration has a problem? PIO doesn't
seem to be turned on, but is "mword2" the same as "mode2", which the
source implies is needed?

Thanks,
jasonp



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: turning on DMA for DS10 hard drive?
  2000-09-23  6:45   ` Jason Stratos Papadopoulos
@ 2000-09-23  4:00     ` Serguei Patchkovskii
  2000-09-23  4:00       ` Jason Stratos Papadopoulos
  2000-09-23  4:00     ` sideband
  1 sibling, 1 reply; 8+ messages in thread
From: Serguei Patchkovskii @ 2000-09-23  4:00 UTC (permalink / raw)


Jason Stratos Papadopoulos (jasonp@z.glue.umd.edu) wrote:
: Well, the IDE docs stated that it's safe to try turning on DMA from 
: the command line, so I tried that. "hdparm -d1" responded with permission
: denied. 

Forgive me for asking a stupid question, but you _did_ run hdparm as root,
right?

/Serge.P

---
Home page: http://www.cobalt.chem.ucalgary.ca/ps/



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: turning on DMA for DS10 hard drive?
  2000-09-23  4:00     ` Serguei Patchkovskii
@ 2000-09-23  4:00       ` Jason Stratos Papadopoulos
  2000-09-23  4:00         ` Jason Stratos Papadopoulos
  0 siblings, 1 reply; 8+ messages in thread
From: Jason Stratos Papadopoulos @ 2000-09-23  4:00 UTC (permalink / raw)


Serguei Patchkovskii <patchkov@acs1.acs.ucalgary.ca> wrote:
: Jason Stratos Papadopoulos (jasonp@z.glue.umd.edu) wrote:
: : Well, the IDE docs stated that it's safe to try turning on DMA from 
: : the command line, so I tried that. "hdparm -d1" responded with permission
: : denied. 

: Forgive me for asking a stupid question, but you _did_ run hdparm as root,
: right?

Yup. The version I have won't let you open /dev/hd<anything> otherwise.

I should have been more specific; hdparm tried to set the DMA bit and the
kernel denied the operation. The message was

HDIO_SET_DMA failed: Operation not permitted

jasonp



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: turning on DMA for DS10 hard drive?
  2000-09-23  4:00       ` Jason Stratos Papadopoulos
@ 2000-09-23  4:00         ` Jason Stratos Papadopoulos
  0 siblings, 0 replies; 8+ messages in thread
From: Jason Stratos Papadopoulos @ 2000-09-23  4:00 UTC (permalink / raw)


Jason Stratos Papadopoulos <jasonp@z.glue.umd.edu> wrote:

: I should have been more specific; hdparm tried to set the DMA bit and the
: kernel denied the operation. The message was

: HDIO_SET_DMA failed: Operation not permitted


Problem solved...turns out that a recent kernel patch was required for
generic DMA support. A surprising number of posts in
comp.os.linux.hardware have the same problem (including one guy who had
the same complaints about the same IDE controller). I got my copy of the
patch from www.linux-ide.org; a few recompiles later I'm getting 15.1 MB/s
instead of 2.3

The system is noticeably more responsive now!

Thanks everybody,
jasonp



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: turning on DMA for DS10 hard drive?
  2000-09-22  4:00 ` Serguei Patchkovskii
@ 2000-09-23  6:45   ` Jason Stratos Papadopoulos
  2000-09-23  4:00     ` Serguei Patchkovskii
  2000-09-23  4:00     ` sideband
  0 siblings, 2 replies; 8+ messages in thread
From: Jason Stratos Papadopoulos @ 2000-09-23  6:45 UTC (permalink / raw)


Serguei Patchkovskii <patchkov@acs1.acs.ucalgary.ca> wrote:
: Jason Stratos Papadopoulos (jasonp@z.glue.umd.edu) wrote:
: : Is there anything I can do to get better bandwidth out of this drive?

: You can try fiddling with some of the IDE parameters using /sbin/hdparm;
: it may be a good idea to make sure you have an up-to-date backup first.

Well, the IDE docs stated that it's safe to try turning on DMA from 
the command line, so I tried that. "hdparm -d1" responded with permission
denied. The hdparm manpage describes other flags that make more sweeping
changes, but I'm reluctant to try them (for obvious reasons).

At bootup, dmesg has a few lines about IDE, something like

PCI_IDE: Unknown IDE controller on PCI bus 00 device 68, VID=10b9,...
PCI_IDE: not 100% native mode, will probe irq's later
PCI_IDE: simplex device, DMA disabled 
ide0: PCI_IDE Bus-Master DMA disabled (BIOS)
PCI_IDE: simplex device, DMA disabled 
ide1: PCI_IDE Bus-Master DMA disabled (BIOS)

The kernel source was no help in determining what this means. Does Ultra
DMA require a special connector on the motherboard, or will a normal IDE
connector allow it? Maybe another possibility is that the unknown DMA
controller makes the kernel back off (the Celeron I mentioned before that
has DMA turned on also has a controller that linux recognizes).

Thanks,
jasonp


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2000-09-23  6:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-18  3:30 turning on DMA for DS10 hard drive? Jason Stratos Papadopoulos
2000-09-22  4:00 ` Serguei Patchkovskii
2000-09-23  6:45   ` Jason Stratos Papadopoulos
2000-09-23  4:00     ` Serguei Patchkovskii
2000-09-23  4:00       ` Jason Stratos Papadopoulos
2000-09-23  4:00         ` Jason Stratos Papadopoulos
2000-09-23  4:00     ` sideband
2000-09-23  4:00       ` Jason Stratos Papadopoulos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox