100% CPU usage with ALSA dmix enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



maybe it's for resample problem.

In you .asound.rc is 8000  rate. Do you use in pjsip application same rate?
if not pjsip try resample it. by quality options is select algorithm
in pjsua its options --quality ..i dont know now right path but when you look 
at  PJMEDIA_RESAMPLE_IMP in source you find all what you need about it.




On Friday, May 25, 2012 11:37:15 am Andrey Karlov wrote:
> I have 100% CPU usage with ALSA dmix enabled on my ARMv5 machine. Without
> dmix CPU usage lesser - 10-15%. Can anyone explain me why? And how to fix
> it?
> 
> Some additional info:
> 
> # cat /proc/cpuinfo
> Processor    : XScale-V3 based processor rev 7 (v5l)
> BogoMIPS    : 804.45
> Features    : swp half thumb fastmult edsp iwmmxt
> CPU implementer    : 0x69
> CPU architecture: 5TE
> CPU variant    : 0x0
> CPU part    : 0x682
> CPU revision    : 7
> 
> Hardware    : Toradex Colibri PXA320
> Revision    : 0000
> Serial        : 000023c9222d1400
> 
> # cat .asoundrc
> pcm.!default {
>         type plug
>         slave.pcm "asymed"
> }
> 
> pcm.dmixer {
>         type dmix
>         ipc_key 1024
>         slave {
>                 pcm "hw:0,0"
>                 period_time 0
>                 period_size 2048
>                 buffer_size 4096
>                 channels 1
>                 rate 8000
>         }
>         bindings {
>                 0 0
>         }
> }
> 
> ctl.dmixer {
>         type hw
>         card 0
> }
> 
> pcm.dsnooped {
>         ipc_key 1027
>         type dsnoop
>         slave.pcm "hw:0,0"
> }
> 
> pcm.asymed {
>         type asym
>         playback.pcm "dmixer"
>         capture.pcm "dsnooped"
> }



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux