Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131456 - aRts consumes 99% CPU power after upgrade to ALSA 1.0.11
Summary: aRts consumes 99% CPU power after upgrade to ALSA 1.0.11
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: Normal major (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
: 132335 133545 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-27 07:42 UTC by Tobias Leupold
Modified: 2006-10-01 22:23 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Leupold 2006-04-27 07:42:39 UTC
After upgrading alsa-lib, alsa-oss, alsa-utils, alsa-headers and alsa-tools to Version 1.0.11, the aRts Daemon uses up to 99% of the CPU power. That slows down the whole system and results also in frequent messages like "Sound server fatal error: cpu overload, aborting". Seems like this isn't a general problem; it only occured on one of my two computers. A downgrade to version ~1.0.10 fixes the problem for me.

See also http://forums.gentoo.org/viewtopic-p-3284414.html
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-27 07:53:41 UTC
Please provide more information. Emerge info output to start from, the way you got alsa installed is another useful thing (in kernel or alsa-driver? if in-kernel, which kernel version and did you build them in or as modules?), your sound card and your configuration of dmix if it's not the default.
Comment 2 Tobias Leupold 2006-04-27 08:00:02 UTC
Sorry for the understatement ;-)

emerge --info:

Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15.1 i686)
=================================================================
System uname: 2.6.15.1 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/"
LANG="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/Binaerpakete"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage-overlays/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aalib alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdb cdr cli crypt cups curl dri dvd dvdr eds emboss encode exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif glut gmp gpm gstreamer gtk gtk2 idn imagemagick imlib ipv6 isdnlog java jpeg kde lcms ldap libg++ libwww lirc mad mikmod mmx mmxext mng motif mp3 mpeg mysql ncurses nls nptl ogg opengl pam pcre pdflib perl php png ppds pppd python qt quicktime readline recode reflection samba scanner sdl session slang spell spl sqlite sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb v4l v4l2 vorbis wmf xine xml xml2 xmms xorg xv xvid zlib linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS


I use Kernel 2.6.15.1 (the vanilla sources). Here's the config:

<M> Advanced Linux Sound Architecture
<M> Sequencer support
< >   Sequencer dummy client
<M> OSS Mixer API
<M> OSS PCM (digital audio) API
[*] OSS Sequencer API

    PCI devices  --->

<M> VIA 82C686A/B, 8233/8235 AC97 Controller

I never changed any dmix settings. The other ALSA packages (mentionned above) were installed und updated by emerge.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-27 08:15:53 UTC
Okay, this might be the source of the problem, your kernel is using 1.0.10 ALSA drivers, but you tried using 1.0.11 userland, this often breaks things.

You can try using alsa-driver instead.
Comment 4 Thomas Kuther 2006-04-27 08:36:58 UTC
fixed upstream
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2067
Comment 5 Tobias Leupold 2006-04-27 10:08:37 UTC
Okay ... how can I know the version of the driver in the kernel? And how can it be explained that my other computer works like before the update although it also uses the kernel driver?
Comment 6 Carsten Lohrke (RETIRED) gentoo-dev 2006-04-30 09:09:24 UTC
(In reply to comment #5)
> Okay ... how can I know the version of the driver in the kernel?

Looking at the kernel sources

> And how can it
> be explained that my other computer works like before the update although it
> also uses the kernel driver?
 
What kernel? Haven't read the upstream bug, but likely it's bound to other conditions as well, since these issues aren't exactly new. you can experiment with:

a) Alsa
- raising the buffer size in /etc/asound.conf to 4096 or more
b) aRts
- (strongly recommended) disable realtime priority
- raise buffer size
- use aRts with Akode



Diego, can't you check for ! kernel-2.4 && <kernel-2.6.16 && alsa-driver not installed and throw a warning?
Comment 7 Tobias Leupold 2006-04-30 09:30:54 UTC
In the ALSA bugzilla, they write that the bug is fixed. If a -r1 ebuild of the package containing that bugfix was made, there would be no necessity for such a waring, would it?
Comment 8 Carsten Lohrke (RETIRED) gentoo-dev 2006-05-05 06:04:10 UTC
*** Bug 132335 has been marked as a duplicate of this bug. ***
Comment 9 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-05 06:34:43 UTC
I'll do a -r1 later and ask for quick stable.
Comment 10 Miroslaw Mieszczak 2006-05-16 03:44:11 UTC
I have the same problem on AMD64. After update to ALSA 1.0.11 the problem occured.
I tried to install alsa-driver instead of kernel drivers, and the problem still appear.
I use gentoo-sources 2.6.16-r7.

