Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185569 - app-cdr/dvd+rw-tools-7.0 - 100% CPU usage when writing a DVD on the fly with growisofs
Summary: app-cdr/dvd+rw-tools-7.0 - 100% CPU usage when writing a DVD on the fly with ...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Optical Media project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-16 18:34 UTC by Pascariu Olimpiu
Modified: 2008-06-06 22:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
.config file after I have applied the egrep filter: egrep -v "^$|^#" (.config,9.89 KB, text/plain)
2007-08-30 20:43 UTC, Pascariu Olimpiu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pascariu Olimpiu 2007-07-16 18:34:59 UTC
When I am trying to write a DVD on the fly with growisofs(as it is described in the gentoo wiki http://gentoo-wiki.com/HOWTO_Create_a_DVD:Burn), the system almost freezes. It does respond to ping, but the system is really unusable. The mouse pointer moves after about 10 minutes after I moved the mouse. I was able to see (after an hour of trying to start the top program) that the cause of this behavior is that the CPU load is at 100%. The DVD writer is TEAC DV-W516GB( motherboard is a ASUS A8N-E, with a Nvidia nForce4 Ultra chipset). There is no problem DVD writer because I have no problems writing DVD's in Windows, or in Sabayon Linux 3.3 (the 64 bit version). 
I have tried to start the burning program under a root account, after I have issued the command
"ulimit -l unlimited" but the behavior is the same. O am experiencing the same problem if I use K3b because it uses growisofs to do the actual writing.

I have managed to write a DVD using mkisofs to create the iso image, and them write the image with cdrecord.

emerge --info
Portage 2.1.3_rc8 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System release 1.12.10
Timestamp of tree: Fri, 13 Jul 2007 19:20:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://ftp.romnet.org/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS=""
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.ro/gentoo-portage"
USE="7zip X a52 aac acl acpi alsa amd64 aoss apache2 arj asf authdaemond authfile authlib berkdb bitmap-fonts bzip2 cairo cdparanoia cdr clamav cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode evo exif ffmpeg firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv imagemagick isdnlog java jpeg kerberos libg++ mad matroska midi mikmod mmx mono mp3 mpeg mudflap mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl php png pppd python qt3 qt3support qt4 quicktime readline reflection sdl session slang spell spl sse sse2 ssl svg tcpd theora threads tiff tk truetype truetype-fonts type1 type1-fonts unicode usb vorbis wmf xine xml xorg xpm xv xvid zip zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS 

Other info:
1)hdparm /dev/hdc

/dev/hdc:
 IO_support    =  1 (32-bit)
 unmaskirq     =  1 (on)
 using_dma     =  1 (on)
 keepsettings  =  0 (off)
 readonly      =  0 (off)
 readahead     = 256 (on)
 HDIO_GETGEO failed: Inappropriate ioctl for device 

2)I have swappiness set to 20 in /etc/sysctl.conf : vm.swappiness = 20

3)Now, after I have upgraded my kernel to gentoo-sources-2.6.22-r1, I am using the deadline scheduler, before the upgrade I have used the cfq scheduler as default. 
4)I have 1GB of ram and the swap partition is 530MB. 
5)I am using dvd+rw-tools-7.0 and cdrtools-2.01.01_alpha30
Comment 1 Pascariu Olimpiu 2007-07-16 18:37:59 UTC
I have uploaded here :http://www.mediafire.com/?4n0jyyaqgw1 the kernel .config file, after I have applied the following egrep filter : egrep -v "^$|^#" .config.
Comment 2 Pascariu Olimpiu 2007-07-17 14:22:40 UTC
I had no problems writing two TDK dvd's (using mkisofs and cdrecord), but when I tried to write some other dvd's (EMTEC I belive) the system froze again:(

This is pretty odd, because I would expect to receive an error if cdrecord can not write a certain DVD, and not to freeze the system.
Comment 3 Luis Medinas (RETIRED) gentoo-dev 2007-08-24 02:57:24 UTC
i doubt this as something to do with dvdrwtools please check your kernel. Please try burning the cd with cdrkit instead of cdrtools.
Comment 4 Pascariu Olimpiu 2007-08-30 20:43:37 UTC
Created attachment 129636 [details]
.config file after I have applied the egrep filter: egrep -v "^$|^#"
Comment 5 Pascariu Olimpiu 2007-08-30 20:46:04 UTC
(In reply to comment #3)
> i doubt this as something to do with dvdrwtools please check your kernel.
> Please try burning the cd with cdrkit instead of cdrtools.
> 

I have recompiled the kernel several times, but I don't know what am I doing wrong. I have attached the kernel.config here since the link I have posted before is no longer valid.

I'll try using cdrkit to write a dvd tomorow.
Comment 6 Pascariu Olimpiu 2007-08-31 21:45:55 UTC
I have tested again with cdrkit. I tried to burn a dvd with several files but the system became unresponsive. I have managed to see that, after the "burning" process started, the DMA for /dev/hdc has disabled, and /var/log/messages was full with errors like the following:
Aug 31 23:09:43 bigguy hdc: drive not ready for command
Aug 31 23:09:48 bigguy hdc: status timeout: status=0xd0 { Busy }
Aug 31 23:09:48 bigguy ide: failed opcode was: unknown

I have removed hald from the default runlevel, and after restart I tried to burn, the same DVD, but this time I used a 3 filea one of about 4GB and the other two a few KB, and the DVD was burned successfully. I belived that hald was the problem, but tried to burn another DVD with several files, and the system became unresponsive again.
I have removed cdrkit and tried again with the last version of cdrtools. I was able to burn a DVD, but when trying to burn antoher DVD (with the same files) the system became unresponsive.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2008-06-06 22:52:03 UTC
uh..

try with dvd+rw-tools-7.1 and cdrkit-1.1.8 or cdrtools-2.01.01_alpha40 (also up-to-date kernel)

reopen if still borqued.