Re: socketpair - too many open files

From: Jose GonzÃlez
Date: Thu Jan 05 2006 - 08:36:55 EST


Alan Cox wrote:

On Iau, 2006-01-05 at 13:21 +0100, Jose GonzÃlez wrote:


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?
-
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/