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 LLC
303 Perimeter Center North, Suite 300
Atlanta, GA 30346
United States

Tel: +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 Iancu
Sent: Friday, February 5, 2016 05:45
To: OpenSIPS users mailling list; Søren Andersen
Reply To: OpenSIPS users mailling list
Subject: 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

Reply via email to