[OpenSIPS-Users] Opensips default parameters

Flavio Goncalves flavio at voffice.com.br
Mon Jun 17 12:21:17 CEST 2013


opensipsctl fifo get_statistics pkmem:

Flavio E. Goncalves
CEO - V.Office Redes e Telecomunicações Ltda.
Phone: +55 48-3025-8590, +1 248-688-0960
VoIP: SIP:flavio at opensips.org,Skype:flaviogoncalves1
Linkedin: www.linkedin.com/in/flavioegoncalves
Twitter: www.twitter.com/asteriskguide



2013/6/17 M.Khaled W Chehab <kchehab at icucall.com>

> Hi Flavio,****
>
> ** **
>
> Thanks for your reply ,****
>
> I am in need to know what the perfect parameters it should use for shmem
> and pkmem for 400 call per second  ,and what will happen if  opensips
> exceed   the assigned memory –m 2048 moreover  ****
>
> What about  –M  option is it for each child ? ****
>
> And what’s the perfect value for this parameter ?****
>
> ** **
>
> As for the command ,whats missing !!****
>
> ** **
>
> Opensips:~# opensipsctl fifo get_statistics shmem****
>
> database engine 'MYSQL' loaded****
>
> Control engine 'FIFO' loaded****
>
> entering fifo_cmd get_statistics shmem****
>
> 404 Statistics Not Found****
>
> FIFO command was:****
>
> :get_statistics:opensips_receiver_23414****
>
> shmem****
>
> ** **
>
> ** **
>
> Opensips:~# opensipsctl fifo get_statistics pkmem****
>
> database engine 'MYSQL' loaded****
>
> Control engine 'FIFO' loaded****
>
> entering fifo_cmd get_statistics pkmem****
>
> 404 Statistics Not Found****
>
> FIFO command was:****
>
> :get_statistics:opensips_receiver_23466****
>
> Pkmem****
>
> ** **
>
> ** **
>
> ** **
>
> *From:* users-bounces at lists.opensips.org [mailto:
> users-bounces at lists.opensips.org] *On Behalf Of *Flavio Goncalves
> *Sent:* Monday, June 17, 2013 6:50 AM
>
> *To:* OpenSIPS users mailling list
> *Cc:* users-bounces at lists.opensips.org
> *Subject:* Re: [OpenSIPS-Users] Opensips default parameters****
>
> ** **
>
> Hi Khaled, ****
>
> ** **
>
> You can discover the memory actually used by the system using****
>
> ** **
>
> opensipsctl fifo get_statistics shmem****
>
> opensipsctl fifo get_statistics pkmem****
>
> ** **
>
> I guess you will be a little disappointed with so much ram wasted,
> OpenSIPS do not consume much ;-). ****
>
> ** **
>
> Flavio.****
>
> ** **
>
> ** **
>
> 2013/6/16 M.Khaled W Chehab <kchehab at icucall.com>****
>
> I set children=24   in opensips.cfg
>
> Does That mean 24 *16  =384 MB and what is the suitable value for
> P_MEMORY
>
> And   -M 2048 that means all sessions will have 2048 memory only and after
> that it crashes ?
>
> Memory configuration is not clear in documentation for me ,please can you
> simplify it by answering my question
>
> What are the correct parameters should be in  P_MEMORY and  S_MEMORY  in
> order to handle 400 call per second and 1000 connected call J****
>
> Or what’s the formula to calculate the cpu and memory usage****
>
> /usr/local/opensips/sbin/opensips -M 8 -m 2048****
>
> Opensips.cfg
> debug=1
> log_stderror=no
> log_facility=LOG_LOCAL7
> log_name="opensips"
> fork=yes
> children=24
>
> cat /etc/default/opensips
> # OpenSIPS startup options
> #
> # Set to yes to enable opensips, once configured properly.
> RUN_OPENSIPS=yes
> # User to run as
> USER=root
> # Group to run as
> GROUP=root
> # Amount of shared memory to allocate for the running OpenSIPS server (in
> Mb)
> S_MEMORY=256
> # Amount of pkg memory to allocate for the running OpenSIPS server (in Mb)
> P_MEMORY=16
> DUMP_CORE=no
>
>
>
> ****
>
> -----Original Message-----
> From: users-bounces at lists.opensips.org [mailto:
> users-bounces at lists.opensips.org] On Behalf Of Nick Khamis
> Sent: Sunday, June 16, 2013 11:34 PM
> To: OpenSIPS users mailling list
> Cc: users-bounces at lists.opensips.org
> Subject: Re: [OpenSIPS-Users] Opensips default parameters
>
> Is this related to your earlier post:
> https://mail.google.com/mail/h/52oaqmxcphmc/?&v=c&th=13f4cc0b3154e273?
>
> /usr/local/opensips/sbin/opensips -M 8 -m 2048 (or whatever you want to
> allocate)
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users****
>
> ** **
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130617/bfccc34b/attachment.htm>


More information about the Users mailing list