[OpenSIPS-Users] Opensips default parameters
M.Khaled W Chehab
kchehab at icucall.com
Mon Jun 17 13:46:29 CEST 2013
Please can you inform me ,what does that means and what are the 60 pkmem,
what do they demonstrate
database engine 'MYSQL' loaded
Control engine 'FIFO' loaded
entering fifo_cmd get_statistics pkmem:
pkmem:0-total_size = 0
pkmem:0-used_size = 0
pkmem:0-real_used_size = 0
pkmem:0-max_used_size = 0
pkmem:0-free_size = 0
pkmem:0-fragments = 0
pkmem:1-total_size = 33554432
pkmem:1-used_size = 519704
pkmem:1-real_used_size = 656576
pkmem:1-max_used_size = 656576
pkmem:1-free_size = 32897856
pkmem:1-fragments = 1
pkmem:2-total_size = 0
..
.
.
. pkmem:56-free_size = 32899416
pkmem:56-fragments = 2
pkmem:57-total_size = 0
pkmem:57-used_size = 0
pkmem:57-real_used_size = 0
pkmem:57-max_used_size = 0
pkmem:57-free_size = 0
pkmem:57-fragments = 0
pkmem:58-total_size = 33554432
pkmem:58-used_size = 518792
pkmem:58-real_used_size = 655016
pkmem:58-max_used_size = 655152
pkmem:58-free_size = 32899416
pkmem:58-fragments = 2
pkmem:59-total_size = 0
pkmem:59-used_size = 0
pkmem:59-real_used_size = 655016
pkmem:59-max_used_size = 655152
pkmem:59-free_size = 32899416
pkmem:59-fragments = 2
regards
From: users-bounces at lists.opensips.org
[mailto:users-bounces at lists.opensips.org] On Behalf Of Flavio Goncalves
Sent: Monday, June 17, 2013 1:21 PM
To: OpenSIPS users mailling list
Cc: users-bounces at lists.opensips.org
Subject: Re: [OpenSIPS-Users] Opensips default parameters
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 <mailto:SIP%3Aflavio 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 whats 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 whats 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/?
<https://mail.google.com/mail/h/52oaqmxcphmc/?&v=c&th=13f4cc0b3154e273>
&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/93340c0b/attachment-0001.htm>
More information about the Users
mailing list