Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261215AbVBMNjW (ORCPT ); Sun, 13 Feb 2005 08:39:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261213AbVBMNjV (ORCPT ); Sun, 13 Feb 2005 08:39:21 -0500 Received: from imap.gmx.net ([213.165.64.20]:30375 "HELO mail.gmx.net") by vger.kernel.org with SMTP id S261252AbVBMNgk (ORCPT ); Sun, 13 Feb 2005 08:36:40 -0500 X-Authenticated: #8956447 Subject: [Problem] slow write to dvd-ram since 2.6.7-bk8 From: Droebbel To: linux-kernel@vger.kernel.org Content-Type: text/plain Date: Sun, 13 Feb 2005 14:36:34 +0100 Message-Id: <1108301794.9280.18.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.1.5 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 28829 Lines: 701 On recent kernels, writing to DVD-RAM is much slower than to be expected. A 3x Writer should do about 1.9MB/s including automatic verify. This is what I get with 2.6.7 up to bk7. However, from 2.6.7-bk8 to 2.6.10 write speed is as low as 600 to 1000 kB/s. The drive's head jumps a lot more with these kernels. Reading is ok. I tested UDF and ext2 filesystems, DMA is ok according to hdparm, I set taskfile-io on and off when building the kernels, and I compared the settings for the io-scheduler. The drive is connected via onboard via82xx ide or usb2 external (both works perfectly with hd). The drive is a LG GSA-4163B; a GSA-4120 had the same problem as far as I remember. Medium: Panasonic 3x Could not find any kernel error messages. For testing the 2.6.7-bk2 to bk14 I took the cdrom.c from bk15, as the cdrom devices wer marked read-only without. As I am not a programmer, I failed to track down the problem any further, but I'll do my best if I get any hints or advice where to search. David -------------- **hdparm output:** Model=HL-DT-ST DVDRAM GSA-4163B, FwRev=A101, SerialNo=K764C241904 Config={ Fixed 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=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio3 pio4 DMA modes: mdma0 mdma1 mdma2 UDMA modes: udma0 udma1 *udma2 AdvancedPM=no Drive conforms to: device does not report version: * signifies the current active mode ATAPI CD-ROM, with removable media Model Number: HL-DT-ST DVDRAM GSA-4163B Serial Number: K764C241904 Firmware Revision: A101 Standards: Likely used CD-ROM ATAPI-1 Configuration: DRQ response: 50us. Packet size: 12 bytes Capabilities: LBA, IORDY(can be disabled) DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2 Cycle time: min=120ns recommended=120ns PIO: pio0 pio1 pio2 pio3 pio4 Cycle time: no flow control=120ns IORDY flow control=120ns HW reset results: CBLID- above Vih Device num = 0 ----------------- Additional information: **Output of ver_linux on the testing system with 2.6.7-bk8:** Linux schlupp 2.6.7-bk8 #6 Sat Feb 12 22:28:31 CET 2005 i686 GNU/Linux Gnu C 3.3.5 Gnu make 3.80 binutils 2.15 util-linux 2.12p mount 2.12p module-init-tools 3.1 e2fsprogs 1.35 jfsutils 1.1.6 xfsprogs 2.6.20 PPP 2.4.2 Linux C Library 2.3.2 Dynamic linker (ldd) 2.3.2 Procps 3.2.4 Net-tools 1.60 Console-tools 0.2.3 Sh-utils 5.2.1 Modules Loaded ehci_hcd uhci_hcd sata_via libata md dm_mod parport_pc lp parport sr_mod --------------- **ioports** 0000-001f : dma1 0020-0021 : pic1 0040-005f : timer 0060-006f : keyboard 0070-0077 : rtc 0080-008f : dma page reg 00a0-00a1 : pic2 00c0-00df : dma2 00f0-00ff : fpu 0170-0177 : ide1 01f0-01f7 : ide0 02f8-02ff : serial 0376-0376 : ide1 03c0-03df : vga+ 03f6-03f6 : ide0 03f8-03ff : serial 0808-080b : ACPI timer 0810-0815 : ACPI CPU throttle 0cf8-0cff : PCI conf1 b000-b0ff : 0000:00:0e.0 b400-b407 : 0000:00:0e.0 b800-b81f : 0000:00:10.0 b800-b81f : uhci_hcd c000-c01f : 0000:00:10.1 c000-c01f : uhci_hcd c400-c41f : 0000:00:10.2 c400-c41f : uhci_hcd c800-c81f : 0000:00:10.3 c800-c81f : uhci_hcd cc00-cc7f : 0000:00:07.0 d000-d0ff : 0000:00:0f.0 d000-d0ff : sata_via d400-d40f : 0000:00:0f.0 d400-d40f : sata_via d800-d803 : 0000:00:0f.0 d800-d803 : sata_via dc00-dcff : 0000:00:0a.0 e000-e007 : 0000:00:0f.0 e000-e007 : sata_via e400-e403 : 0000:00:0f.0 e400-e403 : sata_via e800-e807 : 0000:00:0f.0 e800-e807 : sata_via ec00-ecff : 0000:00:0c.0 fc00-fc0f : 0000:00:0f.1 fc00-fc07 : ide0 fc08-fc0f : ide1 ----------------- **iomem** 00000000-0009fbff : System RAM 0009fc00-0009ffff : reserved 000a0000-000bffff : Video RAM area 000c0000-000cb7ff : Video ROM 000f0000-000fffff : System ROM 00100000-1ff2ffff : System RAM 00100000-0035f07d : Kernel code 0035f07e-004413ff : Kernel data 1ff30000-1ff3ffff : ACPI Tables 1ff40000-1ffeffff : ACPI Non-volatile Storage 1fff0000-1fffffff : reserved e4e00000-f4dfffff : PCI Bus #01 e8000000-efffffff : 0000:01:00.0 f4f00000-f70fffff : PCI Bus #01 f6000000-f6ffffff : 0000:01:00.0 f7700000-f77007ff : 0000:00:07.0 f7b00000-f7b03fff : 0000:00:0a.0 f7d00000-f7d000ff : 0000:00:0c.0 f7e00000-f7e000ff : 0000:00:0e.0 f7f00000-f7f000ff : 0000:00:10.4 f7f00000-f7f000ff : ehci_hcd f8000000-fbffffff : 0000:00:00.0 fff80000-ffffffff : reserved ----------------- **lspci** 0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8385 [K8T800 AGP] Host Bridge (rev 01) Subsystem: Asustek Computer, Inc.: Unknown device 80a3 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI bridge [K8T800 South] (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- Reset- FastB2B- Capabilities: 0000:00:07.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80) (prog-if 10 [OHCI]) Subsystem: Asustek Computer, Inc.: Unknown device 808a Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 0000:00:0a.0 Ethernet controller: Marvell Technology Group Ltd. Yukon Gigabit Ethernet 10/100/1000Base-T Adapter (rev 13) Subsystem: Asustek Computer, Inc.: Unknown device 811a Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- 0000:00:0c.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) Subsystem: Realtek Semiconductor Co., Ltd. RT8139 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- 0000:00:0e.0 Communication controller: Lucent Microelectronics 56k WinModem (rev 01) Subsystem: Lucent Microelectronics LT WinModem 56k Data+Fax +Voice+Dsvd Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- 0000:00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA RAID Controller (rev 80) Subsystem: Asustek Computer, Inc. A7V600 motherboard Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- 0000:00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) (prog-if 8a [Master SecP PriP]) Subsystem: Asustek Computer, Inc. A7V600 motherboard Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- 0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) (prog-if 00 [UHCI]) Subsystem: Asustek Computer, Inc. A7V600 motherboard Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 0000:00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) (prog-if 00 [UHCI]) Subsystem: Asustek Computer, Inc. A7V600 motherboard Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 0000:00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) (prog-if 00 [UHCI]) Subsystem: Asustek Computer, Inc. A7V600 motherboard Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 0000:00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) (prog-if 00 [UHCI]) Subsystem: Asustek Computer, Inc. A7V600 motherboard Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 0000:00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86) (prog-if 20 [EHCI]) Subsystem: Asustek Computer, Inc. A7V600 motherboard Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [K8T800 South] Subsystem: Asustek Computer, Inc. A7V600 motherboard Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 0000:00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- 0000:00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- dm@schlupp:~$ sudo lspci -vvv 0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8385 [K8T800 AGP] Host Bridge (rev 01) Subsystem: Asustek Computer, Inc.: Unknown device 80a3 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- Reset- FastB2B- Capabilities: [80] Power Management version 2 Flags: PMEClk- DSI- D1+ D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 0000:00:07.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80) (prog-if 10 [OHCI]) Subsystem: Asustek Computer, Inc.: Unknown device 808a Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR-