Re: Maximum number of sockets...

From: Richard B. Johnson
Date: Thu Sep 18 2003 - 10:37:25 EST


On Thu, 18 Sep 2003, Alexandru Damian wrote:

>
>
> It may seem a pretty stupid question, but what do I need to
> modify in a 2.4.22 kernel to increase the maximum number of sockets
> available to userland programs.
>
> Thanks,
> Alex
>

Maybe you just need to set new per-process open file limits?

socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 1015
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 1016
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 1017
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 1018
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 1019
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 1020
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 1021
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 1022
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 1023
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = -1 EMFILE (Too many open files)


Cheers,
Dick Johnson
Penguin : Linux version 2.4.22 on an i686 machine (794.73 BogoMips).
Note 96.31% of all statistics are fiction.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/