You are not logged in.

#1 2008-05-31 11:52:55

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

[SOLVED] System unresponsive while using cd-rom

When I build my initrd with pata instead of ide, my system gets very unresponsive when it's reading from a cd. It happens while burning or ripping a cd, watching a dvd, ... When I use the old ide system all acts normal. I have an ide cd-rom drive from NEC.
The cpu load doesn't seem extraordinary high, but everything lags (like my mouse cursor) and programs act very slow.
I don't really know what to do, anyone got an idea about solving this?

Last edited by Ramses de Norre (2008-08-12 19:09:37)

Offline

#2 2008-06-01 18:06:23

mrbug
Member
Registered: 2007-07-17
Posts: 221

Re: [SOLVED] System unresponsive while using cd-rom

Do you have it attached to a RAID IDE channel? I had the same problem with my old ASUS motherboard... Switching it to a regular IDE channel fixed the problem.


dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)

Offline

#3 2008-06-01 19:13:43

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] System unresponsive while using cd-rom

No, it is on a regular ide port and it is the only one on that port. It used to work perfectly with kernels <= 2.6.23, also with the pata implementations of those kernels.

Offline

#4 2008-06-03 01:33:57

mrbug
Member
Registered: 2007-07-17
Posts: 221

Re: [SOLVED] System unresponsive while using cd-rom

Hmm.. Not really sure what to say other than to try to load the module ata_piix. Is pata still available in the newer kernels?

Ah, do you have DMA enabled through hdparm/sdparm?

http://gentoo-wiki.com/HOWTO_Use_hdparm … erformance


dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)

Offline

#5 2008-06-03 11:10:55

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] System unresponsive while using cd-rom

It seems like DMA is enabled:

sudo hdparm -i /dev/sr0

/dev/sr0:

 Model=_NEC DVD_RW ND-3530A                    , FwRev=2.01    , SerialNo=                    
 Config={ Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=0kB, MaxMultSect=0
 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
 IORDY=yes, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 *udma2 
 AdvancedPM=no

 * signifies the current active mode

I don't know if any of the other numbers are strange (e.g. BuffSize=0kB, the drive is spinning constantly while trying to watch a dvd).

And these ata modules are loaded:

lsmod|grep ata
pata_atiixp             5760  2 
sata_sil                8456  4 
pata_acpi               4992  0 
libata                141840  3 pata_atiixp,sata_sil,pata_acpi
scsi_mod               92204  5 usb_storage,sr_mod,sg,sd_mod,libata
dock                    7952  2 bay,libata

I have also got another ide hard drive and a sata one in my system, in case that's relevant.
I tried loading ata_piix but video is still very stuttering, the drive is also very slow:

sudo hdparm -tT /dev/sr0

/dev/sr0:
 Timing cached reads:    20 MB in  2.00 seconds =   9.99 MB/sec
 Timing buffered disk reads:    4 MB in  3.75 seconds =   1.07 MB/sec

And my system is very unresponsive while doing that test.

Offline

#6 2008-06-03 12:15:45

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: [SOLVED] System unresponsive while using cd-rom

what about dmesg ? does it say anything interesting about this ?

Offline

#7 2008-06-03 15:08:32

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] System unresponsive while using cd-rom

I think these are the relevant lines where my drives are being detected, I'm not so sure what to look for so I'll grep for more if someone has an idea. I also noticed that running the hdparm -tT test on my ide hard drive does not cause unresponsiveness.

