* 2.6.x: iowait problem while burning a CD
@ 2004-02-27 17:02 Paolo Ornati
2004-02-28 0:18 ` Rik van Riel
0 siblings, 1 reply; 9+ messages in thread
From: Paolo Ornati @ 2004-02-27 17:02 UTC (permalink / raw)
To: linux-kernel
Hi,
[hoping that my English is comprehensible...]
trying to burn a CD "on the fly" I have noticed a strange thing. During the
burning "iowait" remains enough low (~3%, MAX 10%) but, after a little
time, it suddenly and quickly goes up to 80-90%: in this condition MKFS
seems unable to fill the FIFO buffer as quickly as the CD-writer writes
--> so the amount of data in the buffer is in "free fall" and sometime the
buffer becomes empty (in this case I must thank the BurnFree technology ;)
After this peak IOWAIT returns on reasonable values, the buffer is filled up
and all work fine until IOWAIT goes up newly.
KERNEL: 2.6.3 (but I see this also on 2.6.0.... so I think it affects all
2.6.x kernels)
Cdrecord 2.00.3
K3B 0.11.5
MINIMAL-CONFIG is appended (I have tried to disable CONFIG_PREEMPT and this
seems to reduce the problem, but doesn't eliminate it)
Any ideas?
#
# Automatically generated make config: don't edit
#
CONFIG_X86=y
CONFIG_MMU=y
CONFIG_UID16=y
CONFIG_GENERIC_ISA_DMA=y
#
# Code maturity level options
#
# CONFIG_EXPERIMENTAL is not set
CONFIG_CLEAN_COMPILE=y
CONFIG_STANDALONE=y
CONFIG_BROKEN_ON_SMP=y
#
# General setup
#
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_SYSCTL=y
CONFIG_LOG_BUF_SHIFT=14
# CONFIG_IKCONFIG is not set
# CONFIG_EMBEDDED is not set
CONFIG_KALLSYMS=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
#
# Loadable module support
#
# CONFIG_MODULES is not set
#
# Processor type and features
#
CONFIG_X86_PC=y
# CONFIG_X86_VOYAGER is not set
# CONFIG_X86_NUMAQ is not set
# CONFIG_X86_SUMMIT is not set
# CONFIG_X86_BIGSMP is not set
# CONFIG_X86_VISWS is not set
# CONFIG_X86_GENERICARCH is not set
# CONFIG_X86_ES7000 is not set
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_MPENTIUMII is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
CONFIG_MK7=y
# CONFIG_MK8 is not set
# CONFIG_MELAN is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
# CONFIG_X86_GENERIC is not set
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_L1_CACHE_SHIFT=6
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_INTEL_USERCOPY=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_X86_USE_3DNOW=y
# CONFIG_HPET_TIMER is not set
# CONFIG_HPET_EMULATE_RTC is not set
# CONFIG_SMP is not set
CONFIG_PREEMPT=y
# CONFIG_X86_UP_APIC is not set
CONFIG_X86_TSC=y
# CONFIG_X86_MCE is not set
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
# CONFIG_MICROCODE is not set
CONFIG_X86_MSR=y
CONFIG_X86_CPUID=y
CONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
# CONFIG_MATH_EMULATION is not set
CONFIG_MTRR=y
CONFIG_HAVE_DEC_LOCK=y
#
# Power management options (ACPI, APM)
#
# CONFIG_PM is not set
#
# ACPI (Advanced Configuration and Power Interface) Support
#
# CONFIG_ACPI is not set
#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set
#
# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
#
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GODIRECT is not set
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
# CONFIG_PCI_LEGACY_PROC is not set
CONFIG_PCI_NAMES=y
# CONFIG_ISA is not set
# CONFIG_MCA is not set
# CONFIG_SCx200 is not set
# CONFIG_HOTPLUG is not set
#
# Executable file formats
#
CONFIG_BINFMT_ELF=y
# CONFIG_BINFMT_AOUT is not set
# CONFIG_BINFMT_MISC is not set
#
# Device Drivers
#
#
# Generic Driver Options
#
#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set
#
# Parallel port support
#
# CONFIG_PARPORT is not set
#
# Plug and Play support
#
#
# Block devices
#
CONFIG_BLK_DEV_FD=y
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
CONFIG_BLK_DEV_LOOP=y
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_BLK_DEV_INITRD is not set
# CONFIG_LBD is not set
#
# ATA/ATAPI/MFM/RLL support
#
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y
#
# Please see Documentation/ide.txt for help/info on IDE drives
#
# CONFIG_BLK_DEV_HD_IDE is not set
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
# CONFIG_IDEDISK_STROKE is not set
CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_IDE_TASK_IOCTL is not set
#
# IDE chipset support/bugfixes
#
CONFIG_IDE_GENERIC=y
# CONFIG_BLK_DEV_CMD640 is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
# CONFIG_BLK_DEV_OFFBOARD is not set
CONFIG_BLK_DEV_GENERIC=y
# CONFIG_BLK_DEV_RZ1000 is not set
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
CONFIG_BLK_DEV_ADMA=y
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_TRIFLEX is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_SC1200 is not set
# CONFIG_BLK_DEV_PIIX is not set
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_PDC202XX_OLD is not set
# CONFIG_BLK_DEV_PDC202XX_NEW is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIIMAGE is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
CONFIG_BLK_DEV_VIA82CXXX=y
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_DMA_NONPCI is not set
# CONFIG_BLK_DEV_HD is not set
#
# SCSI device support
#
# CONFIG_SCSI is not set
#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set
#
# Fusion MPT device support
#
#
# I2O device support
#
# CONFIG_I2O is not set
#
# Macintosh device drivers
#
#
# Networking support
#
CONFIG_NET=y
#
# Networking options
#
CONFIG_PACKET=y
CONFIG_PACKET_MMAP=y
# CONFIG_NETLINK_DEV is not set
CONFIG_UNIX=y
# CONFIG_NET_KEY is not set
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
# CONFIG_IP_PNP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_INET_ECN is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set
# CONFIG_DECNET is not set
# CONFIG_BRIDGE is not set
# CONFIG_NETFILTER is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_LLC2 is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
#
# QoS and/or fair queueing
#
# CONFIG_NET_SCHED is not set
#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_NETDEVICES is not set
#
# Amateur Radio support
#
# CONFIG_HAMRADIO is not set
#
# IrDA (infrared) support
#
# CONFIG_IRDA is not set
#
# Bluetooth support
#
# CONFIG_BT is not set
#
# ISDN subsystem
#
# CONFIG_ISDN_BOOL is not set
#
# Telephony Support
#
# CONFIG_PHONE is not set
#
# Input device support
#
CONFIG_INPUT=y
#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_TSDEV is not set
# CONFIG_INPUT_EVDEV is not set
# CONFIG_INPUT_EVBUG is not set
#
# Input I/O drivers
#
# CONFIG_GAMEPORT is not set
CONFIG_SOUND_GAMEPORT=y
CONFIG_SERIO=y
CONFIG_SERIO_I8042=y
# CONFIG_SERIO_SERPORT is not set
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_PCIPS2 is not set
#
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_NEWTON is not set
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=y
# CONFIG_MOUSE_SERIAL is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set
#
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
# CONFIG_SERIAL_NONSTANDARD is not set
#
# Serial drivers
#
# CONFIG_SERIAL_8250 is not set
#
# Non-8250 serial port support
#
# CONFIG_UNIX98_PTYS is not set
#
# Mice
#
# CONFIG_BUSMOUSE is not set
# CONFIG_QIC02_TAPE is not set
#
# IPMI
#
# CONFIG_IPMI_HANDLER is not set
#
# Watchdog Cards
#
# CONFIG_WATCHDOG is not set
# CONFIG_HW_RANDOM is not set
# CONFIG_NVRAM is not set
# CONFIG_RTC is not set
# CONFIG_GEN_RTC is not set
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
#
# Ftape, the floppy tape device driver
#
# CONFIG_FTAPE is not set
# CONFIG_AGP is not set
# CONFIG_DRM is not set
# CONFIG_MWAVE is not set
# CONFIG_RAW_DRIVER is not set
# CONFIG_HANGCHECK_TIMER is not set
#
# I2C support
#
# CONFIG_I2C is not set
#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set
#
# Digital Video Broadcasting Devices
#
# CONFIG_DVB is not set
#
# Graphics support
#
# CONFIG_FB is not set
# CONFIG_VIDEO_SELECT is not set
#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
# CONFIG_MDA_CONSOLE is not set
CONFIG_DUMMY_CONSOLE=y
#
# Sound
#
# CONFIG_SOUND is not set
#
# USB support
#
# CONFIG_USB is not set
#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set
#
# File systems
#
CONFIG_EXT2_FS=y
# CONFIG_EXT2_FS_XATTR is not set
# CONFIG_EXT3_FS is not set
# CONFIG_JBD is not set
CONFIG_REISERFS_FS=y
# CONFIG_REISERFS_CHECK is not set
# CONFIG_REISERFS_PROC_INFO is not set
# CONFIG_JFS_FS is not set
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_QUOTA is not set
# CONFIG_AUTOFS_FS is not set
# CONFIG_AUTOFS4_FS is not set
#
# CD-ROM/DVD Filesystems
#
CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
# CONFIG_ZISOFS is not set
# CONFIG_UDF_FS is not set
#
# DOS/FAT/NT Filesystems
#
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
# CONFIG_NTFS_FS is not set
#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_TMPFS=y
# CONFIG_HUGETLBFS is not set
# CONFIG_HUGETLB_PAGE is not set
CONFIG_RAMFS=y
#
# Miscellaneous filesystems
#
# CONFIG_CRAMFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
#
# Network File Systems
#
# CONFIG_NFS_FS is not set
# CONFIG_NFSD is not set
# CONFIG_EXPORTFS is not set
# CONFIG_SMB_FS is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not set
CONFIG_MSDOS_PARTITION=y
#
# Native Language Support
#
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-1"
CONFIG_NLS_CODEPAGE_437=y
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
# CONFIG_NLS_CODEPAGE_850 is not set
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not set
CONFIG_NLS_ISO8859_1=y
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not set
# CONFIG_NLS_ISO8859_15 is not set
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not set
# CONFIG_NLS_UTF8 is not set
#
# Kernel hacking
#
CONFIG_DEBUG_KERNEL=y
# CONFIG_DEBUG_STACKOVERFLOW is not set
# CONFIG_DEBUG_SLAB is not set
# CONFIG_DEBUG_IOVIRT is not set
CONFIG_MAGIC_SYSRQ=y
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_PAGEALLOC is not set
# CONFIG_DEBUG_INFO is not set
CONFIG_DEBUG_SPINLOCK_SLEEP=y
# CONFIG_FRAME_POINTER is not set
#
# Security options
#
# CONFIG_SECURITY is not set
#
# Cryptographic options
#
# CONFIG_CRYPTO is not set
#
# Library routines
#
CONFIG_CRC32=y
CONFIG_X86_BIOS_REBOOT=y
CONFIG_PC=y
--
Paolo Ornati
Linux v2.6.3
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.6.x: iowait problem while burning a CD
2004-02-27 17:02 2.6.x: iowait problem while burning a CD Paolo Ornati
@ 2004-02-28 0:18 ` Rik van Riel
2004-02-28 9:14 ` Paolo Ornati
2004-02-28 22:39 ` 2.6.x: iowait problem while burning a CD Bill Davidsen
0 siblings, 2 replies; 9+ messages in thread
From: Rik van Riel @ 2004-02-28 0:18 UTC (permalink / raw)
To: Paolo Ornati; +Cc: linux-kernel
On Fri, 27 Feb 2004, Paolo Ornati wrote:
> trying to burn a CD "on the fly" I have noticed a strange thing. During the
> burning "iowait" remains enough low (~3%, MAX 10%) but, after a little
> time, it suddenly and quickly goes up to 80-90%: in this condition MKFS
> seems unable to fill the FIFO buffer as quickly as the CD-writer writes
> Any ideas?
At that point, mkisofs is probably running into a bazillion
small files, in subdirectories all over the place.
Because a disk seek + track read takes 10ms, it's simply not
possible to read more than maybe 100 of these small files a
second, so mkisofs can't keep up.
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.6.x: iowait problem while burning a CD
2004-02-28 0:18 ` Rik van Riel
@ 2004-02-28 9:14 ` Paolo Ornati
2004-02-28 14:52 ` Alex Bennee
2004-02-28 22:39 ` 2.6.x: iowait problem while burning a CD Bill Davidsen
1 sibling, 1 reply; 9+ messages in thread
From: Paolo Ornati @ 2004-02-28 9:14 UTC (permalink / raw)
To: Rik van Riel; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 17524 bytes --]
On Saturday 28 February 2004 01:18, Rik van Riel wrote:
> On Fri, 27 Feb 2004, Paolo Ornati wrote:
> > trying to burn a CD "on the fly" I have noticed a strange thing. During
> > the burning "iowait" remains enough low (~3%, MAX 10%) but, after a
> > little time, it suddenly and quickly goes up to 80-90%: in this
> > condition MKFS seems unable to fill the FIFO buffer as quickly as the
> > CD-writer writes
> >
> > Any ideas?
>
> At that point, mkisofs is probably running into a bazillion
> small files, in subdirectories all over the place.
>
> Because a disk seek + track read takes 10ms, it's simply not
> possible to read more than maybe 100 of these small files a
> second, so mkisofs can't keep up.
No... mkfs is reading only ONE big file ( ~ 700 MB )!
And my system shouldn't be so slow:
CPU: AMD Duron 750
RAM: 128 MB PC100
HD: 7200 RPM udma 4
File System: ResiserFS
The last time I wrote a CD I got this:
___________________________________________________________________________
System
-----------------------
K3b Version: 0.11.5
KDE Version: 3.1.4
QT Version: 3.2.1
cdrecord
-----------------------
scsidev: '/dev/hdc'
devname: '/dev/hdc'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
TOC Type: 1 = CD-ROM
Using libscg version 'schily-0.7'
Driveropts: 'burnfree'
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'HL-DT-ST'
Identifikation : 'CD-RW GCE-8400B '
Revision : '1.03'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : MMC-2 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1962752 = 1916 KB
FIFO size : 4194304 = 4096 KB
Track 01: data 700 MB
Total size: 804 MB (79:41.01) = 358576 sectors
Lout start: 804 MB (79:43/01) = 358576 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 4
Is not unrestricted
Is not erasable
Disk sub type: Medium Type A, high Beta category (A+) (3)
ATIP start of lead in: -11849 (97:24/01)
ATIP start of lead out: 359847 (79:59/72)
Disk type: Long strategy type (Cyanine, AZO or similar)
Manuf. index: 25
Manufacturer: Taiyo Yuden Company Limited
Blocks total: 359847 Blocks current: 359847 Blocks remaining: 1271
Starting to write CD/DVD at speed 32 in real SAO mode for single session.
Last chance to quit, starting real write in 2 seconds.
1 seconds.
0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
BURN-Free is OFF.
Turning BURN-Free on
Performing OPC...
Sending CUE sheet...
/usr/bin/cdrecord: WARNING: Drive returns wrong startsec (0) using -150
Writing pregap for track 1 at -150
Starting new track at sector: 0
Track 01: 0 of 700 MB written.
Track 01: 1 of 700 MB written (fifo 96%) [buf 98%] 2.4x.
Track 01: 2 of 700 MB written (fifo 100%) [buf 99%] 0.8x.
Track 01: 3 of 700 MB written (fifo 100%) [buf 99%] 20.8x.
Track 01: 4 of 700 MB written (fifo 100%) [buf 99%] 20.2x.
Track 01: 5 of 700 MB written (fifo 98%) [buf 99%] 20.9x.
Track 01: 6 of 700 MB written (fifo 100%) [buf 99%] 20.2x.
Track 01: 7 of 700 MB written (fifo 100%) [buf 99%] 21.0x.
Track 01: 8 of 700 MB written (fifo 100%) [buf 99%] 20.4x.
Track 01: 9 of 700 MB written (fifo 100%) [buf 99%] 21.0x.
Track 01: 10 of 700 MB written (fifo 100%) [buf 99%] 20.4x.
Track 01: 11 of 700 MB written (fifo 98%) [buf 99%] 21.1x.
Track 01: 12 of 700 MB written (fifo 100%) [buf 99%] 20.5x.
Track 01: 13 of 700 MB written (fifo 100%) [buf 99%] 21.2x.
Track 01: 14 of 700 MB written (fifo 100%) [buf 99%] 20.6x.
Track 01: 15 of 700 MB written (fifo 100%) [buf 99%] 21.3x.
Track 01: 16 of 700 MB written (fifo 100%) [buf 99%] 20.7x.
Track 01: 17 of 700 MB written (fifo 100%) [buf 99%] 21.4x.
Track 01: 18 of 700 MB written (fifo 98%) [buf 99%] 20.8x.
Track 01: 19 of 700 MB written (fifo 100%) [buf 99%] 21.5x.
Track 01: 20 of 700 MB written (fifo 100%) [buf 99%] 20.8x.
Track 01: 21 of 700 MB written (fifo 100%) [buf 99%] 3.7x.
Track 01: 22 of 700 MB written (fifo 100%) [buf 99%] 16.2x.
[....] OK
Track 01: 169 of 700 MB written (fifo 96%) [buf 99%] 16.3x. <---- ;-(
Track 01: 170 of 700 MB written (fifo 79%) [buf 99%] 16.8x.
Track 01: 171 of 700 MB written (fifo 65%) [buf 99%] 16.3x.
Track 01: 172 of 700 MB written (fifo 50%) [buf 99%] 16.8x.
Track 01: 173 of 700 MB written (fifo 26%) [buf 99%] 16.2x.
Track 01: 174 of 700 MB written (fifo 17%) [buf 99%] 16.7x.
Track 01: 175 of 700 MB written (fifo 4%) [buf 99%] 16.2x.
Track 01: 176 of 700 MB written (fifo 1%) [buf 35%] 7.4x.
Track 01: 177 of 700 MB written (fifo 1%) [buf 82%] 7.9x.
Track 01: 178 of 700 MB written (fifo 14%) [buf 99%] 6.2x.
Track 01: 179 of 700 MB written (fifo 1%) [buf 95%] 14.8x.
Track 01: 180 of 700 MB written (fifo 1%) [buf 56%] 9.5x.
Track 01: 181 of 700 MB written (fifo 4%) [buf 69%] 7.2x.
Track 01: 182 of 700 MB written (fifo 31%) [buf 99%] 6.1x.
Track 01: 183 of 700 MB written (fifo 32%) [buf 99%] 16.1x.
Track 01: 184 of 700 MB written (fifo 31%) [buf 99%] 16.6x.
Track 01: 185 of 700 MB written (fifo 32%) [buf 99%] 16.0x.
Track 01: 186 of 700 MB written (fifo 31%) [buf 99%] 16.5x.
Track 01: 187 of 700 MB written (fifo 26%) [buf 99%] 16.0x.
Track 01: 188 of 700 MB written (fifo 29%) [buf 99%] 16.5x.
Track 01: 189 of 700 MB written (fifo 26%) [buf 99%] 17.0x.
Track 01: 190 of 700 MB written (fifo 23%) [buf 99%] 16.4x.
Track 01: 191 of 700 MB written (fifo 23%) [buf 99%] 17.0x.
Track 01: 192 of 700 MB written (fifo 26%) [buf 99%] 16.4x.
Track 01: 193 of 700 MB written (fifo 31%) [buf 99%] 16.9x.
Track 01: 194 of 700 MB written (fifo 26%) [buf 99%] 16.4x.
Track 01: 195 of 700 MB written (fifo 31%) [buf 99%] 16.9x.
Track 01: 196 of 700 MB written (fifo 29%) [buf 99%] 16.3x.
Track 01: 197 of 700 MB written (fifo 28%) [buf 99%] 16.9x.
Track 01: 198 of 700 MB written (fifo 23%) [buf 99%] 16.3x.
Track 01: 199 of 700 MB written (fifo 23%) [buf 99%] 16.8x.
Track 01: 200 of 700 MB written (fifo 23%) [buf 99%] 16.3x.
Track 01: 201 of 700 MB written (fifo 20%) [buf 99%] 16.8x.
Track 01: 202 of 700 MB written (fifo 17%) [buf 99%] 16.3x.
Track 01: 203 of 700 MB written (fifo 14%) [buf 99%] 16.8x.
Track 01: 204 of 700 MB written (fifo 14%) [buf 99%] 16.2x.
Track 01: 205 of 700 MB written (fifo 7%) [buf 99%] 16.7x.
Track 01: 206 of 700 MB written (fifo 1%) [buf 99%] 16.2x.
Track 01: 207 of 700 MB written (fifo 7%) [buf 70%] 10.7x.
Track 01: 208 of 700 MB written (fifo 1%) [buf 75%] 17.7x.
Track 01: 209 of 700 MB written (fifo 4%) [buf 57%] 12.3x.
Track 01: 210 of 700 MB written (fifo 1%) [buf 51%] 14.7x.
Track 01: 211 of 700 MB written (fifo 4%) [buf 40%] 12.2x.
Track 01: 212 of 700 MB written (fifo 46%) [buf 93%] 6.1x.
Track 01: 213 of 700 MB written (fifo 40%) [buf 99%] 19.0x.
Track 01: 214 of 700 MB written (fifo 40%) [buf 99%] 16.1x.
Track 01: 215 of 700 MB written (fifo 37%) [buf 99%] 16.6x.
Track 01: 216 of 700 MB written (fifo 32%) [buf 99%] 16.0x.
Track 01: 217 of 700 MB written (fifo 31%) [buf 99%] 16.5x.
Track 01: 218 of 700 MB written (fifo 29%) [buf 99%] 16.0x.
Track 01: 219 of 700 MB written (fifo 26%) [buf 99%] 16.5x.
Track 01: 220 of 700 MB written (fifo 23%) [buf 99%] 17.0x.
Track 01: 221 of 700 MB written (fifo 23%) [buf 99%] 16.4x.
Track 01: 222 of 700 MB written (fifo 37%) [buf 99%] 16.9x.
Track 01: 223 of 700 MB written (fifo 62%) [buf 99%] 16.4x.
Track 01: 224 of 700 MB written (fifo 68%) [buf 99%] 16.9x.
Track 01: 225 of 700 MB written (fifo 75%) [buf 99%] 16.4x.
Track 01: 226 of 700 MB written (fifo 82%) [buf 99%] 16.9x.
Track 01: 227 of 700 MB written (fifo 90%) [buf 99%] 16.3x.
Track 01: 228 of 700 MB written (fifo 95%) [buf 99%] 16.9x.
Track 01: 229 of 700 MB written (fifo 100%) [buf 99%] 16.3x.
[....] OK
Track 01: 314 of 700 MB written (fifo 96%) [buf 99%] 16.4x.. <---- ;-(
Track 01: 315 of 700 MB written (fifo 95%) [buf 99%] 17.0x.
Track 01: 316 of 700 MB written (fifo 93%) [buf 99%] 16.4x.
Track 01: 317 of 700 MB written (fifo 92%) [buf 99%] 16.9x.
Track 01: 318 of 700 MB written (fifo 87%) [buf 99%] 16.4x.
Track 01: 319 of 700 MB written (fifo 82%) [buf 99%] 16.9x.
Track 01: 320 of 700 MB written (fifo 78%) [buf 99%] 16.3x.
Track 01: 321 of 700 MB written (fifo 71%) [buf 99%] 16.9x.
Track 01: 322 of 700 MB written (fifo 71%) [buf 99%] 16.3x.
Track 01: 323 of 700 MB written (fifo 62%) [buf 99%] 16.8x.
Track 01: 324 of 700 MB written (fifo 59%) [buf 99%] 16.3x.
Track 01: 325 of 700 MB written (fifo 46%) [buf 99%] 16.8x.
Track 01: 326 of 700 MB written (fifo 32%) [buf 99%] 16.3x.
Track 01: 327 of 700 MB written (fifo 25%) [buf 99%] 16.8x.
Track 01: 328 of 700 MB written (fifo 10%) [buf 99%] 16.2x.
Track 01: 329 of 700 MB written (fifo 10%) [buf 99%] 16.7x.
Track 01: 330 of 700 MB written (fifo 26%) [buf 99%] 16.2x.
Track 01: 331 of 700 MB written (fifo 40%) [buf 99%] 16.7x.
Track 01: 332 of 700 MB written (fifo 53%) [buf 99%] 16.2x.
Track 01: 333 of 700 MB written (fifo 65%) [buf 99%] 16.7x.
Track 01: 334 of 700 MB written (fifo 78%) [buf 99%] 16.1x.
Track 01: 335 of 700 MB written (fifo 98%) [buf 99%] 16.6x.
Track 01: 336 of 700 MB written (fifo 100%) [buf 99%] 16.1x.
[...] OK
Track 01: 343 of 700 MB written (fifo 90%) [buf 99%] 16.5x.. <---- ;-(
Track 01: 344 of 700 MB written (fifo 78%) [buf 99%] 17.0x.
Track 01: 345 of 700 MB written (fifo 65%) [buf 99%] 16.4x.
Track 01: 346 of 700 MB written (fifo 56%) [buf 99%] 17.0x.
Track 01: 347 of 700 MB written (fifo 42%) [buf 99%] 16.4x.
Track 01: 348 of 700 MB written (fifo 31%) [buf 99%] 16.9x.
Track 01: 349 of 700 MB written (fifo 17%) [buf 99%] 16.4x.
Track 01: 350 of 700 MB written (fifo 4%) [buf 99%] 16.9x.
Track 01: 351 of 700 MB written (fifo 4%) [buf 48%] 8.4x.
Track 01: 352 of 700 MB written (fifo 4%) [buf 60%] 8.6x.
Track 01: 353 of 700 MB written (fifo 20%) [buf 99%] 6.3x.
Track 01: 354 of 700 MB written (fifo 10%) [buf 99%] 16.8x.
Track 01: 355 of 700 MB written (fifo 4%) [buf 99%] 16.3x.
Track 01: 356 of 700 MB written (fifo 1%) [buf 81%] 12.3x.
Track 01: 357 of 700 MB written (fifo 1%) [buf 55%] 11.0x.
Track 01: 358 of 700 MB written (fifo 1%) [buf 79%] 10.7x.
Track 01: 359 of 700 MB written (fifo 20%) [buf 99%] 6.1x.
Track 01: 360 of 700 MB written (fifo 17%) [buf 99%] 16.7x.
Track 01: 361 of 700 MB written (fifo 7%) [buf 99%] 16.2x.
Track 01: 362 of 700 MB written (fifo 1%) [buf 99%] 16.7x.
Track 01: 363 of 700 MB written (fifo 4%) [buf 84%] 12.6x.
Track 01: 364 of 700 MB written (fifo 1%) [buf 45%] 9.5x.
Track 01: 365 of 700 MB written (fifo 1%) [buf 69%] 10.8x.
Track 01: 366 of 700 MB written (fifo 28%) [buf 99%] 5.8x.
Track 01: 367 of 700 MB written (fifo 26%) [buf 99%] 16.1x.
Track 01: 368 of 700 MB written (fifo 25%) [buf 99%] 16.6x.
Track 01: 369 of 700 MB written (fifo 29%) [buf 99%] 16.1x.
Track 01: 370 of 700 MB written (fifo 31%) [buf 99%] 16.6x.
Track 01: 371 of 700 MB written (fifo 29%) [buf 99%] 16.0x.
Track 01: 372 of 700 MB written (fifo 25%) [buf 99%] 16.5x.
Track 01: 373 of 700 MB written (fifo 32%) [buf 99%] 16.0x.
Track 01: 374 of 700 MB written (fifo 26%) [buf 99%] 16.5x.
Track 01: 375 of 700 MB written (fifo 40%) [buf 99%] 17.0x.
Track 01: 376 of 700 MB written (fifo 48%) [buf 99%] 16.4x.
Track 01: 377 of 700 MB written (fifo 56%) [buf 99%] 16.9x.
Track 01: 378 of 700 MB written (fifo 71%) [buf 99%] 16.4x.
Track 01: 379 of 700 MB written (fifo 78%) [buf 99%] 16.9x.
Track 01: 380 of 700 MB written (fifo 87%) [buf 99%] 16.4x.
Track 01: 381 of 700 MB written (fifo 98%) [buf 99%] 16.9x.
Track 01: 382 of 700 MB written (fifo 100%) [buf 99%] 16.3x.
[...] OK
Track 01: 437 of 700 MB written (fifo 98%) [buf 99%] 17.0x.. <---- ;-(
Track 01: 438 of 700 MB written (fifo 96%) [buf 99%] 16.4x.
Track 01: 439 of 700 MB written (fifo 85%) [buf 99%] 17.0x.
Track 01: 440 of 700 MB written (fifo 90%) [buf 99%] 16.4x.
Track 01: 441 of 700 MB written (fifo 78%) [buf 99%] 16.9x.
Track 01: 442 of 700 MB written (fifo 78%) [buf 99%] 16.4x.
Track 01: 443 of 700 MB written (fifo 71%) [buf 99%] 16.9x.
Track 01: 444 of 700 MB written (fifo 68%) [buf 99%] 16.4x.
Track 01: 445 of 700 MB written (fifo 62%) [buf 99%] 16.8x.
Track 01: 446 of 700 MB written (fifo 53%) [buf 99%] 16.3x.
Track 01: 447 of 700 MB written (fifo 50%) [buf 99%] 16.8x.
Track 01: 448 of 700 MB written (fifo 42%) [buf 99%] 16.3x.
Track 01: 449 of 700 MB written (fifo 40%) [buf 99%] 16.8x.
Track 01: 450 of 700 MB written (fifo 45%) [buf 99%] 16.2x.
Track 01: 451 of 700 MB written (fifo 51%) [buf 99%] 16.7x.
Track 01: 452 of 700 MB written (fifo 65%) [buf 99%] 16.2x.
Track 01: 453 of 700 MB written (fifo 76%) [buf 99%] 16.7x.
Track 01: 454 of 700 MB written (fifo 90%) [buf 99%] 16.2x.
Track 01: 455 of 700 MB written (fifo 100%) [buf 99%] 16.7x.
[....] OK
Track 01: 490 of 700 MB written (fifo 98%) [buf 99%] 16.6x.. <---- ;-(
Track 01: 491 of 700 MB written (fifo 98%) [buf 99%] 16.1x.
Track 01: 492 of 700 MB written (fifo 98%) [buf 99%] 16.6x.
Track 01: 493 of 700 MB written (fifo 95%) [buf 99%] 16.1x.
Track 01: 494 of 700 MB written (fifo 89%) [buf 99%] 16.6x.
Track 01: 495 of 700 MB written (fifo 84%) [buf 99%] 16.0x.
Track 01: 496 of 700 MB written (fifo 81%) [buf 99%] 16.5x.
Track 01: 497 of 700 MB written (fifo 71%) [buf 99%] 16.0x.
Track 01: 498 of 700 MB written (fifo 71%) [buf 99%] 16.5x.
Track 01: 499 of 700 MB written (fifo 62%) [buf 99%] 17.0x.
Track 01: 500 of 700 MB written (fifo 59%) [buf 99%] 16.4x.
Track 01: 501 of 700 MB written (fifo 53%) [buf 99%] 16.9x.
Track 01: 502 of 700 MB written (fifo 48%) [buf 99%] 16.4x.
Track 01: 503 of 700 MB written (fifo 46%) [buf 99%] 16.9x.
Track 01: 504 of 700 MB written (fifo 48%) [buf 99%] 16.4x.
Track 01: 505 of 700 MB written (fifo 50%) [buf 99%] 16.9x.
Track 01: 506 of 700 MB written (fifo 45%) [buf 99%] 16.4x.
Track 01: 507 of 700 MB written (fifo 43%) [buf 99%] 16.9x.
Track 01: 508 of 700 MB written (fifo 39%) [buf 99%] 16.3x.
Track 01: 509 of 700 MB written (fifo 37%) [buf 99%] 16.8x.
Track 01: 510 of 700 MB written (fifo 32%) [buf 99%] 16.3x.
Track 01: 511 of 700 MB written (fifo 31%) [buf 99%] 16.8x.
Track 01: 512 of 700 MB written (fifo 26%) [buf 99%] 16.3x.
Track 01: 513 of 700 MB written (fifo 28%) [buf 99%] 16.8x.
Track 01: 514 of 700 MB written (fifo 26%) [buf 99%] 16.2x.
Track 01: 515 of 700 MB written (fifo 31%) [buf 99%] 16.7x.
Track 01: 516 of 700 MB written (fifo 32%) [buf 99%] 16.2x.
Track 01: 517 of 700 MB written (fifo 31%) [buf 99%] 16.7x.
Track 01: 518 of 700 MB written (fifo 29%) [buf 99%] 16.2x.
Track 01: 519 of 700 MB written (fifo 28%) [buf 99%] 16.7x.
Track 01: 520 of 700 MB written (fifo 23%) [buf 99%] 16.1x.
Track 01: 521 of 700 MB written (fifo 28%) [buf 99%] 16.6x.
Track 01: 522 of 700 MB written (fifo 29%) [buf 99%] 16.1x.
Track 01: 523 of 700 MB written (fifo 34%) [buf 99%] 16.6x.
Track 01: 524 of 700 MB written (fifo 40%) [buf 99%] 16.1x.
Track 01: 525 of 700 MB written (fifo 43%) [buf 99%] 16.6x.
Track 01: 526 of 700 MB written (fifo 46%) [buf 99%] 16.0x.
Track 01: 527 of 700 MB written (fifo 50%) [buf 99%] 16.5x.
Track 01: 528 of 700 MB written (fifo 59%) [buf 99%] 16.0x.
Track 01: 529 of 700 MB written (fifo 71%) [buf 99%] 16.5x.
Track 01: 530 of 700 MB written (fifo 81%) [buf 99%] 17.0x.
Track 01: 531 of 700 MB written (fifo 93%) [buf 99%] 16.4x.
[.......................]
Writing time: 327.622s
Average write speed 14.8x.
Min drive buffer fill was 35%
Fixating...
Fixating time: 11.906s
/usr/bin/cdrecord: fifo had 11567 puts and 11567 gets.
/usr/bin/cdrecord: fifo was 320 times empty and 5909 times full, min fill
was 0%.
BURN-Free was 11 times used.
___________________________________________________________________________
FULL LOG is attached.
As I have already said, every time the buffer goes down I see iowait go up
to high values (70%, 80%, 90%).
All it works well if I make the ISO image before the writing process.
Bye
--
Paolo Ornati
Linux v2.6.3
[-- Attachment #2: burning.txt.gz --]
[-- Type: application/x-gzip, Size: 8588 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.6.x: iowait problem while burning a CD
2004-02-28 9:14 ` Paolo Ornati
@ 2004-02-28 14:52 ` Alex Bennee
2004-02-29 9:27 ` Paolo Ornati
0 siblings, 1 reply; 9+ messages in thread
From: Alex Bennee @ 2004-02-28 14:52 UTC (permalink / raw)
To: Paolo Ornati; +Cc: Rik van Riel, Linux Mailing List
On Sat, 2004-02-28 at 09:14, Paolo Ornati wrote:
> On Saturday 28 February 2004 01:18, Rik van Riel wrote:
> > On Fri, 27 Feb 2004, Paolo Ornati wrote:
> > > trying to burn a CD "on the fly" I have noticed a strange thing. During
> > > the burning "iowait" remains enough low (~3%, MAX 10%) but, after a
> > > little time, it suddenly and quickly goes up to 80-90%: in this
> > > condition MKFS seems unable to fill the FIFO buffer as quickly as the
> > > CD-writer writes
> > >
> > > Any ideas?
> >
> > At that point, mkisofs is probably running into a bazillion
> > small files, in subdirectories all over the place.
> >
> > Because a disk seek + track read takes 10ms, it's simply not
> > possible to read more than maybe 100 of these small files a
> > second, so mkisofs can't keep up.
>
> No... mkfs is reading only ONE big file ( ~ 700 MB )!
>
> And my system shouldn't be so slow:
>
> CPU: AMD Duron 750
> RAM: 128 MB PC100
> HD: 7200 RPM udma 4
> File System: ResiserFS
Could this be related to your low(ish) physical memory and the need swap
stuff in and out? Maybe you could look at the vmstat output as you run
the two cases?
--
Alex, homepage: http://www.bennee.com/~alex/
"Everything should be made as simple as possible, but not simpler."
-- Albert Einstein
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.6.x: iowait problem while burning a CD
2004-02-28 0:18 ` Rik van Riel
2004-02-28 9:14 ` Paolo Ornati
@ 2004-02-28 22:39 ` Bill Davidsen
2004-02-29 9:37 ` Paolo Ornati
1 sibling, 1 reply; 9+ messages in thread
From: Bill Davidsen @ 2004-02-28 22:39 UTC (permalink / raw)
To: Rik van Riel; +Cc: Paolo Ornati, linux-kernel
Rik van Riel wrote:
> On Fri, 27 Feb 2004, Paolo Ornati wrote:
>
>
>>trying to burn a CD "on the fly" I have noticed a strange thing. During the
>>burning "iowait" remains enough low (~3%, MAX 10%) but, after a little
>>time, it suddenly and quickly goes up to 80-90%: in this condition MKFS
>>seems unable to fill the FIFO buffer as quickly as the CD-writer writes
>
>
>>Any ideas?
>
>
> At that point, mkisofs is probably running into a bazillion
> small files, in subdirectories all over the place.
>
> Because a disk seek + track read takes 10ms, it's simply not
> possible to read more than maybe 100 of these small files a
> second, so mkisofs can't keep up.
I certainly have seen this, although there is something odd in the
process with large files as well. I sometimes see it in 2.4 as well, so
it may be a characteristic of the application.
What to do about it (things to try, not requirements):
- use fs= to increase the size of the fifo a bit, remember to put "m"
after the buffer size or it will be taken in bytes. This helps with
the problem Rik describes
- be sure DMA is on the CD and the drive
- allow ints during io
- I'm told deadline schedular but haven't tried it
- get a new version of cdrecord, build with the 2.6 headers, use
ATAPI:/dev/hdX for dev= instead of ide-scsi (this is probably not
critical for data CD in 2.6.2 and later, ide-scsi seems to work)
- use burn-free
- drop the speed of the burn
- build the ISO image first, burn from that instead of a pipe
- use growisofs for DVD
--
bill davidsen <davidsen@tmr.com>
CTO TMR Associates, Inc
Doing interesting things with small computers since 1979
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.6.x: iowait problem while burning a CD
2004-02-28 14:52 ` Alex Bennee
@ 2004-02-29 9:27 ` Paolo Ornati
2004-02-29 10:35 ` Mike Fedyk
0 siblings, 1 reply; 9+ messages in thread
From: Paolo Ornati @ 2004-02-29 9:27 UTC (permalink / raw)
To: Alex Bennee; +Cc: Rik van Riel, Linux Mailing List
On Saturday 28 February 2004 15:52, Alex Bennee wrote:
> > >
> > > At that point, mkisofs is probably running into a bazillion
> > > small files, in subdirectories all over the place.
> > >
> > > Because a disk seek + track read takes 10ms, it's simply not
> > > possible to read more than maybe 100 of these small files a
> > > second, so mkisofs can't keep up.
> >
> > No... mkfs is reading only ONE big file ( ~ 700 MB )!
> >
> > And my system shouldn't be so slow:
> >
> > CPU: AMD Duron 750
> > RAM: 128 MB PC100
> > HD: 7200 RPM udma 4
> > File System: ResiserFS
>
> Could this be related to your low(ish) physical memory and the need swap
> stuff in and out? Maybe you could look at the vmstat output as you run
> the two cases?
No... swap is never touched !
But I think to have found where the problem is:
if I only create an ISO image of 672.4 MB I must wait more then 5 minutes...
this means about 2.2 MB/s !
If I write a CD at 16x (~2400 KB/s) how can the image creation process be to
the step with the writing one?
OK, if I create an ISO image I must (read from)/(write to) the disk, while
burning on-the-fly requires only "read from disk".... But what happens if I
write at 24x / 32x / 40x ???
Is 2,2 MB/s one acceptable speed?
My HD:
/dev/hda:
multcount = 16 (on)
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 38792/16/63, sectors = 39102336, start = 0
/dev/hda:
Model=WDC WD200BB-53AUA1, FwRev=18.20D18, SerialNo=WD-WMA6Y1501425
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=40
BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=39102336
IORDY=on/off, 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 udma3 *udma4 udma5
AdvancedPM=no WriteCache=enabled
Drive conforms to: device does not report version: 1 2 3 4 5
FILE SYSTEM: ReiserFS
I have also noticed that raising the writing speed (24x/32x) I have the same
problems with the buffer also having created the ISO image!
Bye
--
Paolo Ornati
Linux v2.6.3
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.6.x: iowait problem while burning a CD
2004-02-28 22:39 ` 2.6.x: iowait problem while burning a CD Bill Davidsen
@ 2004-02-29 9:37 ` Paolo Ornati
0 siblings, 0 replies; 9+ messages in thread
From: Paolo Ornati @ 2004-02-29 9:37 UTC (permalink / raw)
To: Bill Davidsen, Rik van Riel; +Cc: linux-kernel
On Saturday 28 February 2004 23:39, Bill Davidsen wrote:
> >
> > At that point, mkisofs is probably running into a bazillion
> > small files, in subdirectories all over the place.
> >
> > Because a disk seek + track read takes 10ms, it's simply not
> > possible to read more than maybe 100 of these small files a
> > second, so mkisofs can't keep up.
>
> I certainly have seen this, although there is something odd in the
> process with large files as well. I sometimes see it in 2.4 as well, so
> it may be a characteristic of the application.
>
> What to do about it (things to try, not requirements):
>
I was talking about one big file... however:
> - use fs= to increase the size of the fifo a bit, remember to put "m"
> after the buffer size or it will be taken in bytes. This helps with
> the problem Rik describes
I have tried with 8 / 16 / 24 MB of buffer! (without big results)
> - be sure DMA is on the CD and the drive
yes
> - allow ints during io
yes
___________________________________________________________
/dev/hdc:
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 1 (on)
readahead = 256 (on)
/dev/hdc:
Model=HL-DT-ST GCE-8400B, FwRev=1.03, SerialNo=
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=yes, tPIO={min:227,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 *mdma2
AdvancedPM=no
___________________________________________________________
> - I'm told deadline schedular but haven't tried it
> - get a new version of cdrecord, build with the 2.6 headers, use
> ATAPI:/dev/hdX for dev= instead of ide-scsi (this is probably not
> critical for data CD in 2.6.2 and later, ide-scsi seems to work)
I have never used IDE-SCSI with 2.6.x ;-)
> - use burn-free
yes
Bye
--
Paolo Ornati
Linux v2.6.3
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.6.x: iowait problem while burning a CD
2004-02-29 9:27 ` Paolo Ornati
@ 2004-02-29 10:35 ` Mike Fedyk
2004-02-29 13:38 ` 2.6.x: iowait problem while burning a CD: SOLVED Paolo Ornati
0 siblings, 1 reply; 9+ messages in thread
From: Mike Fedyk @ 2004-02-29 10:35 UTC (permalink / raw)
To: Paolo Ornati; +Cc: Alex Bennee, Rik van Riel, Linux Mailing List
Paolo Ornati wrote:
> On Saturday 28 February 2004 15:52, Alex Bennee wrote:
>
>>>>At that point, mkisofs is probably running into a bazillion
>>>>small files, in subdirectories all over the place.
>>>>
>>>>Because a disk seek + track read takes 10ms, it's simply not
>>>>possible to read more than maybe 100 of these small files a
>>>>second, so mkisofs can't keep up.
>>>
>>>No... mkfs is reading only ONE big file ( ~ 700 MB )!
>>>
>>>And my system shouldn't be so slow:
>>>
>>>CPU: AMD Duron 750
>>>RAM: 128 MB PC100
>>>HD: 7200 RPM udma 4
>>>File System: ResiserFS
>>
>>Could this be related to your low(ish) physical memory and the need swap
>>stuff in and out? Maybe you could look at the vmstat output as you run
>>the two cases?
>
>
> No... swap is never touched !
>
> But I think to have found where the problem is:
>
> if I only create an ISO image of 672.4 MB I must wait more then 5 minutes...
> this means about 2.2 MB/s !
How full is your filesystem on average? If it has been around 90% or
more, you might be having trouble with fragmentation.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.6.x: iowait problem while burning a CD: SOLVED
2004-02-29 10:35 ` Mike Fedyk
@ 2004-02-29 13:38 ` Paolo Ornati
0 siblings, 0 replies; 9+ messages in thread
From: Paolo Ornati @ 2004-02-29 13:38 UTC (permalink / raw)
To: Mike Fedyk; +Cc: Alex Bennee, Rik van Riel, Bill Davidsen, Linux Mailing List
On Sunday 29 February 2004 11:35, Mike Fedyk wrote:
> >
> > But I think to have found where the problem is:
> >
> > if I only create an ISO image of 672.4 MB I must wait more then 5
> > minutes... this means about 2.2 MB/s !
>
> How full is your filesystem on average? If it has been around 90% or
> more, you might be having trouble with fragmentation.
YES.... it was a fragmentation problem ;-)
Now the ISO image creation speed is 9.2 MB/s....
Many thanks.
Bye
--
Paolo Ornati
Linux v2.6.3
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-02-29 13:37 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-27 17:02 2.6.x: iowait problem while burning a CD Paolo Ornati
2004-02-28 0:18 ` Rik van Riel
2004-02-28 9:14 ` Paolo Ornati
2004-02-28 14:52 ` Alex Bennee
2004-02-29 9:27 ` Paolo Ornati
2004-02-29 10:35 ` Mike Fedyk
2004-02-29 13:38 ` 2.6.x: iowait problem while burning a CD: SOLVED Paolo Ornati
2004-02-28 22:39 ` 2.6.x: iowait problem while burning a CD Bill Davidsen
2004-02-29 9:37 ` Paolo Ornati
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox