Re: [OpenSIPS-Users] recommended settings for performance

2016-02-05 Thread Alex Balashov
  Bogdan,For moderately I/O-bound processing, what is the optimal number of child processes in relation to CPU cores?You say that the number of child processes can exceed available cores (i.e. nproc). By how much? Where is the point at which contention, locking and waiting leads to diminishing returns?My personal experience suggests that on an 8-core system, architectural diminishing returns of ‎this sort appear quite rapidly, and that 32 would be far too many worker processes. However, last time I really experimented was some years ago.-- Alex--Alex Balashov | Principal | Evariste Systems LLC303 Perimeter Center North, Suite 300Atlanta, GA 30346United StatesTel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)Web: http://www.evaristesys.com/, http://www.csrpswitch.com/Sent from my BlackBerry.From: Bogdan-Andrei IancuSent: Friday, February 5, 2016 05:45To: OpenSIPS users mailling list; Søren AndersenReply To: OpenSIPS users mailling listSubject: Re: [OpenSIPS-Users] recommended settings for performance
  

  
  
Hi Søren,

The throughput of your opensips highly depends on your script - if
your logic is complex, if it performs many external queries
(db,radius, rest, etc). It is more test and see approach - monitor
the load of your opensips and adjusted based on your observations .

Trying to answer to your questions:

1) assuming there is a need for CPU processing, you should configure
a number of total processes (in opensips) at least equal to the
number of cores - the opensips as overall app can use all the cores
in the same time.

2) I guess you mean about memory ? if you have large CPS / parallel
calls / registrations, consider increasing the shm memory  - anyhow,
inspect the mem usage at runtime with "opensipsctl fifo
get_statistics shmem: "  and re-adjust

3) if you script is I/O intensive (DNS, DB, RADIUS, REST), better
have a large number of processes (32?). If not, try to correlated
with the number of cores you have. Also, adjust on the run by
checking the internal load via "opensipsctl fifo get_statistics
load: "

Regards, 
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 01.02.2016 23:31, Søren Andersen
  wrote:


  
  
  
  
Hello there,
 
I’m looking for some
reference configs on opensips performance.

 
- 
  How
many cpu cores are you using and how many CPS are you
peaking at?
- 
  Which
startoptions in opensipsctlrc are you using?
- 
  How
many opensips process children are you running?
 
Currently I’m planning
to use STARTOPTIONS="-m 2048 -M 8" on a 2 core VM with
children=8. – I hope I’ll be able to run 600-1500 currently
call on that setup. But that are your experience?
 
/Søren
 
  
  
  
  
  ___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



  



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] recommended settings for performance

2016-02-05 Thread Bogdan-Andrei Iancu

Hi Søren,

The throughput of your opensips highly depends on your script - if your 
logic is complex, if it performs many external queries (db,radius, rest, 
etc). It is more test and see approach - monitor the load of your 
opensips and adjusted based on your observations .


Trying to answer to your questions:

1) assuming there is a need for CPU processing, you should configure a 
number of total processes (in opensips) at least equal to the number of 
cores - the opensips as overall app can use all the cores in the same time.


2) I guess you mean about memory ? if you have large CPS / parallel 
calls / registrations, consider increasing the shm memory  - anyhow, 
inspect the mem usage at runtime with "opensipsctl fifo get_statistics 
shmem: "  and re-adjust


3) if you script is I/O intensive (DNS, DB, RADIUS, REST), better have a 
large number of processes (32?). If not, try to correlated with the 
number of cores you have. Also, adjust on the run by checking the 
internal load via "opensipsctl fifo get_statistics load: "


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 01.02.2016 23:31, Søren Andersen wrote:


Hello there,

I’m looking for some reference configs on opensips performance.

-How many cpu cores are you using and how many CPS are you peaking at?

-Which startoptions in opensipsctlrc are you using?

-How many opensips process children are you running?

Currently I’m planning to use STARTOPTIONS="-m 2048 -M 8" on a 2 core 
VM with children=8. – I hope I’ll be able to run 600-1500 currently 
call on that setup. But that are your experience?


/Søren



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] recommended settings for performance

2016-02-01 Thread Søren Andersen
Hello there,

I'm looking for some reference configs on opensips performance.


-  How many cpu cores are you using and how many CPS are you peaking at?

-  Which startoptions in opensipsctlrc are you using?

-  How many opensips process children are you running?

Currently I'm planning to use STARTOPTIONS="-m 2048 -M 8" on a 2 core VM with 
children=8. - I hope I'll be able to run 600-1500 currently call on that setup. 
But that are your experience?

/Søren

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users