Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PulseAudio high CPU usage on NetBSD 7_RC1/amd64

15 views
Skip to first unread message

William D. Jones

unread,
Jul 27, 2015, 2:31:36 AM7/27/15
to
Hello all,

Can anyone who is using NetBSD in a desktop setting confirm whether PulseAudio uses 100% of one CPU core while a video is playing either in a web browser (such as Firefox) or a media player?

I'm currently unable to diagnose the issue, but since I installed it, any time I do either of the things listed above, a PulseAudio instance will consume 100% of WCPU/CPU according to top. Starting PulseAudio with log-level=debug does not show anything out of the ordinary, such as (many) buffer over/underruns. Copying the default daemon.conf from pkgsrc into ~/.config/pulse and changing the resampler to trivial does not fix the problem.

PulseAudio already crackles/glitches slightly as is, with the default high-priority/realtime settings, so I would prefer not to mess with that. Even taking realtime/high priority scheduling into account, something just doesn't seem right about the high CPU usage. At the very least, I can play an HTML5 video in Firefox on Linux, using a system with a slightly slower CPU, and pulse's CPU usage barely registers in top (realtime).

Does anyone have suggestions on how to go about trying to fix these issues? I need a sound mixer, and for better or worse, PulseAudio seems to be the standard solution.

As always, thanks for any help or steps in the right direction!

Sincerely,

--
William D. Jones <thor...@comcast.net>

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-...@muc.de

herbert langhans

unread,
Jul 27, 2015, 4:48:39 AM7/27/15
to
From: William D. Jones <thor...@comcast.net> [150727 08:31]
Hello all,
Can anyone who is using NetBSD in a desktop setting confirm whether PulseAudio uses 100% of one CPU core while a video is playing either in a web browser (such as Firefox) or a media player?
I'm currently unable to diagnose the issue, but since I installed it, any time I do either of the things listed above, a PulseAudio instance will consume 100% of WCPU/CPU according to top. Starting PulseAudio with log-level=debug does not show anything out of the ordinary, such as (many) buffer over/underruns. Copying the default daemon.conf from pkgsrc into ~/.config/pulse and changing the resampler to trivial does not fix the problem.
PulseAudio already crackles/glitches slightly as is, with the default high-priority/realtime settings, so I would prefer not to mess with that. Even taking realtime/high priority scheduling into account, something just doesn't seem right about the high CPU usage. At the very least, I can play an HTML5 video in Firefox on Linux, using a system with a slightly slower CPU, and pulse's CPU usage barely registers in top (realtime).
Does anyone have suggestions on how to go about trying to fix these issues? I need a sound mixer, and for better or worse, PulseAudio seems to be the standard solution.
As always, thanks for any help or steps in the right direction!
Sincerely,
William D. Jones <thor...@comcast.net>


Hi Willian,
though I have an older version of NetBSD, and experienced the same
issue - pulseaudio took 100% of the CPU. Same here, using Firefox
and the videos.

Have you tried fiddling with the settings of
/usr/pkg/etc/pulse/daemon.conf?

I have changed these settings from the defaults to:
high-priority = no
realtime-scheduling = no
resample-method = trivial

Still it hogs on the ressources, but at least it works.

Cheers
herb langhans

William D. Jones

unread,
Jul 27, 2015, 4:20:19 PM7/27/15
to
On Mon, 27 Jul 2015 09:32:03 +0200
herbert langhans <w...@langhans.com.pl> wrote:

> Hi Willian,
> though I have an older version of NetBSD, and experienced the same
> issue - pulseaudio took 100% of the CPU. Same here, using Firefox
> and the videos.
>
> Have you tried fiddling with the settings of
> /usr/pkg/etc/pulse/daemon.conf?
>
> I have changed these settings from the defaults to:
> high-priority = no
> realtime-scheduling = no
> resample-method = trivial
>
> Still it hogs on the ressources, but at least it works.
>
> Cheers
> herb langhans
>

Hi, thanks for the suggestions.

PulseAudio in fact works fine even with the default settings, just uses 100% cpu usage. I added your suggested settings to my copy of daemon.conf, restarted PulseAudio, and still have 100% CPU usage in mplayer and Firefox.

So unfortunately, I don't think that's the culprit. Perhaps I need to compile a "vanilla" version instead of the pkgsrc version and see what happens with the CPU usage (and also look at other system's default settings).
0 new messages