Re: [asterisk-users] Max how many users in sip.conf

2009-12-01 Thread mtha...@gmail.com
later i figured out the following.

my sip.conf was 2.2Mega Bytes size when populated with 50k users. That means
2.2 x 1024 = 2.2 GB of memory. which is definitely not an option with my
small amazon system.  I tried with 20k users, hola.. everything works fine.
tried with 25k, still works, but asterisk took time to load sip module.
tried with 40k, asterisk couldn't start.

so decided to settle with 25k userbase.

regards

MT Kondela

On Mon, Nov 30, 2009 at 9:13 PM, Noah Miller noahisaacmil...@gmail.comwrote:

  I’m running CENTOS 5.3 with apache 2, asterisk 1.4.26.2, mysql 5 and php
  5.2.11.  top shows 928mb out of 1035mb in use with idle asterisk and 17
  users. There could be a problem, but I’m relatively new to CENTOS, so any
  suggestions would be happy.

 I use CentOS for asterisk boxen, too, and my first task after
 installing the OS is always to use chkconfig to disable the many
 totally unnecessary processes that are on by default.  I can usually
 get it down to around 400MB - 600MB used, including asterisk (mostly
 small offices with less than 20 users).  I never use mysql or any
 other dbms, though.


 - Noah

 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Max how many users in sip.conf

2009-12-01 Thread Leif Neland
mtha...@gmail.com wrote:
 later i figured out the following.

 my sip.conf was 2.2Mega Bytes size when populated with 50k users. That 
 means 2.2 x 1024 = 2.2 GB of memory. which is definitely not an option 
 with my small amazon system.  I tried with 20k users, hola.. 
 everything works fine. tried with 25k, still works, but asterisk took 
 time to load sip module. tried with 40k, asterisk couldn't start.

 so decided to settle with 25k userbase.

Perhaps you should look into realtime; storing the users in MySql 
database instead.

Leif


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Max how many users in sip.conf

2009-12-01 Thread Danny Nicholas
Perhaps the sip.conf could be simplified so that each user would take a
smaller chunk.  In my experience, either way the system will take some time
(several minutes) to start up with this quantity of users (20 or 50K).

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Leif Neland
Sent: Tuesday, December 01, 2009 8:23 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Max how many users in sip.conf

mtha...@gmail.com wrote:
 later i figured out the following.

 my sip.conf was 2.2Mega Bytes size when populated with 50k users. That 
 means 2.2 x 1024 = 2.2 GB of memory. which is definitely not an option 
 with my small amazon system.  I tried with 20k users, hola.. 
 everything works fine. tried with 25k, still works, but asterisk took 
 time to load sip module. tried with 40k, asterisk couldn't start.

 so decided to settle with 25k userbase.

Perhaps you should look into realtime; storing the users in MySql 
database instead.

Leif


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Max how many users in sip.conf

2009-11-30 Thread Leif Neland

Tilghman Lesher wrote:

On Sunday 29 November 2009 17:03:04 Leif Neland wrote:
  

mtha...@gmail.com skrev:


Anyone know how many users i can record in sip.conf. (NO..NO i am not
discussing the simultaneous sip calls).
I tried with 50k users in sip.conf, but the sip module didn't reload.
tried with few hundred of users and it works.  any idea what is the
limit in sip.conf
  

Try a binary search
in 15 tries you have the exact value.

Start with 32768 entries.
If it works, add 32768/2 =16384.
If not, subtract 16384, giving 16384.

Continue, adding/subtracting
8192,4096.2048,1024,512,256,128,64,32,16.8,4,2,1



There is no maximum.  However, if you have a typo in there somewhere, the
entire file will fail to load.

  

Not sure that is correct.
I added some garbage, and while I got warnings, the rest of the users 
loaded correctly
WARNING[79673]: config.c:1124 process_text_line: No '=' (equal sign) in 
line 104 of /usr/local/etc/asterisk/sip.conf
WARNING[79673]: chan_sip.c:22771 reload_config: Unknown type 'friendly' 
for '36949608' in sip.conf


Line numbers on all errors would be nice, but perhaps the second line is 
syntactly correct, and is parsed by config.c, but when chan_sip tries to 
use it, and see it gives no meaning, it does not know where the info 
came from in the first place.


Leif

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Max how many users in sip.conf

