ALSA 15% CPU load for a simple mp3 [SOLVED]

Post Reply
akira86
Posts: 13
Joined: Wed Oct 21, 2009 8:02 pm

ALSA 15% CPU load for a simple mp3 [SOLVED]

Post by akira86 »

Hello

I tried with gentoo and archlinux but when I play a music (with mplayer for exemple) it take 15 to 20 % of my CPU.

I tried with oss output (instead of alsa) and it just take 2%...

I use the snd_hda_intel module but I don't know if I have to put some specific options.

Could you help me please.
(it's a fit-pc2, 1.6Ghz)

PS : sorry for my bad english
Last edited by akira86 on Fri Jan 01, 2010 6:49 pm, edited 1 time in total.

ypnos
Posts: 33
Joined: Tue Nov 24, 2009 2:13 am

Re: ALSA 15% CPU load for a simple mp3

Post by ypnos »

Do you also use OSS module or do you use OSS emulation provided by ALSA?

akira86
Posts: 13
Joined: Wed Oct 21, 2009 8:02 pm

Re: ALSA 15% CPU load for a simple mp3

Post by akira86 »

I use the oss module

Code: Select all

lsmod| grep oss
snd_seq_oss            31232  0 
snd_seq_midi_event      7036  1 snd_seq_oss
snd_seq                53808  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          6792  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            40320  0 
snd_mixer_oss          17564  1 snd_pcm_oss
snd_pcm                74496  3 snd_pcm_oss,snd_hda_intel,snd_hda_codec
snd                    58820  13 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_hda_codec_realtek,snd_mixer_oss,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer

(I didn't put aoss before mplayer -ao oss ...)

When I try :

Code: Select all

aoss mplayer -ao oss mp3.mp3
it take as much CPU as "mplayer -ao alsa mp3.mp3" ... which is normal.

ypnos
Posts: 33
Joined: Tue Nov 24, 2009 2:13 am

Re: ALSA 15% CPU load for a simple mp3

Post by ypnos »

If you don't want to use OSS emulation because of it's drawbacks, you could install OSS4 and use that instead of alsa. A new release just came out last month or so.

CPU usage of Alsa with mplayer is a common problem for ages with other hardware, too..

akira86
Posts: 13
Joined: Wed Oct 21, 2009 8:02 pm

Re: ALSA 15% CPU load for a simple mp3

Post by akira86 »

Yes but it's not just a problem with mplayer .. every thing that use alsa take 15 % of CPU...

I try oss4 but it doesn't detect my hardware.

akira86
Posts: 13
Joined: Wed Oct 21, 2009 8:02 pm

Re: ALSA 15% CPU load for a simple mp3

Post by akira86 »

It's ok I solved the problem

I disabled dmix witch resample the music ... witch take cpu.
Now it takes 4 or 5 % of my CPU...

Post Reply

Return to “Linux on fit-PC2”