#38 MAXCONNECTIONS/FD_SETSIZE issues

Solid-3.4.07
closed-invalid
nobody
System (5)
1
2008-04-27
2008-04-27
dav7
No

Hi, I'm trying to write a load testing type system and so my first port of call was to increase the number of connections to 65535.

So, I ./configure --with-maxconnections=65535, re-make, run the IRCd, get errors regarding how many open files I'm allowed, become root, run `ulimit -n 65535', re-run the IRCd and it starts up successfully.

Then my load tester isn't able to create > 1021 connections, without anyone else "on", and even with some connection delays.

What's... going on here?

-dav7

Discussion

  • dav7
    dav7
    2008-04-27

    Logged In: YES
    user_id=1919200
    Originator: YES

    Wait... it may be the tool I'm using. I just found that I can't make > 1021 connections to -any- server I'm trying, which currently includes another IRCd and Apache on my server.

     
  • dav7
    dav7
    2008-04-27

    • priority: 5 --> 1
     
  • dav7
    dav7
    2008-04-27

    • summary: I can't get more than 1024 connections working --> > 1024 connections aren't working [may be my fault]
     
  • dav7
    dav7
    2008-04-27

    • summary: > 1024 connections aren't working [may be my fault] --> > 1024 connections aren't working [MOOT, FIXED]
     
  • dav7
    dav7
    2008-04-27

    Logged In: YES
    user_id=1919200
    Originator: YES

    Man... who would have thought? So the server needs to be running as root to let me use ulimit to create a daemon that will listen for 65535 connections...

    ...and, of course, the client is going to need to be run as root so IT can CREATE 65535 connections too. Hah.

    -dav7

     
  • dav7
    dav7
    2008-04-27

    • status: open --> closed-invalid
     
  • Juan Baez
    Juan Baez
    2008-04-27

    Logged In: YES
    user_id=825717
    Originator: NO

    When increasing the maximum number of connections, keep in mind that FD_SETSIZE must be higher than MAXCONNECTIONS. And if your number of max connections is higher than what the Kernel allows, it's more than likely going to make the IRCd raise the CPU usage quite a bit.

     
  • Juan Baez
    Juan Baez
    2008-04-27

    • labels: 654032 --> System
    • summary: > 1024 connections aren't working [MOOT, FIXED] --> MAXCONNECTIONS/FD_SETSIZE issues