Skip to contentSkip to conversation

Burning a CD image slow down my connection

DISCUSSION [A]ndy80 10 participants 12 messages Sep 25, 2001

lore
Share & tools
lore

[A]ndy80

author
#0 lore raw

Hi

If, (for example), I'm downloading a file at 4 k/s and then I start to burn an image, some files or other thing from my HD to a CD-R, the connection speed goes to 0,1 or 1 k/s max.

This happen since 2.4.x kernel series.

Signature · 3 lines
 [A]ndy80 - [email protected]

GPG Key: http://www.ptlug.org/andy80_key.asc
#1 lore raw
Quoted 5 lines

If, (for example), I'm downloading a file at 4 k/s and then I start to burn an image, some files or other thing from my HD to a CD-R, the connection speed goes to 0,1 or 1 k/s max.

This happen since 2.4.x kernel series.

Make sure you have DMA enabled for your IDE cd-rom or ide unmasking enabled for it (see man hdparm)

#2 lore raw

Hi

Quoted 1 line

Make sure you have DMA enabled for your IDE cd-rom or ide unmasking

enabled

Quoted 1 line

for it (see man hdparm)

these are my settings for my 2 HD:

hdparm -c 1 -d 1 -k 1 /dev/hda
hdparm -c 1 -d 1 -k 1 /dev/hdb

I've my Plextor Writer as secondary master seen as a scsi device and if I try do use hdparm it says:

[root@piccoli shady]# hdparm -t /dev/cdrom
/dev/cdrom not supported by hdparm

What else ahve I to enable?

--
[A]ndy80 - [email protected]

#3 lore raw
Quoted 5 lines · On 25 Sep 2001, [A]ndy80 wrote:

I've my Plextor Writer as secondary master seen as a scsi device and if I try do use hdparm it says:

[root@piccoli shady]# hdparm -t /dev/cdrom
/dev/cdrom not supported by hdparm

Hmm, /dev/cdrom would typically be a link. You might try to apply hdparm to where the link points to, but I cannot really believe hdparm doesn't follow links.

Normally /dev/cdrom should point to /dev/hdc in your case. I somewhat suspect that it points to /dev/scd0. If so, can you actually mount the cdrom? The ide2scsi device emulation basically just passes scsi commands as atapi commands over the ide bus (since atapi just use the scsi commands but tunnel them over ide). I'm surprised this also works for cdroms. I wasn't aware of the fact they are ATAPI and thus support the scsi command set. Maybe the cdwriters are special in that context.

Anyway, you'll have to point hdparm to the ide device for your writer/cdrom.

Michael.

--

Michael Weller: [email protected], [email protected], or even [email protected]. If you encounter an eowmob account on any machine in the net, it's very likely it's me.

#4 lore raw
Quoted 11 lines · Dr. Michael Weller
Quoted 5 lines · On 25 Sep 2001, [A]ndy80 wrote:

I've my Plextor Writer as secondary master seen as a scsi device and if I try do use hdparm it says:

[root@piccoli shady]# hdparm -t /dev/cdrom
/dev/cdrom not supported by hdparm

Hmm, /dev/cdrom would typically be a link. You might try to apply hdparm to where the link points to, but I cannot really believe hdparm doesn't follow links.

Quoted 8 lines

Normally /dev/cdrom should point to /dev/hdc in your case. I somewhat suspect that it points to /dev/scd0. If so, can you actually mount the cdrom? The ide2scsi device emulation basically just passes scsi commands as atapi commands over the ide bus (since atapi just use the scsi commands but tunnel them over ide). I'm surprised this also works for cdroms. I wasn't aware of the fact they are ATAPI and thus support the scsi command set. Maybe the cdwriters are special in that context.

My DVD-ROM drive and Plextor PlexWriter CD-RW drive both function under the idescsi emulation driver. *All* current IDE CD writers are ATAPI and REQUIRE idescsi (or in windows, an ASPI layer) in order to be used as a cd writer.

#5 lore raw
In reply to Dr. Michael Weller

Hi

Quoted 3 lines

Hmm, /dev/cdrom would typically be a link. You might try to apply hdparm to where the link points to, but I cannot really believe hdparm doesn't follow links.

yes it's a link to /dev/scd0 and I CAN mount it, because my IDE cdrom is seen as scsi. In lilo.conf I've this line: append="hdd=ide-scsi hdc=ide-scsi" (read CD-WRITING HOWTO for more information)

#6 lore raw
Quoted 9 lines · On 25 Sep 2001, [A]ndy80 wrote:

Hi

Quoted 3 lines

Hmm, /dev/cdrom would typically be a link. You might try to apply hdparm to where the link points to, but I cannot really believe hdparm doesn't follow links.

yes it's a link to /dev/scd0 and I CAN mount it, because my IDE cdrom is seen as scsi. In lilo.conf I've this line: append="hdd=ide-scsi hdc=ide-scsi" (read CD-WRITING HOWTO for more information)

Ok, so you should run hdparm on /dev/hdc in your case (master on second bus). You can not expect (well, actually, why not?). hdparm to realite this is no real scsi device and figure out the right ide device to configure the drive interface accordingly.

BTW, with regards to your last mesg: I'm well aware you need the ide-scsi layer and generic scsi devices for ide burners.

However, you can mount /dev/hdc directly for ide cdroms.

So, I was wondering if all (well, most) ide cdroms are atapi and the kernel cleverly realizes you address a cdrom as /dev/hdc and just uses those atapi commands and that means, as far as cdroms go, the ide-scsi part is always embedded in the /dev/hd driver.

OR

if, as I assumed up to now, ide cdroms have a specific CDROM commandset, maybe just support disk drive style read commands to access the cd data, such that using ide-scsi and accessing as /dev/scd0 will not always work. And if so, ide burners might be special since the are used to be addressed through an aspi driver anyway.

Michael.

--

Michael Weller: [email protected], [email protected], or even [email protected]. If you encounter an eowmob account on any machine in the net, it's very likely it's me.

#7 lore raw
In reply to Dr. Michael Weller
Quoted 9 lines · On Tue, Sep 25, 2001 at 02:24:54PM +0200, [A]ndy80 wrote:

Hi

Quoted 3 lines

Hmm, /dev/cdrom would typically be a link. You might try to apply hdparm to where the link points to, but I cannot really believe hdparm doesn't follow links.

yes it's a link to /dev/scd0 and I CAN mount it, because my IDE cdrom is seen as scsi. In lilo.conf I've this line: append="hdd=ide-scsi hdc=ide-scsi" (read CD-WRITING HOWTO for more information)

Try appending ide1=dma to the boot options then. It might break on your machine, so first try manually.

Regards,

Signature · 3 lines
Kurt Garloff  <[email protected]>                          Eindhoven, NL
GPG key: See mail header, key servers         Linux kernel development
SuSE GmbH, Nuernberg, DE                                SCSI, Security
#8 lore raw
In reply to Alan Cox

Since you use the scsi emulation for your writer you need to use hdparm on the original ide device that you passed to the emulation rather than the emulated scsi device.
eg use hdparm -whatever /dev/hdc
and not hdparm -whatever /dev/scd0 or /dev/cdrom

Quoted 5 lines · On Tuesday 25 September 2001 12:13, [A]ndy80 wrote:

Hi
[root@piccoli shady]# hdparm -t /dev/cdrom
/dev/cdrom not supported by hdparm

What else ahve I to enable?

#9 lore raw
In reply to Alan Cox
Quoted 1 line · On Tue, Sep 25, 2001 at 12:13:16PM +0200, [A]ndy80 wrote:

hdparm -c 1 -d 1 -k 1 /dev/hda

"-u 1" helps here (I am connected to Net by serial port)

#10 lore raw
In reply to [A]ndy80
Quoted 2 lines

Hi

Aren't you connected over a serial port (modem)? I have the same problem, but not when burning an image, but when dumping long cunks of data from CD (for example, when studying a content of audio CD). I just see a big packet loss.

Clock

#11 lore raw
In reply to [A]ndy80
Quoted 4 lines · Karel Kulhavy

Aren't you connected over a serial port (modem)? I have the same problem, but not when burning an image, but when dumping long cunks of data from CD (for example, when studying a content of audio CD). I just see a big packet loss.

That's definitely DMA related. I have an old cdwriter that don't understands it and so the whole bus is extremely busy during writing. Even my harddisk is very slow as well as modem and other things. PCI and ISA cards seem not related. (Send packets over tr0 && eth0 without any loss.)

Kristian

·· · · reach me :: · ·· ·· · · ·· · ·· · ··· · ·

                         :: http://www.korseby.net
                         :: http://www.tomlab.de

[email protected] ....::