there is my emerge --info:
Portage 2.1_rc1-r2 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.3.6-r3, 2.6.16-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r7 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System version 1.12.0_pre19
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe -ftracer -fomit-frame-pointer -maccumulate-outgoing-args"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon64 -pipe -ftracer -fomit-frame-pointer -maccumulate-outgoing-args"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mieszczak.com.pl http://gentoo.prz.rzeszow.pl/gentoo http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo"
LANG="pl_PL.utf8"
LC_ALL="pl_PL.utf8"
LDFLAGS="-Wl,-O1,--sort-common -s"
LINGUAS="pl"
MAKEOPTS="-j3 -s"
PKGDIR="/home/portage/packages"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/portage/local/portage /home/portage/overlays/gentoo-webapps-overlay/experimental /home/portage/overlays/ebuildexchange /home/portage/overlays/mysiar /home/portage/overlays/gentopia"
SYNC="rsync://rsync.pl.gentoo.org/gentoo-portage"
USE="amd64 X aac acpi alsa arts artswrappersuid audiofile avi bitmap-fonts bluetooth browserplugin bzip2 cairo cddb cdparanoia cdr cjk cli crypt cups dbus dga dlloader dri dv dvd dvdr dvdread emboss encode fbcon fbsplash ffmpeg firefox flac foomaticdb fortran ftp gif gimp gimpprint glut hal ieee1394 imagemagick imlib input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_synaptics iodbc ipv6 irda isdnlog jack java javascript jikes joystick jpeg jpeg2k kde kdeenablefinal libg++ logrotate lzo lzw lzw-tiff mime mjpeg moznocompose moznoirc mozsvg mp3 mpeg ncurses nls no-old-linux nptl nsplugin nvidia odbc ogg ogvorbis on-the-fly-crypt ooo-kde openal opengl pam pcmcia pcre pdflib perl pic png pnp postgres povray ppds pppd python qt quicktime readline reflection rtc samba sasl scanner sdl session slang slp smp sms socks5 speedup spell spl sql ssl subversion svg symlink tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales vcd vesa_tng video_cards_nv video_cards_nvidia vim-with-x vorbis wifi wmf xcomposite xine xinerama xml xml2 xorg xpm xprint xscreensaver xv xvid xvmc zeroconf zlib elibc_glibc initng_plugins_doc initng_plugins_also initng_plugins_bash_launcher initng_plugins_chdir initng_plugins_chroot initng_plugins_conflict initng_plugins_cpout initng_plugins_critical initng_plugins_cron initng_plugins_daemon initng_plugins_dev initng_plugins_dllaunch initng_plugins_envparser initng_plugins_find initng_plugins_fstat initng_plugins_history initng_plugins_idleprobe initng_plugins_initctl initng_plugins_interactive initng_plugins_iparser initng_plugins_last initng_plugins_limit initng_plugins_logfile initng_plugins_netprobe initng_plugins_ngc2 initng_plugins_pause initng_plugins_pidfile initng_plugins_reload initng_plugins_renice initng_plugins_rlparser initng_plugins_simple_launcher initng_plugins_stcmd initng_plugins_stdout initng_plugins_suid initng_plugins_syncron initng_plugins_syslog initng_plugins_unneeded initng_plugins_splash kernel_linux linguas_pl userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS


Comment 11 Dariusz Brzezinski 2006-05-17 00:00:01 UTC
I also have the same problem on AMD64 after upgrade to alsa 1.0.11. I have to  downgrade to version 1.0.10 afterwards. This is my emerge info:

Portage 2.0.54-r2 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks moo sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl/ http://gentoo.zie.pg.gda.pl ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://src.gentoo.pl ftp://cudlug.cudenver.edu/pub/mirrors/distributions/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LINGUAS="pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/inne/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 apache2 arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdr cli cpi crypt cups curl directfb dri dvd dvdr eds emboss encode esd exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif glut gmp gphoto2 gpm gstreamer gtk gtk2 idn imagemagick imap imlib isdnlog java jpeg junit kde kdeenablefinal lcms ldap libwww lm_sensors lzw lzw-tiff mad maildir mhash mikmod mng motif mozilla mp3 mpeg mysql ncurses nls nptl ogg oggvorbis openal opengl pam pcre pdflib perl php png pppd python qt quicktime readline recode reflection samba sasl scanner sdl session slang spell spl ssl tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb v4l vorbis xine xml xml2 xmms xorg xpm xv xvid zlib video_cards_nvidia linguas_pl userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
Comment 12 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-17 05:26:18 UTC
Upstream seems to be confused about this:

On Wednesday 17 May 2006 10:51, Takashi Iwai wrote:
> It's included in ALSA 1.0.11 release.
> Also, you should better to set dxs_support=5 module option.  Otherwise
> it requires unnecessary software sample rate conversion.

So if someone wants to report this again upstream and see what to do, it would be helpful, else I'm probably going to close this as WORKSFORME and just asking you all guys to set dxs_support to something that's not auto.
Comment 13 vicaya 2006-05-17 07:48:12 UTC
Same problem here with this onboard sound:
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50)

According to the ALSA release note, dxs_support is introduced in 1.0.11 as a new driver option for via82xx. I've always used builtin ALSA support in kernel with newer userland alsa-lib etc, never had a problem until now. 

It's a common opinion that userland should be backward compatible with reasonably recent kernel drivers (like the wireless extension does.) alsa-lib should just set a default when working with older drivers. Upstream (tiwai, who seems to be responsible for via82xx support) is definitely confused on this one...

