Re: GnuGK 2.3.4 not listening on more than 99 IP addresses.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We run thousands of interfaces successfully with gnugk. We had to
hand-build our ptlib for our platform, as it was compiling with a
static maximum limit of 100 interfaces.

If your platform has SIOCGIFNUM, ptlib should build with the ability
to dynamically choose the number of interfaces.

If your platform does not have SIOCGIFNUM, you will need to patch
src/ptlib/unix/socket.cxx with a number larger than 100.

Case in point: src/ptlib/unix/socket.cxx

#ifdef SIOCGIFNUM
  PAssert(::ioctl(sock.GetHandle(), SIOCGIFNUM, &ifNum) >= 0, "could
not do ioctl for ifNum");
#else
  ifNum = 100;
#endif

Change that 100 to something larger.

Depending on your version of ptlib, you may need to patch other files
(like ./src/ptlib/Nucleus++/socket.cxx), but the best way to figure
this out is to grep your source for SIOCGIFNUM and look at the code to
see if there are any hard-coded expectations that you need to increase
at compile time.

Also, be aware of filehandle limits. This bit us as well. By default
the limit is usually 1024. You're going to need more than that. Much
much more.

Rather than fight with it, I just set ours to a very very large
number. Depending on your platform, you may need something below
32768.

ulimit -n 32767

Good luck.

- Ian Blenke <ian@xxxxxxxxxx>

On Mon, Nov 22, 2010 at 10:58 AM, Robert Kulagowski <rkulagow@xxxxxxxxx> wrote:
> On Sun, Nov 21, 2010 at 2:16 PM, Robert Kulagowski <rkulagow@xxxxxxxxx> wrote:
>> On Sat, Nov 20, 2010 at 5:49 PM, Robert Kulagowski <rkulagow@xxxxxxxxx> wrote:
>>> On Sat, Nov 20, 2010 at 2:31 PM, Jan Willamowius <jan@xxxxxxxxxxxxxx> wrote:
>>>> Hi Robert,
>>>>
>>>> looks like PTLib IP detection function has a hardcoded limit of 100.
>>>> Put your IPs into Home=. That will bypass the auto-detection and get
>>>> you around that limit.
>>>
>>> Thanks, I'll give that a try.  Is it worth mentioning in the
>>> documentation, or is > 100 addresses uncommon enough?
>>
>> I have manually specified the IP addresses in the Home= line and it
>> now appears to work.  Thanks.
>>
>
> The next wrinkle is that I'm now getting:
>
> 2010/11/22 08:49:52.715 1       ProxyChannel.cxx(4655)  Q931d   Could
> not open/connect Q.931 socket at 38.124.39.252:30093 - error 7/24: Too
> many open files
> 2010/11/22 08:49:52.715 3       ProxyChannel.cxx(4325)  Q931
> 200.251.250.14:1720 DIDN'T ACCEPT THE CALL
>
> If I increase the ulimit -n to 20000 I get:
> 2010/11/22 08:55:52.470 0       ProxyChannel.cxx(7051)  Proxy   Too
> many opened file handles, skipping handle #1024 (limit=1024)
>
> I've read the docs and I'm still not sure if the large fd_set portion applies.
>
> I'll be happy to add something to the documentation once I get an idea
> of what's going wrong. :)
>
> I've checked in google and there's various information, but nothing in
> one place.
>
> Here are the changes that I've made so far:  (Ubuntu 10.04.1 LTS)
>
> Updated /etc/security/limits.conf
>
> *                soft    core            unlimited
> #root            hard    core            100000
> #*               hard    rss             10000
> #@student        hard    nproc           20
> #@faculty        soft    nproc           20
> #@faculty        hard    nproc           50
> #ftp             hard    nproc           0
> #ftp             -       chroot          /ftp
> #@student        -       maxlogins       4
>
> *                hard   nofile          32768
> administrator    soft   nofile          32768
>
> If anyone else is running large-scale GnuGK installations then I'm
> eager to hear what changes you made to make this operational...
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
> _______________________________________________________
>
> Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
> Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=openh323gk-users
> Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
> Homepage: http://www.gnugk.org/
>



-- 
- Ian Blenke <ian@xxxxxxxxxx> http://ian.blenke.com

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________________

Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=openh323gk-users
Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
Homepage: http://www.gnugk.org/



[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux