public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* socketpair - too many open files
@ 2006-01-05 12:21 Jose González
       [not found] ` <1136467519.16358.19.camel@localhost.localdomain>
  0 siblings, 1 reply; 2+ messages in thread
From: Jose González @ 2006-01-05 12:21 UTC (permalink / raw)
  To: linux-kernel

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: socketpair - too many open files
       [not found] ` <1136467519.16358.19.camel@localhost.localdomain>
@ 2006-01-05 13:39   ` Jose González
  0 siblings, 0 replies; 2+ messages in thread
From: Jose González @ 2006-01-05 13:39 UTC (permalink / raw)
  To: Alan Cox, linux-kernel

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?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-05 13:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-05 12:21 socketpair - too many open files Jose González
     [not found] ` <1136467519.16358.19.camel@localhost.localdomain>
2006-01-05 13:39   ` Jose González

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox