[asterisk-dev] CPU Utilization with MixMonitor on Asterisk 11.2.1

Yoshinobu HOSAKA(iWeave inc.) yoshinobu.hosaka at iweave.jp
Thu Apr 4 00:00:56 CDT 2013


Hi all,

I am testing cpu load with mixmonitor on asterisk 11.2.1
The cpu utilization is  over 50% with 500 calls.
On same test with asterisk 1.8.21, the result is 25%.

Performance seems to be getting worse.
Please tell me your opinion.

The test environments, procedures, and result are shown below.

Environments:
OS Version: CentOS 6.4
Server: Dell PowerEdge R420 (Xeon E5-2430 2.20GHz, 2CPUs)
Memory: 16GB

Configurations:
sv1 is INITIATOR.
sv2 is TARGET.

sv1:sip.conf -------------------------
[general]
disallow=all
allow=ulaw
language=ja
dtmfmode=rfc2833
canreinvite=no
directmedia=no
[gw1]
type=peer
host=xxx.xxx.xxx.xxx
context=from_pstn

sv1:test.txt (to initiate call template) -------
Channel: local/S100 at from_pstn
Context: from_pstn
Extension: 0
Priority: 1

sv2:extensions.ael ------------------------------
context default {
  s => {
    answer;
    hangup;
  }
}
context from_pstn {
  _X. => {
    mixmonitor(/tmp/mon/${EXTEN}.gsm,b);
    dial(SIP/gw1/${EXTEN});
  }
}


Start load test:
On sv1, run the below command in the directory where test.txt is
located. sv1 initiates call per 0.05 sec up to 500 calls.

for x in $(seq 1001 1500) ; do sed -e "s/100/$x/" test.txt >
/var/spool/asterisk/outgoing/test$x.txt; echo $x; sleep 0.05; done


Results:
vmstat on sv2 ---------------------------------------

#vmstat 1
procs -----------memory---------- ---swap-- -----io---- --system--
-----cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy
id wa st
 0  0      0 11840060 123608 3845596    0    0     0     2    1    1  0
 0 99  0  0	
 0  0      0 11840052 123608 3845596    0    0     0     0 1173 2288  0
 0 100  0  0	
 0  0      0 11839764 123608 3845600    0    0     0     0 1386 2581  0
 0 100  0  0	
 0  0      0 11834544 123608 3845600    0    0     0     0 2171 3634  0
 0 99  0  0	
 0  0      0 11828116 123616 3845592    0    0     0    72 2206 3718  0
 0 100  0  0	
 0  0      0 11821528 123616 3845600    0    0     0     0 2199 3637  0
 0 100  0  0	
 0  0      0 11815936 123616 3845600    0    0     0     0 2009 3540  0
 0 100  0  0	
 0  0      0 11809612 123616 3845600    0    0     0     0 2563 3941  0
 0 100  0  0	
 0  0      0 11803344 123616 3845600    0    0     0     0 4918 8090  1
 0 99  0  0	
 0  0      0 11797028 123624 3845592    0    0     0    68 7024 14524  1
 1 98  0  0	
 0  0      0 11788744 123624 3845600    0    0     0     0 8573 22246  2
 1 97  0  0	
 0  0      0 11782276 123624 3845600    0    0    16     0 8903 29041  2
 1 96  0  0	
 0  0      0 11773952 123624 3845600    0    0     0     0 11652 37799
3  3 94  0  0	
 0  0      0 11766172 123624 3845600    0    0     0     0 13846 46215
3  4 93  0  0	
 0  0      0 11758412 123632 3845592    0    0     0    68 14074 54866
3  5 92  0  0	
20  0      0 11749720 123632 3845600    0    0     0     0 16169 63160
4  6 90  0  0	
22  0      0 11742204 123632 3845600    0    0     0     0 17592 70813
4  8 88  0  0	
 0  0      0 11735076 123632 3845600    0    0     0     0 20276 79477
6 12 82  0  0	
 0  0      0 11727744 123632 3845600    0    0     0     0 22735 87176
7 15 79  0  0	
 0  0      0 11718696 123640 3845592    0    0     0    64 24655 94831
7 19 74  0  0	
 1  0      0 11712180 123640 3845600    0    0     0     0 28429 104096
 8 22 70  0  0	
procs -----------memory---------- ---swap-- -----io---- --system--
-----cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy
id wa st
25  0      0 11704128 123640 3845600    0    0     0     0 29752 111040
 9 26 65  0  0	
51  0      0 11695876 123640 3845600    0    0     0     0 33797 118883
10 29 61  0  0	
25  0      0 11685968 123640 3845600    0    0     0     0 37763 126695
11 34 55  0  0	
 1  0      0 11678452 123648 3845592    0    0     0    72 40202 136627
12 37 51  0  0	
 0  0      0 11669088 123648 3845600    0    0     0     0 41703 143423
13 38 48  0  0	
30  0      0 11659992 123648 3845600    0    0     0     0 46834 151506
14 42 43  0  0	
57  0      0 11651736 123648 3845600    0    0     0     0 50758 162154
15 48 37  0  0	
70  0      0 11643204 123648 3845824    0    0     0     0 52457 170027
16 50 34  0  0	
34  0      0 11636948 123656 3846360    0    0     0    80 52636 179098
17 53 30  0  0	
 0  0      0 11633456 123656 3847040    0    0     0   176 48097 194972
18 56 26  0  0	
66  0      0 11631348 123656 3847616    0    0     0     0 48650 196958
19 59 22  0  0	
67  0      0 11628868 123656 3848160    0    0     0     0 46878 192299
19 59 22  0  0	
17  0      0 11625596 123656 3848832    0    0     0     0 45687 184703
19 60 22  0  0	
 0  0      0 11623248 123664 3849432    0    0     0    80 44498 190103
19 58 23  0  0	
 0  0      0 11620728 123664 3850048    0    0     0     4 41212 191725
18 58 23  0  0	
55  0      0 11617784 123664 3850656    0    0     0     0 41678 191252
19 58 23  0  0	
62  0      0 11617040 123664 3851264    0    0     0     0 41681 190655
18 59 23  0  0	
93  0      0 11616192 123664 3851840    0    0     0     0 42067 198321
18 57 25  0  0	
68  0      0 11615200 123672 3852408    0    0     0    52 42116 198189
18 57 25  0  0	
24  0      0 11614596 123672 3853024    0    0     0     0 41328 190591
18 58 24  0  0	
29  0      0 11614388 123672 3853632    0    0    16     0 40584 192130
18 56 26  0  0	


--------------------------------------------------------
If you require more information, let me know please.

Thank you.


-- 
Yoshinobu HOSAKA




More information about the asterisk-dev mailing list