* Dmix using more CPU than plug:hw
@ 2005-05-06 23:53 Erik de Castro Lopo
2005-05-11 13:23 ` Takashi Iwai
0 siblings, 1 reply; 10+ messages in thread
From: Erik de Castro Lopo @ 2005-05-06 23:53 UTC (permalink / raw)
To: alsa-devel
Note : Please CC me on responses as I am not subscribed to this
list.
Hi all,
I'm playing around with Polypaudio (an EsoundD replacement) and
find that it works really well when I connect it to the plug:hw
and the CPU usage is as I would expect.
If on the other hand I connect Polypaudio to the plug:dmix1
(defined as below) device it attempts to chew up 100% of CPU and
then dies.
The ALSA version is whatever is in the 2.6.11 kernel. I have also
seen this problem on two different systems (iBook/Tumbler and
ia32/CMI8738) so its not hardware specific.
Does anyone have any ideas as to why a dmix device behaves so
differently to plug:hw?
TIA,
Erik
pcm.dmix1 {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0" # make sure this matches the actual device
#period_time 0 # not necessary since ALSA 1.0pre
period_size 1024 # Use a power of 2
buffer_size 4096 # must be a multiple of period_size
#rate 44100 # not necessary; let alsa-lib handle this
}
bindings {
0 0
1 1 # bind only the first 2 channels
}
}
pcm.duplex
{
type asym
playback.pcm "dmix1"
capture.pcm "dsnoop"
}
# Everything shall be dmix1ed, so redefine "default":
# Note that this is _not_ a good idea, since dmix1 doesn't allow mmap access currently
#pcm.!default {
# type plug
# slave.pcm "duplex"
#}
# OSS via aoss should d(mix)stroyed:
pcm.dsp0 {
type plug
slave.pcm "duplex"
}
ctl.dmix1 {
type hw
card 0
}
--
+-----------------------------------------------------------+
Erik de Castro Lopo nospam@mega-nerd.com (Yes it's valid)
+-----------------------------------------------------------+
"OS X is great that way. I put a copy of OS X on my coffee table,
and it hasn't been hacked yet. Yes, I am using it as a server. I
serve several meals on it every week." -- Anthony Minkoff
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: Dmix using more CPU than plug:hw
2005-05-06 23:53 Dmix using more CPU than plug:hw Erik de Castro Lopo
@ 2005-05-11 13:23 ` Takashi Iwai
2005-05-11 14:03 ` Thierry Vignaud
0 siblings, 1 reply; 10+ messages in thread
From: Takashi Iwai @ 2005-05-11 13:23 UTC (permalink / raw)
To: Erik de Castro Lopo; +Cc: alsa-devel
At Sat, 7 May 2005 09:53:46 +1000,
Erik de Castro Lopo wrote:
>
>
> Note : Please CC me on responses as I am not subscribed to this
> list.
>
> Hi all,
>
> I'm playing around with Polypaudio (an EsoundD replacement) and
> find that it works really well when I connect it to the plug:hw
> and the CPU usage is as I would expect.
>
> If on the other hand I connect Polypaudio to the plug:dmix1
> (defined as below) device it attempts to chew up 100% of CPU and
> then dies.
>
> The ALSA version is whatever is in the 2.6.11 kernel. I have also
> seen this problem on two different systems (iBook/Tumbler and
> ia32/CMI8738) so its not hardware specific.
>
> Does anyone have any ideas as to why a dmix device behaves so
> differently to plug:hw?
Does it still happen with 1.0.9rc3?
Takashi
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Dmix using more CPU than plug:hw
2005-05-11 13:23 ` Takashi Iwai
@ 2005-05-11 14:03 ` Thierry Vignaud
2005-05-11 14:14 ` Takashi Iwai
0 siblings, 1 reply; 10+ messages in thread
From: Thierry Vignaud @ 2005-05-11 14:03 UTC (permalink / raw)
To: Takashi Iwai; +Cc: Erik de Castro Lopo, alsa-devel
Takashi Iwai <tiwai@suse.de> writes:
> > I'm playing around with Polypaudio (an EsoundD replacement) and
> > find that it works really well when I connect it to the plug:hw
> > and the CPU usage is as I would expect.
> >
> > If on the other hand I connect Polypaudio to the plug:dmix1
> > (defined as below) device it attempts to chew up 100% of CPU and
> > then dies.
> >
> > The ALSA version is whatever is in the 2.6.11 kernel. I have also
> > seen this problem on two different systems (iBook/Tumbler and
> > ia32/CMI8738) so its not hardware specific.
> >
> > Does anyone have any ideas as to why a dmix device behaves so
> > differently to plug:hw?
>
> Does it still happen with 1.0.9rc3?
afaic artsd with alsa-lib-1.0.9rc3 eats quite lots cpu time. i've got
similar reports from people that previously reported that artsd was
using too much cpu time.
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Dmix using more CPU than plug:hw
2005-05-11 14:03 ` Thierry Vignaud
@ 2005-05-11 14:14 ` Takashi Iwai
2005-05-11 14:19 ` Thierry Vignaud
2005-05-12 10:08 ` Erik de Castro Lopo
0 siblings, 2 replies; 10+ messages in thread
From: Takashi Iwai @ 2005-05-11 14:14 UTC (permalink / raw)
To: Thierry Vignaud; +Cc: Erik de Castro Lopo, alsa-devel
At Wed, 11 May 2005 16:03:33 +0200,
Thierry Vignaud wrote:
>
> Takashi Iwai <tiwai@suse.de> writes:
>
> > > I'm playing around with Polypaudio (an EsoundD replacement) and
> > > find that it works really well when I connect it to the plug:hw
> > > and the CPU usage is as I would expect.
> > >
> > > If on the other hand I connect Polypaudio to the plug:dmix1
> > > (defined as below) device it attempts to chew up 100% of CPU and
> > > then dies.
> > >
> > > The ALSA version is whatever is in the 2.6.11 kernel. I have also
> > > seen this problem on two different systems (iBook/Tumbler and
> > > ia32/CMI8738) so its not hardware specific.
> > >
> > > Does anyone have any ideas as to why a dmix device behaves so
> > > differently to plug:hw?
> >
> > Does it still happen with 1.0.9rc3?
>
> afaic artsd with alsa-lib-1.0.9rc3 eats quite lots cpu time. i've got
> similar reports from people that previously reported that artsd was
> using too much cpu time.
That's bad. I hope it got fixed now.
Anyway, this high CPU usage is usually solved when you run without
rate conversion in alsa-lib. Specify 48000Hz for artsd or polyaudio.
Takashi
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Dmix using more CPU than plug:hw
2005-05-11 14:14 ` Takashi Iwai
@ 2005-05-11 14:19 ` Thierry Vignaud
2005-05-12 10:08 ` Erik de Castro Lopo
1 sibling, 0 replies; 10+ messages in thread
From: Thierry Vignaud @ 2005-05-11 14:19 UTC (permalink / raw)
To: Takashi Iwai; +Cc: Erik de Castro Lopo, alsa-devel
Takashi Iwai <tiwai@suse.de> writes:
> > afaic artsd with alsa-lib-1.0.9rc3 eats quite lots cpu time. i've
> > got similar reports from people that previously reported that
> > artsd was using too much cpu time.
>
> That's bad. I hope it got fixed now.
oops, i wanted to mean "afaic artsd with alsa-lib-1.0.9rc3 eats quite
*LESS* cpu time than before." :-)
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Dmix using more CPU than plug:hw
2005-05-11 14:14 ` Takashi Iwai
2005-05-11 14:19 ` Thierry Vignaud
@ 2005-05-12 10:08 ` Erik de Castro Lopo
2005-05-12 10:43 ` Takashi Iwai
2005-05-12 14:19 ` Lee Revell
1 sibling, 2 replies; 10+ messages in thread
From: Erik de Castro Lopo @ 2005-05-12 10:08 UTC (permalink / raw)
To: alsa-devel
Note : I am now subscribed to the list. Please reply to the list
and do not CC me. Thanks.
Takashi Iwai wrote:
> > > Does it still happen with 1.0.9rc3?
I haven't tried this yet. Whats involved with installing the alsa
drivers under a 2.6 kernel?
> That's bad. I hope it got fixed now.
>
> Anyway, this high CPU usage is usually solved when you run without
> rate conversion in alsa-lib. Specify 48000Hz for artsd or polyaudio.
With polypaudio I have tried forcing the rate to both 48000 and 44100
(which is the only rate my iBook/Tumbler hardware actually accepts).
In both cases, polypaudio chews up 100% if CPU time and gets killed
within about 10 seconds.
Is this something that 1.0.9rc3 is likely to fix?
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo nospam@mega-nerd.com (Yes it's valid)
+-----------------------------------------------------------+
" ... new TV ad for Microsoft's Internet Explorer e-mail program which
uses the musical theme of the "Confutatis Maledictis" from Mozart's
Requiem. "Where do you want to go today?" is the cheery line on the
screen, while the chorus sings "Confutatis maledictis, flammis acribus
addictis,". This translates to "The damned and accursed are convicted
to the flames of hell."
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: Dmix using more CPU than plug:hw
2005-05-12 10:08 ` Erik de Castro Lopo
@ 2005-05-12 10:43 ` Takashi Iwai
2005-05-12 12:24 ` Erik de Castro Lopo
2005-05-12 14:19 ` Lee Revell
1 sibling, 1 reply; 10+ messages in thread
From: Takashi Iwai @ 2005-05-12 10:43 UTC (permalink / raw)
To: alsa-devel
At Thu, 12 May 2005 20:08:48 +1000,
Erik de Castro Lopo wrote:
>
> Takashi Iwai wrote:
>
> > > > Does it still happen with 1.0.9rc3?
>
> I haven't tried this yet. Whats involved with installing the alsa
> drivers under a 2.6 kernel?
Installing alsa-driver 1.0.9rc3 is recommended together with alsa-lib
1.0.9rc3, but alsa-lib 1.0.9rc3 itself should work fine with alsa
drivers included in 2.6.11 or 12-rc* kernels.
> > That's bad. I hope it got fixed now.
> >
> > Anyway, this high CPU usage is usually solved when you run without
> > rate conversion in alsa-lib. Specify 48000Hz for artsd or polyaudio.
>
> With polypaudio I have tried forcing the rate to both 48000 and 44100
> (which is the only rate my iBook/Tumbler hardware actually accepts).
> In both cases, polypaudio chews up 100% if CPU time and gets killed
> within about 10 seconds.
>
> Is this something that 1.0.9rc3 is likely to fix?
Might be...
Takashi
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Dmix using more CPU than plug:hw
2005-05-12 10:43 ` Takashi Iwai
@ 2005-05-12 12:24 ` Erik de Castro Lopo
2005-05-12 12:53 ` Erik de Castro Lopo
0 siblings, 1 reply; 10+ messages in thread
From: Erik de Castro Lopo @ 2005-05-12 12:24 UTC (permalink / raw)
To: alsa-devel
Takashi Iwai wrote:
> At Thu, 12 May 2005 20:08:48 +1000,
> Erik de Castro Lopo wrote:
>
> > Is this something that 1.0.9rc3 is likely to fix?
>
> Might be...
Unfortunately not.
I installed alsa-driver-1.0.9rc3 and alsa-lib-1.0.9rc3. If I
then run polypaudio it hangs, hard. So hard that I can't
kill it. There's nothing in the system logs.
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo nospam@mega-nerd.com (Yes it's valid)
+-----------------------------------------------------------+
"The earth is degenerating these days. Bribery and corruption abound.
Children no longer mind parents ...and it is evident that the end of
the world is approaching fast." -- Assyrian Tablet Engraved in 2800 B.C.
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Dmix using more CPU than plug:hw
2005-05-12 12:24 ` Erik de Castro Lopo
@ 2005-05-12 12:53 ` Erik de Castro Lopo
0 siblings, 0 replies; 10+ messages in thread
From: Erik de Castro Lopo @ 2005-05-12 12:53 UTC (permalink / raw)
To: alsa-devel
Erik de Castro Lopo wrote:
> Takashi Iwai wrote:
>
> > At Thu, 12 May 2005 20:08:48 +1000,
> > Erik de Castro Lopo wrote:
> >
> > > Is this something that 1.0.9rc3 is likely to fix?
> >
> > Might be...
>
> Unfortunately not.
>
> I installed alsa-driver-1.0.9rc3 and alsa-lib-1.0.9rc3. If I
> then run polypaudio it hangs, hard. So hard that I can't
> kill it. There's nothing in the system logs.
I backed out the driver but kept the new alsa-lib and polypaudio
now works, using a sensible amount of CPU.
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo nospam@mega-nerd.com (Yes it's valid)
+-----------------------------------------------------------+
"TLC declared bankruptcy after they received less than 2 percent of the $175
million earned by their CD sales. That was about 40 times less than the
profit that was divided among their management, production and record
companies." -- Courtney Love on the REAL piracy
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Dmix using more CPU than plug:hw
2005-05-12 10:08 ` Erik de Castro Lopo
2005-05-12 10:43 ` Takashi Iwai
@ 2005-05-12 14:19 ` Lee Revell
1 sibling, 0 replies; 10+ messages in thread
From: Lee Revell @ 2005-05-12 14:19 UTC (permalink / raw)
To: Erik de Castro Lopo; +Cc: alsa-devel
On Thu, 2005-05-12 at 20:08 +1000, Erik de Castro Lopo wrote:
> Note : I am now subscribed to the list. Please reply to the list
> and do not CC me. Thanks.
>
The convention on this list is to use Reply-To-All. So you won't have
much luck telling people not to CC you. Better to set up a filter for
list mail, so you get one copy in your inbox and one in your alsa-devel
folder.
Lee
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-05-12 14:19 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-06 23:53 Dmix using more CPU than plug:hw Erik de Castro Lopo
2005-05-11 13:23 ` Takashi Iwai
2005-05-11 14:03 ` Thierry Vignaud
2005-05-11 14:14 ` Takashi Iwai
2005-05-11 14:19 ` Thierry Vignaud
2005-05-12 10:08 ` Erik de Castro Lopo
2005-05-12 10:43 ` Takashi Iwai
2005-05-12 12:24 ` Erik de Castro Lopo
2005-05-12 12:53 ` Erik de Castro Lopo
2005-05-12 14:19 ` Lee Revell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.