Is it normal for pulseaudio to have 20% CPU load? [not relevant]

asked 2014-02-13 15:08:30 +0200

umko gravatar image

updated 2015-03-10 18:42:23 +0200

While I am quite happy with the Jolla battery standby time, I have noticed that if I am listening to music or podcasts, my battery is draining quite much faster than when I am just using apps.

Looking at the "top" output, it shows that pulsaudio has an average load of around 20% on the CPU while music is playing.

Is this normal and are there any possibilities for optimization?

UPDATE March 2015: At some point of time (probably with one of the updates) the problem disappeared.

edit retag flag offensive reopen delete

The question has been closed for the following reason "question is not relevant or outdated" by umko
close date 2015-09-20 01:24:03.894105

Comments

Could you be more specific as to where you are getting this data from? Are you are using Crest from Warehouse Repo's to see the CPU usage?

Spam Hunter ( 2014-02-13 17:22:27 +0200 )edit

just top in the fingerterm, while music is playing. pulsaudio is always at the top with 17%-20% CPU load.

umko ( 2014-02-13 17:25:17 +0200 )edit
1

I have 1-4 % load while playing. What kind of files are you playing? Can you provide a sample?

STiAT ( 2014-02-13 21:21:14 +0200 )edit

Well, it does not seem to be dependent on the file itself. Take any standard TWiT Mp3 episode. It is the same when I listen through AntennaPod (Android Podcatcher) or the native Media player (17-20% for pulseaudio + a few percentage points for the application itself).

umko ( 2014-02-13 22:10:46 +0200 )edit
2

@umko - What is the sampling rate of your MP3 file? If it is not the native frequency, pulse will have to use a sample rate conversion algorithm, which depending on configuration, may be expensive. If it uses the common speex3 setting, I guess 20% would be normal.

I have read more recent pulseaudio libraries are a bit better in this respect.

mikelima ( 2014-03-14 12:57:52 +0200 )edit