ALSA 1.0.11 userland is in my package.mask for now.
Comment 14 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-17 07:55:59 UTC
ALSA userland and kernel drivers _are_ incompatible between releases every so often, I already stated that more than one time.
Comment 15 Tobias Leupold 2006-05-17 11:46:09 UTC
Perhaps, that's also a hardware issue?! I have also that "Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50)". On my other computer, alsa-*-1.0.11 all work perfectly with the kernel driver -- and that computer hasn't that VIA stuff.
Comment 16 Tobias Leupold 2006-05-17 11:47:47 UTC
Perhaps, that's also a hardware issue?! I have also that (lspci:)

Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50)

On my other computer, alsa-*-1.0.11 all work perfectly with the kernel driver -- and that computer hasn't that VIA stuff.
Comment 17 Tobias Leupold 2006-05-17 11:52:08 UTC
Sorry for the double post ...

But that problem can't just be caused by the use of the kernel driver! As Miroslaw said, it also occurs with the alsa-driver.
Comment 18 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-17 12:16:07 UTC
No I just meant about the comment #13 that upstream ALSA does not think of providing compatibility between userland and kernel code, so I won't bother tracking down issues due to misalignment.

About the specific problem, upstream is probably confused about it too, and I'd rather see it brought on again to upstream, I can't reproduce with it so I can't do much about it myself, and I already referred what the upstream developer told me.
Comment 19 Carsten Lohrke (RETIRED) gentoo-dev 2006-05-20 09:24:10 UTC
*** Bug 133545 has been marked as a duplicate of this bug. ***
Comment 20 Patrick ALLAERT 2006-05-31 09:46:41 UTC
Does version 1.0.11 can't be masked ? This bug occurs on 2 Gentoo boxes over 3 at work and this is far too much!
Comment 21 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-31 09:57:48 UTC
The bug is related only to one out of a lot of sound drivers, the problem can be worked around as suggested by upstream, and there's no way I'll mask alsa 1.0.11 for this, considering that 1.0.10 does not work with kernel 2.6.16 and following at all.
Comment 22 Patrick ALLAERT 2006-06-02 06:39:55 UTC
(In reply to comment #21)
> The bug is related only to one out of a lot of sound drivers, the problem can
> be worked around as suggested by upstream, and there's no way I'll mask alsa
> 1.0.11 for this, considering that 1.0.10 does not work with kernel 2.6.16 and
> following at all.

I am very surprised about what you say... I have masked in /etc/portage/package.mask every packages related to alsa-1.0.11... Because I can't have sound with this version with both kernel drivers and alsa-driver ebuild... (always running at 99%)
And with alsa-{utils,tools,headers,lib,...}-1.0.10 everything is working like a charm... with my 2.6.16-r7 kernel !!!
Comment 23 Tobias Leupold 2006-06-02 06:51:47 UTC
Same situation here with the vanilla-sources 2.6.16.16 and the kernel-driver.
Comment 24 Jakub Moc (RETIRED) gentoo-dev 2006-06-02 06:52:22 UTC
(In reply to comment #22)

We won't mask ALSA 1.0.11 because of Bug 127567, Bug 129845, Bug 128879, Bug 133255 and a bunch of others. Can't be done, period.
Comment 25 Tobias Leupold 2006-06-02 06:58:12 UTC
Masking ALSA* 1.0.11 won't fix the problem! I thought, this was a known bug and it's already fixed by the ALSA people -- so why not just make a fixed ebuild?
Comment 26 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-06-02 07:10:30 UTC
Because it is _not_ fixed. The fix is the one noted by Takashi Iwai.
There is NO change on this in the upstream repositories.
Comment 27 Matteo Azzali (RETIRED) gentoo-dev 2006-06-02 07:17:35 UTC
(in reply to comment #22 and cooment #25)
Just suppose that there are 100 drivers in alsa.
The fact that upstream they have declared that alsa-1.0.10 is not 
compatible with 2.6.16 kernels means that a big part of the drivers 
won't work with this combination (let us say 25 drivers).
And also some system combination could have issues to compile
1.0.10 fine with 2.6.16.

Now there's 1 drivers that does the opposite. Do you argue what's
the best way to handle this from developers point of view?

Resolution is to put =media-libs/alsa-lib-1.0.11 
and so on in your /etc/portage/package.mask ,
the = will grant you that you won't miss any new update
other than 1.0.11 when you do emerge -auvDN .

Also nobody has the skill and the time to fix arts for just one 
broken driver, sorry.
You can point to my tut at :http://forums.gentoo.org/viewtopic-t-429771-highlight-arts.html
to get rid of arts.

That's why I would like to close this bug.
Comment 28 Tobias Leupold 2006-07-20 02:36:12 UTC
The new vanilla-sources-2.6.17.6 kernel fixed the problem for me.
Comment 29 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-01 22:23:10 UTC
Hopefully this is fixed in recent releases of ALSA, if it is not, please report this upstream.