SCSI subsystem initialized
libata version 3.00 loaded.
ACPI: PCI Interrupt 0000:00:11.0[A] -> GSI 23 (level, low) -> IRQ 23
ACPI: PCI interrupt for device 0000:00:11.0 disabled
ACPI: PCI Interrupt 0000:00:12.0[A] -> GSI 22 (level, low) -> IRQ 22
ACPI: PCI interrupt for device 0000:00:12.0 disabled
ACPI: PCI Interrupt 0000:00:14.1[A] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:00:14.1 to 64
ACPI: PCI interrupt for device 0000:00:14.1 disabled
sata_sil 0000:00:11.0: version 2.3 
ACPI: PCI Interrupt 0000:00:11.0[A] -> GSI 23 (level, low) -> IRQ 23
scsi0 : sata_sil
scsi1 : sata_sil
ata1: SATA max UDMA/100 mmio m512@0xff6ffc00 tf 0xff6ffc80 irq 23
ata2: SATA max UDMA/100 mmio m512@0xff6ffc00 tf 0xff6ffcc0 irq 23
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: ATA-7: WDC WD1600JS-00MHB1, 10.02E01, max UDMA/133
ata1.00: 312581808 sectors, multi 16: LBA48 
ata1.00: configured for UDMA/100
ata2: SATA link down (SStatus 0 SControl 300)
scsi 0:0:0:0: Direct-Access     ATA      WDC WD1600JS-00M 10.0 PQ: 0 ANSI: 5
ACPI: PCI Interrupt 0000:00:12.0[A] -> GSI 22 (level, low) -> IRQ 22
scsi2 : sata_sil
scsi3 : sata_sil
ata3: SATA max UDMA/100 mmio m512@0xff6ff800 tf 0xff6ff880 irq 22
ata4: SATA max UDMA/100 mmio m512@0xff6ff800 tf 0xff6ff8c0 irq 22
ata3: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
ACPI: PCI Interrupt 0000:00:14.1[A] -> GSI 16 (level, low) -> IRQ 16
scsi4 : pata_atiixp
scsi5 : pata_atiixp
ata5: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xff00 irq 14
ata6: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xff08 irq 15
ata5.00: ATA-6: ST3160021A, 8.01, max UDMA/100
ata5.00: 312581808 sectors, multi 16: LBA48 
ata5.00: configured for UDMA/100
ata6.00: ATAPI: _NEC DVD_RW ND-3530A, 2.01, max UDMA/33
ata6.00: simplex DMA is claimed by other device, disabling DMA 
ata6.00: configured for PIO4
scsi 4:0:0:0: Direct-Access     ATA      ST3160021A       8.01 PQ: 0 ANSI: 5
scsi 5:0:0:0: CD-ROM            _NEC     DVD_RW ND-3530A  2.01 PQ: 0 ANSI: 5
Driver 'sd' needs updating - please use bus_type methods
sd 0:0:0:0: [sda] 312581808 512-byte hardware sectors (160042 MB) 
sd 0:0:0:0: [sda] Write Protect is off 
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA 
sd 0:0:0:0: [sda] 312581808 512-byte hardware sectors (160042 MB) 
sd 0:0:0:0: [sda] Write Protect is off 
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA 
 sda: sda1 sda2 < sda5 > sda3 sda4
sd 0:0:0:0: [sda] Attached SCSI disk
sd 4:0:0:0: [sdb] 312581808 512-byte hardware sectors (160042 MB) 
sd 4:0:0:0: [sdb] Write Protect is off 
sd 4:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA 
sd 4:0:0:0: [sdb] 312581808 512-byte hardware sectors (160042 MB) 
sd 4:0:0:0: [sdb] Write Protect is off 
sd 4:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA 
 sdb: sdb1 sdb2 sdb3 sdb4
sd 4:0:0:0: [sdb] Attached SCSI disk

EDIT: this seems to be a relevant section:

ata6.00: ATAPI: _NEC DVD_RW ND-3530A, 2.01, max UDMA/33
ata6.00: simplex DMA is claimed by other device, disabling DMA 
ata6.00: configured for PIO4
scsi 4:0:0:0: Direct-Access     ATA      ST3160021A       8.01 PQ: 0 ANSI: 5
scsi 5:0:0:0: CD-ROM            _NEC     DVD_RW ND-3530A  2.01 PQ: 0 ANSI: 5

Last edited by Ramses de Norre (2008-06-03 15:10:30)

Offline

#8 2008-06-03 15:22:18

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: [SOLVED] System unresponsive while using cd-rom

looks quite similar to http://lkml.org/lkml/2007/10/26/335

Offline

#9 2008-06-03 15:27:26

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: [SOLVED] System unresponsive while using cd-rom

maybe try to blacklist pata_acpi to see if it helps

Offline

#10 2008-06-03 15:31:46

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] System unresponsive while using cd-rom

bangkok_manouel wrote:

They don't seem to provide a solution there, do they?

EDIT: I didn't see your second post, I'll try that, is putting it in the MODULES array in rc.conf with a "!" enough?

Last edited by Ramses de Norre (2008-06-03 15:33:55)

Offline

#11 2008-06-03 15:44:45

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: [SOLVED] System unresponsive while using cd-rom

Ramses de Norre wrote:

