From: Raymond Yau <superquad.vortex2@gmail.com>
To: ALSA Development Mailing List <alsa-devel@alsa-project.org>
Subject: Re: [pulseaudio-discuss] pulseaudio eats 19% CPU power in Fedora 12
Date: Tue, 20 Apr 2010 11:30:31 +0800 [thread overview]
Message-ID: <q2s4f3252891004192030jb1ef91c1g452136230bbe8f82@mail.gmail.com> (raw)
In-Reply-To: <20100419144832.GC1048@tango.0pointer.de>
2010/4/19 Lennart Poettering <mznyfn@0pointer.de>
> On Mon, 19.04.10 13:20, Shuang He (shuang.he@intel.com) wrote:
>
> Please stop the cross-posting.
> >
>
> > current latency: 444.25 ms
> > requested latency: 31.25 ms
>
> So, this is interesting: the client requested 30ms (which is needlessly
> low, but that's another question), but the server ended up providing
> only 444 ms! That is incredibly high and points to the fact that PA
> probably ran into quite a few dropouts before this, presumably due to
> incorrect timing or suchlike, and hence bumped up the minimal latency
> all the time, and bumped down the sleeping time, hence eincreasing the
> CPU load. Almost certainly your audio driver is at fault here.
>
> Check syslog for any comments about that.
>
> Lennart
>
>
when using -ao oss or -ao alsa , mplayer use 16 fragments and use 0.5
second for the buffer time . about 31.25ms period time is quite normal
for hda driver which has a constraint of period size must be multiple of 128
bytes ( pcie brust size ) ,
cat /proc/asound/card0/pcm0p/sub0/hw_params
access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 1024
buffer_size: 16384
In his case , mplayer is using alsa-pulse plugin and pulse device has no
specific constraint on hw_params , so 31.25 ms is normal since PA did not
reject the 0.5 seconds and 16 periods
since mplayer is no using pulse api , of course it will not adjust the
latency since pulse device is emulate an alsa hardware device
next prev parent reply other threads:[~2010-04-20 3:30 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-14 7:56 pulseaudio eats 19% CPU power in Fedora 12 Wu Fengguang
2010-04-14 8:31 ` Colin Guthrie
2010-04-19 3:28 ` Lennart Poettering
2010-04-19 3:38 ` [alsa-devel] " Daniel Chen
2010-04-21 0:30 ` Raymond Yau
2010-04-21 7:57 ` Colin Guthrie
2010-04-22 1:11 ` Raymond Yau
2010-04-22 7:53 ` Colin Guthrie
2010-04-19 5:20 ` Shuang He
2010-04-19 14:48 ` [pulseaudio-discuss] " Lennart Poettering
2010-04-20 3:30 ` Raymond Yau [this message]
2010-04-19 8:34 ` Raymond Yau
2010-04-20 5:36 ` Raymond Yau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=q2s4f3252891004192030jb1ef91c1g452136230bbe8f82@mail.gmail.com \
--to=superquad.vortex2@gmail.com \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).