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
ALSA 15% CPU load for a simple mp3 [SOLVED]
ALSA 15% CPU load for a simple mp3 [SOLVED]
Last edited by akira86 on Fri Jan 01, 2010 6:49 pm, edited 1 time in total.
Re: ALSA 15% CPU load for a simple mp3
Do you also use OSS module or do you use OSS emulation provided by ALSA?
Re: ALSA 15% CPU load for a simple mp3
I use the oss module
(I didn't put aoss before mplayer -ao oss ...)
When I try :
it take as much CPU as "mplayer -ao alsa mp3.mp3" ... which is normal.
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
Re: ALSA 15% CPU load for a simple mp3
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..
CPU usage of Alsa with mplayer is a common problem for ages with other hardware, too..
Re: ALSA 15% CPU load for a simple mp3
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.
I try oss4 but it doesn't detect my hardware.
Re: ALSA 15% CPU load for a simple mp3
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...
I disabled dmix witch resample the music ... witch take cpu.
Now it takes 4 or 5 % of my CPU...