Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* no hdparm -d1 (dma) after software raid comes up.
@ 2000-11-18  4:41 Robert Williams
  0 siblings, 0 replies; only message in thread
From: Robert Williams @ 2000-11-18  4:41 UTC (permalink / raw)
  To: axp-list

I had dma turned on for my ide devices
until I finally got software raid to work.
Now both ide disks that are not part of the
raid, and those that are, have dma turned off.

[root@rw /etc]# /sbin/hdparm -t /dev/hda
/dev/hda:
 Timing buffered disk reads:  64 MB in 17.85 seconds =  3.58 MB/sec
(where it was about 25 MB/sec with dma on).

What could have gone wrong?
Is there something I can use to investigate?

Now I get:
[root@rw /etc]# /sbin/hdparm /dev/hdb

/dev/hdb:
 multcount    =  0 (off)
 I/O support  =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 nowerr       =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 4982/255/63, sectors = 80041248, start = 0
[root@rw /etc]# /sbin/hdparm -d1 /dev/hdb

/dev/hdb:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma    =  0 (off)

[root@rw /etc]# grep -i dma /usr/src/linux/.config
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_AUTO=y
# CONFIG_SCSI_EATA_DMA is not set
CONFIG_SOUND_DMAP=y

[for an ide raid 0 set:]
[root@rw /etc]# /sbin/hdparm /dev/md3
/dev/md3:
 BLKROGET failed: Invalid argument
 geometry     = 52608/2/4, sectors = 127298560, start = 0

[for a scsi raid 1 set: ]
[root@rw /etc]# /sbin/hdparm /dev/md1
/dev/md1:
 BLKROGET failed: Invalid argument
 geometry     = 1824/2/4, sectors = 4208896, start = 0

[even the ide device that is not part of the raid:]
[root@rw /etc]# /sbin/hdparm /dev/hda

/dev/hda:
 multcount    =  0 (off)
 I/O support  =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 nowerr       =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 26310/16/63, sectors = 26520480, start = 0
[root@rw /etc]# /sbin/hdparm -d1m1 /dev/hda

/dev/hda:
 setting multcount to 1
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 multcount    =  1 (on)
 using_dma    =  0 (off)
[root@rw /etc]# /sbin/hdparm /dev/hda

/dev/hda:
 multcount    =  1 (on)
 I/O support  =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 nowerr       =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 26310/16/63, sectors = 26520480, start = 0
[root@rw /etc]#

--
Bob Williams, http://bob.usuf2.usuhs.mil/






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-11-18  4:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-18  4:41 no hdparm -d1 (dma) after software raid comes up Robert Williams

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