: Load rises to 100% when dmix is used with ICE1724 (SN25P)
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1584>
======================================================================
Reported By: mr511 Assigned To: perex ====================================================================== Project: ALSA - lib Issue ID: 1584 Category: 1_pcm_d - direct PCM plugins (dmix+) Reproducibility: always Severity: major Priority: normal Status: assigned ====================================================================== Date Submitted: 11-20-2005 20:33 CET Last Modified: 11-21-2005 21:43 CET
======================================================================
Summary: Load rises to 100% when dmix is used with ICE1724
(SN25P)
Description:
ALSA applications using the dmix plugin run at 100% load. Verified with aplay, alsaplayer, xine, aoss+mpg123 and several others.
Approximately 1/3 of the load appears to be in user space, 2/3 in system space.
Re-installing alsa-lib 1.0.8 makes the problem go away.
======================================================================
----------------------------------------------------------------------
mr511 - 11-21-05 14:37
----------------------------------------------------------------------
One more note: when using alsaplayer, the following system calls are repeated again and again:
read(5, "", 16) = 0poll([{fd=5, events=POLLIN|POLLERR|POLLNVAL, revents=POLLIN}], 1, -1) = 1
ioctl(4, 0xc0844123, 0x825f298) = 0 ioctl(4, 0xc0844123, 0x825f298) = 0 ioctl(4, 0xc0844123, 0x825f298) = 0 ioctl(4, 0xc0844123, 0x825f298) = 0
The ioctl appears to be SNDRV_PCM_IOCTL_SYNC_PTR.
----------------------------------------------------------------------
mr511 - 11-21-05 21:43
----------------------------------------------------------------------
More observations: Behavior depends on the kernel version. With 2.6.12, everything works fine. With 2.6.14, the load rises.
In the earlier note, fd=5 is /dev/snd/timer, so maybe it's a timer problem. In the worst case, the poll loop is executed approximately 8000...10000 times per second. The kernel is configured with CONFIG_HZ=250, in case that matters.
Issue History
Date Modified Username Field Change
======================================================================
11-20-05 20:33 mr511 New Issue 11-21-05 14:37 mr511 Note Added: 0006771 11-21-05 21:43 mr511 Note Added: 0006777
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click