2009-11-30 Thread Danny Nicholas
It is limited by the amount of memory available to your computer.  Each user
takes up a chunk of available memory.  Let's say for arguments sake that the
amount is 4kb (using top might give you a better idea of the real usage and
what you're starting with). 50K users at 4kb apiece would use 200mb and most
smaller servers start with 2gb or (much) less available.  If you had 1gb of
memory, a 200mb load with everything else would be pretty taxing.   Hope
this is helpful.

 

  _  

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of
mtha...@gmail.com
Sent: Saturday, November 28, 2009 5:53 AM
To: asterisk-users@lists.digium.com
Subject: [asterisk-users] Max how many users in sip.conf

 


Anyone know how many users i can record in sip.conf. (NO..NO i am not
discussing the simultaneous sip calls).
I tried with 50k users in sip.conf, but the sip module didn't reload.  tried
with few hundred of users and it works.  any idea what is the limit in
sip.conf

regards

Mike

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Max how many users in sip.conf

2009-11-30 Thread David Gibbons
snip
If you had 1gb of memory, a 200mb load with everything else would be pretty 
taxing.   Hope this is helpful.
/snip

What distro are you using?? If linux is using 800Mb of memory in an idle state 
for anything other than file system caching, there's a problem...

-Dave

From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of mtha...@gmail.com
Sent: Saturday, November 28, 2009 5:53 AM
To: asterisk-users@lists.digium.com
Subject: [asterisk-users] Max how many users in sip.conf


Anyone know how many users i can record in sip.conf. (NO..NO i am not 
discussing the simultaneous sip calls).
I tried with 50k users in sip.conf, but the sip module didn't reload.  tried 
with few hundred of users and it works.  any idea what is the limit in sip.conf

regards

Mike
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Max how many users in sip.conf

2009-11-30 Thread Danny Nicholas
I'm running CENTOS 5.3 with apache 2, asterisk 1.4.26.2, mysql 5 and php
5.2.11.  top shows 928mb out of 1035mb in use with idle asterisk and 17
users. There could be a problem, but I'm relatively new to CENTOS, so any
suggestions would be happy.

 

  _  

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of David Gibbons
Sent: Monday, November 30, 2009 8:27 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: Re: [asterisk-users] Max how many users in sip.conf

 

snip

If you had 1gb of memory, a 200mb load with everything else would be pretty
taxing.   Hope this is helpful.

/snip

 

What distro are you using?? If linux is using 800Mb of memory in an idle
state for anything other than file system caching, there's a problem.

 

-Dave

  _  

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of
mtha...@gmail.com
Sent: Saturday, November 28, 2009 5:53 AM
To: asterisk-users@lists.digium.com
Subject: [asterisk-users] Max how many users in sip.conf

 


Anyone know how many users i can record in sip.conf. (NO..NO i am not
discussing the simultaneous sip calls).
I tried with 50k users in sip.conf, but the sip module didn't reload.  tried
with few hundred of users and it works.  any idea what is the limit in
sip.conf

regards

Mike

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Max how many users in sip.conf

2009-11-30 Thread Noah Miller
 I’m running CENTOS 5.3 with apache 2, asterisk 1.4.26.2, mysql 5 and php
 5.2.11.  top shows 928mb out of 1035mb in use with idle asterisk and 17
 users. There could be a problem, but I’m relatively new to CENTOS, so any
 suggestions would be happy.

I use CentOS for asterisk boxen, too, and my first task after
installing the OS is always to use chkconfig to disable the many
totally unnecessary processes that are on by default.  I can usually
get it down to around 400MB - 600MB used, including asterisk (mostly
small offices with less than 20 users).  I never use mysql or any
other dbms, though.


- Noah

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Max how many users in sip.conf

2009-11-29 Thread Leif Neland
mtha...@gmail.com skrev:

 Anyone know how many users i can record in sip.conf. (NO..NO i am not 
 discussing the simultaneous sip calls).
 I tried with 50k users in sip.conf, but the sip module didn't reload.  
 tried with few hundred of users and it works.  any idea what is the 
 limit in sip.conf
Try a binary search
in 15 tries you have the exact value.

Start with 32768 entries.
If it works, add 32768/2 =16384.
If not, subtract 16384, giving 16384.

Continue, adding/subtracting 
8192,4096.2048,1024,512,256,128,64,32,16.8,4,2,1

Leif




___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Max how many users in sip.conf

2009-11-29 Thread Tilghman Lesher
On Sunday 29 November 2009 17:03:04 Leif Neland wrote:
 mtha...@gmail.com skrev:
  Anyone know how many users i can record in sip.conf. (NO..NO i am not
  discussing the simultaneous sip calls).
  I tried with 50k users in sip.conf, but the sip module didn't reload.
  tried with few hundred of users and it works.  any idea what is the
  limit in sip.conf

 Try a binary search
 in 15 tries you have the exact value.

 Start with 32768 entries.
 If it works, add 32768/2 =16384.
 If not, subtract 16384, giving 16384.

 Continue, adding/subtracting
 8192,4096.2048,1024,512,256,128,64,32,16.8,4,2,1

There is no maximum.  However, if you have a typo in there somewhere, the
entire file will fail to load.

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com  www.asterisk.org

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Max how many users in sip.conf

2009-11-28 Thread mtha...@gmail.com
Anyone know how many users i can record in sip.conf. (NO..NO i am not
discussing the simultaneous sip calls).
I tried with 50k users in sip.conf, but the sip module didn't reload.  tried
with few hundred of users and it works.  any idea what is the limit in
sip.conf

regards

Mike
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users