socketpair - too many open files
Hello.
I am programming an application that need to create over 300 threads. Each thread calls socketpair function, but it returns EMFILE when it is called 150 times. Which kernel parameter can I change to do it? Best regards,
Jose.
Quoted 14 lines · Alan Cox
Quoted 4 lines · Jose González
Hello.
I am programming an application that need to create over 300 threads. Each thread calls socketpair function, but it returns EMFILE when it is called 150 times. Which kernel parameter can I change to do it?Its a user space matter. See "ulimit -a" and find out how your distribution sets the default limits
I modified this limit (open files, ulimit -n), even I have modified it in the kernel sources. I think that open file number isn't the problem. Is there a limit in the open sockets?