[asterisk-users] Optimizing Asterisk Environment

Nick Khamis symack at gmail.com
Mon Mar 25 10:18:41 CDT 2013


Hello Guys,

Thank you so much for your response. We reran the sipp test:

./sipp -sf uac_pcap.xml -s 1001 vancouver.example.com -l 250
-trace_err -mp 30000 -d 10000

The scenario is the standard contact asterisk play some rtp media. On
the asterisk, the echo test was used for the extension. This
simulating a two way audio test.

With ulimit set "ulimit -n 65535", and while the test was running:

# top
PID    PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+ COMMAND
16056 20   0 67568  25m 5812 S    36         0.7      0:36.90    asterisk


#iftop (nice tool by the way :)

vancouver.test.com => 192.168.2.100 1.75Mb    1.75Mb  1.75Mb
                             <=                      1.69Mb  1.70Mb  1.70Mb

# free -m
                 total       used       free     shared    buffers     cached
Mem:          3735        518       3217          0         30        438
-/+ buffers/cache:         48       3686
Swap:         2047          0       2047


# uptime

 10:55:09 up 2 days,  1:45,  1 user,  load average: 0.44, 0.46, 0.23

#ifconfig

UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:13222747 errors:0 dropped:0 overruns:1 frame:1
TX packets:62311814 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000


# vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 0  0      0 3293204  31824 450424    0    0     1     1   93    1  1  1 98  0

# dmesg | grep -i duplex
[   14.622293] e100 0000:00:02.0: eth3: NIC Link is Up 100 Mbps Full Duplex

We are running this on a test server (x330) just to help us with the
dimensioning process for now.

The important results from SIPP:

 Call-rate(length)               Port   Total-time  Total-calls  Remote-host
10.0(10000 ms)/1.000s   5060     654.01 s         6450  192.168.2.10:5060(UDP)

0 calls (limit 250)                    Peak was 91 calls, after 9 s


Elapsed Time       |    00:10:54:030
Call Rate              |    9.862 cps

Successful call     |        0       |     6450
Failed call            |        0       |        0

Is it safe to say that our test router is a lemon? Not sure if that's
the bottleneck at this moment. Since only 36% of CPU is being
utilized, and only 0.7% of memory. Are there any setting I should
double check to run asterisk in "full capacity".

Thank you so  much for your help,

Nick.

On 3/24/13, Steve Edwards <asterisk.org at sedwards.com> wrote:
>> On Sat, Mar 23, 2013 at 09:33:38AM -0400, Nick Khamis wrote:
>
>>> We are getting some rather poor results (relative) with our Asterisk
>>> setup.
>
> On Sun, 24 Mar 2013, Tzafrir Cohen wrote:
>
>> Run the system in "full capacity" and provide us some data. For
>> starters:
>>
>> free -m
>> uptime
>> vmstat
>
> ethtool - make sure the interfaces are set correctly - look for 'Speed:
> 1000Mb/s' and 'Duplex: Full'
>
> ifconfig - look at the error counters
>
> iftop - how many bits are you pushing in each direction
>
> I've got a 7 year old Xeon box with 2GB running Asterisk 1.2 that handles
> 300 channels just fine. I suspect a modern box with a modern Asterisk
> could do that in 'sleep mode.'
>
> --
> Thanks in advance,
> -------------------------------------------------------------------------
> Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
> Newline                                              Fax: +1-760-731-3000
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list