[Asterisk-Dev] SMP is this the correct behavior??

Chris Stenton jacs at gnome.co.uk
Fri Sep 17 04:06:33 MST 2004


This is not asterisk ... it is dependent on what thread library you are 
using.

Chris

----- Original Message ----- 
From: "Chris Modesitt" <chris at octelecom.net>
To: <asterisk-dev at lists.digium.com>
Sent: Thursday, September 16, 2004 11:41 PM
Subject: [Asterisk-Dev] SMP is this the correct behavior??


> Asterisk dose not appear to be balancing any of its child processes 
> between
> the CPUS, it appears to bounce all of the processes from one CPU to the
> other. I have included several outputs from top displaying the last CPU 
> used
> for each thread. Is this how asterisk works with threading or should the
> processes be somewhat balanced over both processors?
>
>
>
> Thanks in Advance.
>
>
>
> Chris.
>
>
>
> Shot#1
>
> 4:40pm  up 3 days, 16:45,  1 user,  load average: 0.06, 0.24, 0.23
>
> 98 processes: 97 sleeping, 1 running, 0 zombie, 0 stopped
>
> CPU0 states:  3.2% user, 13.0% system,  0.0% nice, 83.1% idle
>
> CPU1 states:  1.0% user,  3.3% system,  0.0% nice, 95.0% idle
>
> Mem:  2069372K av,  552544K used, 1516828K free,       0K shrd,   85556K
> buff
>
> Swap: 2040244K av,       0K used, 2040244K free                  329556K
> cached
>
>
>
> PID USER     PRI  NI  SIZE  RSS SHARE LC STAT %CPU %MEM   TIME COMMAND
>
> 8573 root      18   0 17832  17M  3608  0 S     2.7  0.8   0:03 asterisk
>
> 32291 root      15   0 17832  17M  3608  0 S     2.3  0.8   6:06 asterisk
>
> 8960 root      11   0 17832  17M  3608  0 S     2.1  0.8   0:00 asterisk
>
> 8987 root      17   0  1044 1044   776  1 R     1.9  0.0   0:01 top
>
> 8752 root      11   0 17832  17M  3608  0 S     0.9  0.8   0:02 asterisk
>
> 8964 root      11   0 17832  17M  3608  0 S     0.9  0.8   0:00 asterisk
>
> 8997 root      13   0 17832  17M  3608  0 S     0.7  0.8   0:00 asterisk
>
> 9008 root      10   0 17832  17M  3608  0 S     0.3  0.8   0:00 asterisk
>
> 9013 root       9   0 17832  17M  3608  0 S     0.1  0.8   0:00 asterisk
>
>
>
>
>
> Shot#2
>
> 4:40pm  up 3 days, 16:46,  1 user,  load average: 0.18, 0.24, 0.23
>
> 99 processes: 98 sleeping, 1 running, 0 zombie, 0 stopped
>
> CPU0 states:  6.2% user, 12.4% system,  0.0% nice, 80.3% idle
>
> CPU1 states:  2.2% user,  6.3% system,  0.0% nice, 90.4% idle
>
> Mem:  2069372K av,  552592K used, 1516780K free,       0K shrd,   85556K
> buff
>
> Swap: 2040244K av,       0K used, 2040244K free                  329556K
> cached
>
>
>
> PID USER     PRI  NI  SIZE  RSS SHARE LC STAT %CPU %MEM   TIME COMMAND
>
> 9106 root      16   0 18952  18M  3608  1 S     2.3  0.9   0:00 asterisk
>
> 9096 root      13   0 18952  18M  3608  1 S     1.9  0.9   0:00 asterisk
>
> 8987 root      12   0  1044 1044   776  0 R     1.3  0.0   0:09 top
>
> 32291 root      14   0 18952  18M  3608  1 S     1.1  0.9   6:12 asterisk
>
> 9102 root      12   0 18952  18M  3608  1 S     0.7  0.9   0:00 asterisk
>
> 9113 root      10   0 18952  18M  3608  1 S     0.5  0.9   0:00 asterisk
>
> 9115 root      10   0 18952  18M  3608  1 S     0.5  0.9   0:00 asterisk
>
> 8573 root      10   0 18952  18M  3608  1 S     0.3  0.9   0:04 asterisk
>
> 9125 root       9   0 18952  18M  3608  1 S     0.3  0.9   0:00 asterisk
>
> 8764 root       9   0 18952  18M  3608  1 S     0.1  0.9   0:03 asterisk
>
> 9105 root       9   0 18952  18M  3608  1 S     0.1  0.9   0:00 asterisk
>
>
>
>
>
>


--------------------------------------------------------------------------------


> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev 




More information about the asterisk-dev mailing list