* IDE I/O slows down 164SX to a crawl
@ 1999-10-12 6:40 Danilo Godec
1999-10-12 6:49 ` krebs
0 siblings, 1 reply; 4+ messages in thread
From: Danilo Godec @ 1999-10-12 6:40 UTC (permalink / raw)
To: axp-list
Hi!
Everytime I do some 'heavy' IDE I/O like copying CD image to disk ('cp
/dev/cdrom image_file'), my 164SX starts crawling (issuing 'ls -al' takes
about a minute to perform). Is this normal?
D.
PS: 164SX 533 MHz, 64 MB RAM, all IDE (cdrom and writer use ide-scsi
emulation), 2.2.13pre14 kernel.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: IDE I/O slows down 164SX to a crawl
1999-10-12 6:40 IDE I/O slows down 164SX to a crawl Danilo Godec
@ 1999-10-12 6:49 ` krebs
1999-10-12 9:30 ` Danilo Godec
0 siblings, 1 reply; 4+ messages in thread
From: krebs @ 1999-10-12 6:49 UTC (permalink / raw)
To: axp-list
this is normal as long as you use PIO mode to access ide.
that's the reason why i wrote an dma driver for the SX's ide chip
cypress CY82C693. the driver is part of the offical IDE kernel
patches you can get them from
ftp://ftp.kernel.org/pub/linux/kernel/people/hedrick/
or one of it's mirrors.
so apply the patch enable the CY82C693 support rebuild the kernel,
reboot and use hdparm to make sure DMA is enabled. you can also
use hdparm to try different setting to find out what's the best
for you cdrom and/or harddisks.
Andreas
> Everytime I do some 'heavy' IDE I/O like copying CD image to disk ('cp
> /dev/cdrom image_file'), my 164SX starts crawling (issuing 'ls -al' takes
> about a minute to perform). Is this normal?
>
> D.
>
> PS: 164SX 533 MHz, 64 MB RAM, all IDE (cdrom and writer use ide-scsi
> emulation), 2.2.13pre14 kernel.
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
--
_____________________________________________________________________________
Andreas S. Krebs
CEC Karlsruhe, SAP AG, krebs@qkal.sap-ag.de
_____________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: IDE I/O slows down 164SX to a crawl
1999-10-12 6:49 ` krebs
@ 1999-10-12 9:30 ` Danilo Godec
1999-10-12 11:51 ` krebs
0 siblings, 1 reply; 4+ messages in thread
From: Danilo Godec @ 1999-10-12 9:30 UTC (permalink / raw)
To: axp-list
On Tue, 12 Oct 1999 krebs@qkal.sap-ag.de wrote:
> this is normal as long as you use PIO mode to access ide.
> that's the reason why i wrote an dma driver for the SX's ide chip
> cypress CY82C693. the driver is part of the offical IDE kernel
> patches you can get them from
>
> ftp://ftp.kernel.org/pub/linux/kernel/people/hedrick/
Actually, I do use those patches, but they don't seem to do the trick for
me.
Here is how my IDE devices are setup (hdparm complains some with cd-roms,
but still manages to turn on the DMA):
[/root]# hdparm /dev/hda
/dev/hda:
multcount = 1 (on)
I/O support = 1 (32-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
nowerr = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 8894/15/63, sectors = 8404830, start = 0
[/root]# hdparm /dev/hdb
/dev/hdb:
HDIO_GET_MULTCOUNT failed: Input/output error
I/O support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
HDIO_GET_NOWERR failed: Input/output error
readonly = 0 (off)
BLKRAGET failed: Input/output error
HDIO_GETGEO failed: Invalid argument
(/dev/hdc is another cd-rom, having exactly the same settings as /dev/hdb)
Maybe the problem is in using ide-scsi emulation? If I don't load the
ide-scsi module, I cannot use hdparm on /dev/hdb and /dev/hdc. And maybe,
when the ide-scsi module is loaded, hdparm doesn't REALLY switch the
cd-roms to DMA?
Any further ideas?
D.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: IDE I/O slows down 164SX to a crawl
1999-10-12 9:30 ` Danilo Godec
@ 1999-10-12 11:51 ` krebs
0 siblings, 0 replies; 4+ messages in thread
From: krebs @ 1999-10-12 11:51 UTC (permalink / raw)
To: axp-list
i don't use the ide-scsi emulation, but since i don't have an ide cdrom
i don't know if you really need them. maybe somebody else can answer
that question.
one other thing, somebody reported, was a problem with cdroms and an
incorrect ide bus speed parameter - have you set the idebus=33
kernel parameter, if not make sure to set it. cause otherwise the
timing parameters for the ide chip may cause problems.
> Here is how my IDE devices are setup (hdparm complains some with cd-roms,
> but still manages to turn on the DMA):
>
> [/root]# hdparm /dev/hda
>
> /dev/hda:
> multcount = 1 (on)
> I/O support = 1 (32-bit)
> unmaskirq = 0 (off)
> using_dma = 1 (on)
> keepsettings = 0 (off)
> nowerr = 0 (off)
> readonly = 0 (off)
> readahead = 8 (on)
> geometry = 8894/15/63, sectors = 8404830, start = 0
>
> [/root]# hdparm /dev/hdb
>
> /dev/hdb:
> HDIO_GET_MULTCOUNT failed: Input/output error
> I/O support = 1 (32-bit)
> unmaskirq = 1 (on)
> using_dma = 1 (on)
> keepsettings = 0 (off)
> HDIO_GET_NOWERR failed: Input/output error
> readonly = 0 (off)
> BLKRAGET failed: Input/output error
> HDIO_GETGEO failed: Invalid argument
>
>
> (/dev/hdc is another cd-rom, having exactly the same settings as /dev/hdb)
>
> Maybe the problem is in using ide-scsi emulation? If I don't load the
> ide-scsi module, I cannot use hdparm on /dev/hdb and /dev/hdc. And maybe,
> when the ide-scsi module is loaded, hdparm doesn't REALLY switch the
> cd-roms to DMA?
>
> Any further ideas?
>
> D.
>
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
--
_____________________________________________________________________________
Andreas S. Krebs
CEC Karlsruhe, SAP AG, krebs@qkal.sap-ag.de
_____________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1999-10-12 11:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-12 6:40 IDE I/O slows down 164SX to a crawl Danilo Godec
1999-10-12 6:49 ` krebs
1999-10-12 9:30 ` Danilo Godec
1999-10-12 11:51 ` krebs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox