OpenVZ Forum


Home » General » Support » *SOLVED* Asterisk inside VPS slow
*SOLVED* Asterisk inside VPS slow [message #7358] Thu, 12 October 2006 04:56 Go to next message
chinaman is currently offline  chinaman
Messages: 15
Registered: August 2006
Junior Member
Hello,

i am testing to use asterisk inside a VPS and i 've been shocked when I checked the times fro translating codecs. I am running Debian as well on HW as inside VPS.

voip*CLI> show translation
         Translation times between formats (in milliseconds)
          Source Format (Rows) Destination Format(Columns)

         g723   gsm  ulaw  alaw  g726 adpcm  slin lpc10  g729 speex  ilbc
   g723     -     -     -     -     -     -     -     -     -     -     -
    gsm     -     -    26    26    80    39    25   128     -   683   516
   ulaw     -    58     -     1    62    21     7   110     -   665   498
   alaw     -    59     1     -    63    22     8   111     -   666   499
   g726     -   102    52    52     -    65    51   154     -   709   542
  adpcm     -    52     2     2    56     -     1   104     -   659   492
   slin     -    51     1     1    55    14     -   103     -   658   491
  lpc10     -   138    88    88   142   101    87     -     -   745   578
   g729     -     -     -     -     -     -     -     -     -     -     -
  speex     -   102    52    52   106    65    51   154     -     -   542
   ilbc     -   130    80    80   134    93    79   182     -   737     -


To see the difference I installed Asterisk inside the HW and here it seems to be OK.

*CLI> show translation
         Translation times between formats (in milliseconds)
          Source Format (Rows) Destination Format(Columns)

         g723   gsm  ulaw  alaw  g726 adpcm  slin lpc10  g729 speex  ilbc
   g723     -     -     -     -     -     -     -     -     -     -     -
    gsm     -     -     2     2     2     2     1     4     -    25    15
   ulaw     -     2     -     1     2     2     1     4     -    25    15
   alaw     -     2     1     -     2     2     1     4     -    25    15
   g726     -     2     2     2     -     2     1     4     -    25    15
  adpcm     -     2     2     2     2     -     1     4     -    25    15
   slin     -     1     1     1     1     1     -     3     -    24    14
  lpc10     -     3     3     3     3     3     2     -     -    26    16
   g729     -     -     -     -     -     -     -     -     -     -     -
  speex     -     2     2     2     2     2     1     4     -     -    15
   ilbc     -     3     3     3     3     3     2     5     -    26     - 


Does anybody know about such Problem. Where could I do some more tests to figure out what might be wrong?

Thanks.
Best reards

Thomas

[Updated on: Thu, 12 October 2006 12:31] by Moderator

Report message to a moderator

Re: Asterisk inside VPS slow [message #7359 is a reply to message #7358] Thu, 12 October 2006 05:44 Go to previous messageGo to next message
John Kelly is currently offline  John Kelly
Messages: 97
Registered: May 2006
Location: Palmetto State
Member
Have you read the wiki?

http://wiki.openvz.org/Asterisk_in_VE_with_debian_stable


Re: Asterisk inside VPS slow [message #7360 is a reply to message #7359] Thu, 12 October 2006 06:24 Go to previous messageGo to next message
chinaman is currently offline  chinaman
Messages: 15
Registered: August 2006
Junior Member
John Kelly wrote on Thu, 12 October 2006 01:44

Have you read the wiki?



Yes, I did. But I didn't saw any special instructions in there as long I am not using capi or zaptel. Did I missed anything?

I compiled latest Asterisk release from source (1.2.12.1)
Re: Asterisk inside VPS slow [message #7362 is a reply to message #7360] Thu, 12 October 2006 07:04 Go to previous messageGo to next message
Valmont is currently offline  Valmont
Messages: 225
Registered: September 2005
Senior Member
Standart question:

Is there any faults in /proc/user_beancounters ?
Re: Asterisk inside VPS slow [message #7363 is a reply to message #7362] Thu, 12 October 2006 07:57 Go to previous messageGo to next message
chinaman is currently offline  chinaman
Messages: 15
Registered: August 2006
Junior Member
My /proc/user_beancounters

Version: 2.5
       uid  resource           held    maxheld    barrier      limit    failcnt
       103: kmemsize         639423     936483    2752512    2936012          0
            lockedpages           0          0         32         32          0
            privvmpages       11276      32240      49152      53575          0
            shmpages              0       3360       8192       8192          0
            dummy                 0          0          0          0          0
            numproc              22         36         65         65          0
            physpages          9308      31498          0 2147483647          0
            vmguarpages           0          0       6144 2147483647          0
            oomguarpages       9308      31498       6144 2147483647          0
            numtcpsock            3         13         80         80          0
            numflock              1          7        100        110          0
            numpty                1          3         16         16          0
            numsiginfo            0          4        256        256          0
            tcpsndbuf             0     146520     319488     524288          0
            tcprcvbuf             0     221936     319488     524288          0
            othersockbuf      15540     134488     132096     336896       2993
            dgramrcvbuf           0     131800     132096     132096      45042
            numothersock          8         33         80         80          0
            dcachesize       123760     151300    1048576    1097728          0
            numfile             244       1060       2048       2048          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            10         10        128        128          0


So it looks that there is a problem with othersockbuf and dgramrcvbuf. May I change this parameters without restart the VPS? May I disable all quotas for testing without shutdwon?

Thanks.
Re: Asterisk inside VPS slow [message #7364 is a reply to message #7363] Thu, 12 October 2006 08:00 Go to previous messageGo to next message
Valmont is currently offline  Valmont
Messages: 225
Registered: September 2005
Senior Member
Yes, you can change it on the fly. man vzctl

[Updated on: Thu, 12 October 2006 08:05]

Report message to a moderator

Re: Asterisk inside VPS slow [message #7369 is a reply to message #7364] Thu, 12 October 2006 08:23 Go to previous messageGo to next message
chinaman is currently offline  chinaman
Messages: 15
Registered: August 2006
Junior Member
Thanks. That worked!
Now the show translation table looks the same in VPS and HW.

2 more questions:

1. Is maxheld in /proc/user_beancounters the maximum ever used number of sockets?

2. Which values are preferable for distance between barrier and limit?

Thanks again.
Best regards

Thomas
Re: Asterisk inside VPS slow [message #7371 is a reply to message #7369] Thu, 12 October 2006 08:42 Go to previous message
Valmont is currently offline  Valmont
Messages: 225
Registered: September 2005
Senior Member
1. Yes.

2. It depend's on what resource you manage. I think, in most cases the safe distance value is default. Certanly, you may increase it.

[Updated on: Thu, 12 October 2006 08:43]

Report message to a moderator

Previous Topic: *SOLVED* getting rid of venet0 - just physical interfaces
Next Topic: Intermitent freeze at "initializing hardware... storage network audio"
Goto Forum:
  


Current Time: Sun Jul 21 21:13:22 GMT 2024

Total time taken to generate the page: 0.02470 seconds