EDIT: I didn't see your second post, I'll try that, is putting it in the MODULES array in rc.conf with a "!" enough?

yep

Offline

#12 2008-06-03 15:46:27

mrbug
Member
Registered: 2007-07-17
Posts: 221

Re: [SOLVED] System unresponsive while using cd-rom

I bet that the 0 KB buffer is to blame. I can see why it would use all of your resources if the drive can't buffer anything! It's like running a system with low memory; the disk access would behave in a similar way.

Here is the output from my hdparm -i /dev/sr0:

/dev/sr0:

 Model=PIONEER DVD-RW  DVR-109                 , FwRev=1.58    , SerialNo=
 Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=13395, BuffSize=64kB, MaxMultSect=0
 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
 IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 *udma4
 AdvancedPM=no
 Drive conforms to: Unspecified:  ATA/ATAPI-2,3,4,5

 * signifies the current active mode

Last edited by mrbug (2008-06-03 15:48:16)


dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)

Offline

#13 2008-06-03 17:24:06

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] System unresponsive while using cd-rom

Blacklisting pata_acpi didn't help, it is loaded although I've put it in MODULES with an exclamation mark..
Any ideas how to fix the buffer thing if that can be the cause?

Offline

#14 2008-06-04 04:14:14

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: [SOLVED] System unresponsive while using cd-rom

[utmost freestyle full random mode] comment out CONFIG_PATA_ACPI in your kernel config and try to rebuild your kernel [/utmost freestyle full random mode]

Offline

#15 2008-06-04 17:32:00

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] System unresponsive while using cd-rom

That is quiet cumbersome.. recompiling the kernel every time a new one comes out. I'm still hoping some one knows a less time-expensive way of fixing this issue.

Offline

#16 2008-06-04 17:38:21

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: [SOLVED] System unresponsive while using cd-rom

strange that this module couldn't be blacklisted (well, we're not even sure it is guilty but looks suspicious anyway), did you see it used by any other module in lsmod? oh and out of curiosity, do you have any modules in mkinitcpio.conf ?

Offline

#17 2008-06-04 17:44:42

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] System unresponsive while using cd-rom

It think libata uses it, but the man page is too lazy to describe what the fields mean:

lsmod|grep pata_acpi
pata_acpi               4992  0
libata                141840  3 pata_atiixp,sata_sil,pata_acpi

My mkinitcpio.conf is quite standard:

MODULES=""
BINARIES=""
FILES=""
HOOKS="base udev autodetect pata scsi sata filesystems"

I'm not sure what the scsi hook does, it was there by default.

Offline

#18 2008-06-04 17:52:40

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: [SOLVED] System unresponsive while using cd-rom

just saw that you can append disablemodules=module to your kernel command line, fancy a reboot wink ?

Offline

#19 2008-06-05 11:00:41

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] System unresponsive while using cd-rom

bangkok_manouel wrote:

just saw that you can append disablemodules=module to your kernel command line, fancy a reboot wink ?

The pata_acpi module seems to be quiet necessary, my root device is not created without it:p I was dropped into a ramfs shell when I added a disablemodules line for it. This cd-rom thing is a nasty bug..

Last edited by Ramses de Norre (2008-06-05 11:01:11)

Offline

#20 2008-06-14 16:19:59

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] System unresponsive while using cd-rom

Sorry for bumping this, but I have no clue how to solve this annoying problem... I think the problem lies in my cd-rom drive's buffer being at 0KB, is this changeable anywhere?

Offline

#21 2008-06-21 10:15:03

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] System unresponsive while using cd-rom

I'm sorry to bump this up again, but is there some other place I can go to find an answer to this issue? Is there a good forum more specific about kernel issues or something? I would really like to fix this... And since NEC drives appear to be well supported by linux I assume just buying another drive isn't the best solution.

Offline

#22 2008-06-28 20:28:09

xlnz
Member
Registered: 2008-06-28
Posts: 6

Re: [SOLVED] System unresponsive while using cd-rom

bump.
i am also having the saime issue.

Offline

#23 2008-08-12 19:09:18

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] System unresponsive while using cd-rom

The problem seems to be solved with the 2.6.26 kernel, I didn't had the chance to do firm speed tests yet but watching DVD's goes without stuttering now:) The error about DMA being disabled has disappeared too.

Offline

Board footer

Powered by FluxBB