Search String: Display: Description: Sort:

Results:

References: [ +subject:/^(?:^\s*(re|sv|fwd|fw)[\[\]\d]*[:>-]+\s*)*Opening\s+more\s+than\s+65000\s+sockets\s*$/: 30 ]

Total 30 documents matching your query.

1. Opening more than 65000 sockets (score: 1)
Author: abriel@xxxxxxx>
Date: Wed, 27 Mar 2002 17:31:17 -0800 (PST)
I have a network testing app that would like to open 100K outgoing sockets. I have modified my local range in /proc/sys to allow 2048 - 65000 sockets to be used for out going connections. I have a 2
/archives/netdev/2002-03/msg00125.html (9,167 bytes)

2. Re: Opening more than 65000 sockets (score: 1)
Author: fali@xxxxxxxxx>
Date: Wed, 27 Mar 2002 23:09:46 -0700
Try binding locally to the IP of the port out of which you want to send. If you don't specify the local binding (most programs/examples do not), then you will be bound on any/all of them. I haven't a
/archives/netdev/2002-03/msg00126.html (11,607 bytes)

3. Re: Opening more than 65000 sockets (score: 1)
Author: xxxxxxxxxxxxxx>
Date: Wed, 27 Mar 2002 23:26:07 -0800
What fails? Is it the socket() call? What error does it fail with? For instance, is it failing with a ENOBUFS or ENOMEM? EAGAIN, ETIMEDOUT? What kind of socket: TCP or UDP? (TCP, I assume, but needn
/archives/netdev/2002-03/msg00127.html (9,896 bytes)

4. Re: Opening more than 65000 sockets (score: 1)
Author: ita@xxxxxxxxxx>
Date: Thu, 28 Mar 2002 00:31:29 -0800
You dont mention which kernel version youre using, but on a recent kernel you wont need inode-max, think that went away sometime in 2.4. thanks, Nivedita
/archives/netdev/2002-03/msg00128.html (9,084 bytes)

5. Re: Opening more than 65000 sockets (score: 1)
Author: ita@xxxxxxxxxx>
Date: Thu, 28 Mar 2002 10:05:06 -0300
Em Wed, Mar 27, 2002 at 05:31:17PM -0800, Yan-Fa Li escreveu: 2.4? Can you try with 2.5.x, where x > 4 and post how many sockets you manage to create? - Arnaldo
/archives/netdev/2002-03/msg00129.html (8,692 bytes)

6. Re: Opening more than 65000 sockets (score: 1)
Author: xxxxxxxxxxxxxx>
Date: Thu, 28 Mar 2002 16:31:09 -0800 (PST)
If this is true then it looks like I'll have to get more hosts. However logically speaking I would have thought each LAN interface would have it's own TCP port space. Thanks for the advice. _________
/archives/netdev/2002-03/msg00130.html (8,994 bytes)

7. Re: Opening more than 65000 sockets (score: 1)
Author: fali@xxxxxxxxx>
Date: Thu, 28 Mar 2002 18:07:54 -0800 (PST)
yes I just tried 2.5, it's not a memory problem. Fails at the connect() consistently at the same place. It appears that TCP source ports are unique across the whole system not per interface. I guess
/archives/netdev/2002-03/msg00131.html (9,178 bytes)

8. Re: Opening more than 65000 sockets (score: 1)
Author: fali@xxxxxxxxx>
Date: Fri, 29 Mar 2002 10:31:26 -0700
Yan-Fa Li wrote: It fails in the connect() call. I get EAGAIN messages. They are TCP socekts. I have my file-max at 1 Million files, and ulimit the same. Port space is unique for a protocol (i.e.: TC
/archives/netdev/2002-03/msg00132.html (10,891 bytes)

9. Re: Opening more than 65000 sockets (score: 1)
Author: xxxxxxxxxxxxxx>
Date: Fri, 29 Mar 2002 11:08:18 -0800 (PST)
you can use the socket option SO_REUSEADDR to bind the same port to multiple sockets, as long as each bind specifies a different local IP address. In this way the port space becomes unique for each l
/archives/netdev/2002-03/msg00133.html (9,445 bytes)

10. Re: Opening more than 65000 sockets (score: 1)
Author: sri@xxxxxxxxxx>
Date: Fri, 29 Mar 2002 11:46:08 -0800 (PST)
Thanks for the tip. I tried it out and it doesn't appear to work. It actually fails with a different return code EINVAL (22). Which isn't even a listed return code on the connect() man page :( Anybod
/archives/netdev/2002-03/msg00134.html (14,094 bytes)

11. Re: Opening more than 65000 sockets (score: 1)
Author: fali@xxxxxxxxx>
Date: Fri, 29 Mar 2002 13:23:50 -0800 (PST)
looks like you are not doing a bind explicitly and allowing the connect() call to do the auto bind. If you want to create 2 sockets with 2 different ip addresses, but the same port, you should do exp
/archives/netdev/2002-03/msg00135.html (12,165 bytes)

12. Re: Opening more than 65000 sockets (score: 1)
Author: sri@xxxxxxxxxx>
Date: Fri, 29 Mar 2002 12:27:50 -0800
Are you doing a bind() to the unique local address you wanted? Are you doing the setsockopt() prior to that? bind() returns an EINVAL when the port is being used, if you havent actually done a REUSEA
/archives/netdev/2002-03/msg00136.html (9,220 bytes)

13. Re: Opening more than 65000 sockets (score: 1)
Author: ita@xxxxxxxxxx>
Date: Fri, 29 Mar 2002 13:28:27 -0800 (PST)
Thanks again. Ok I tried your suggestion but that didn't work either. Here's the offending code fragment, pardon the fugly coding: addr.sin_family = AF_INET; addr.sin_port = 0; he=gethostbyname(local
/archives/netdev/2002-03/msg00137.html (11,798 bytes)

14. Re: Opening more than 65000 sockets (score: 1)
Author: fali@xxxxxxxxx>
Date: Fri, 29 Mar 2002 13:59:02 -0800
Er, thats not exactly how it works. The problem is youre not specifying a port to bind to, which means the kernel is going to look for a free port. (in your case, there isnt any, and bind() returns a
/archives/netdev/2002-03/msg00138.html (12,410 bytes)

15. Re: Opening more than 65000 sockets (score: 1)
Author: ita@xxxxxxxxxx>
Date: Fri, 29 Mar 2002 15:26:56 -0800 (PST)
Thank you for the insight! I re-coded it with more error checking, my bad, and caught that I was using setsockopt() incorrectly, wrong level, and then made the program specify ports to bind to and no
/archives/netdev/2002-03/msg00139.html (10,048 bytes)

16. Opening more than 65000 sockets (score: 1)
Author: Yan-Fa Li <yanfali@xxxxxxxxx>
Date: Wed, 27 Mar 2002 17:31:17 -0800 (PST)
Hello, I have a network testing app that would like to open 100K outgoing sockets. I have modified my local range in /proc/sys to allow 2048 - 65000 sockets to be used for out going connections. I ha
/archives/netdev/2002-03/msg00268.html (9,182 bytes)

17. Re: Opening more than 65000 sockets (score: 1)
Author: Ben Greear <greearb@xxxxxxxxxxxxxxx>
Date: Wed, 27 Mar 2002 23:09:46 -0700
Try binding locally to the IP of the port out of which you want to send. If you don't specify the local binding (most programs/examples do not), then you will be bound on any/all of them. I haven't a
/archives/netdev/2002-03/msg00269.html (11,053 bytes)

18. Re: Opening more than 65000 sockets (score: 1)
Author: "Nivedita Singhvi" <nivedita@xxxxxxxxxx>
Date: Wed, 27 Mar 2002 23:26:07 -0800
What fails? Is it the socket() call? What error does it fail with? For instance, is it failing with a ENOBUFS or ENOMEM? EAGAIN, ETIMEDOUT? What kind of socket: TCP or UDP? (TCP, I assume, but needn
/archives/netdev/2002-03/msg00270.html (9,896 bytes)

19. Re: Opening more than 65000 sockets (score: 1)
Author: "Nivedita Singhvi" <nivedita@xxxxxxxxxx>
Date: Thu, 28 Mar 2002 00:31:29 -0800
You dont mention which kernel version youre using, but on a recent kernel you wont need inode-max, think that went away sometime in 2.4. thanks, Nivedita
/archives/netdev/2002-03/msg00271.html (9,084 bytes)

20. Re: Opening more than 65000 sockets (score: 1)
Author: Arnaldo Carvalho de Melo <acme@xxxxxxxxxxxxxxxx>
Date: Thu, 28 Mar 2002 10:05:06 -0300
Em Wed, Mar 27, 2002 at 05:31:17PM -0800, Yan-Fa Li escreveu: 2.4? Can you try with 2.5.x, where x > 4 and post how many sockets you manage to create? - Arnaldo
/archives/netdev/2002-03/msg00272.html (8,760 bytes)


This search system is powered by Namazu