[lkml]   [1997]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: fork: out of memory
> Hmm ... FreeBSD gets round this by allowing you to
> redefine FD_SETSIZE in your own programs before you

You can do this in Linux. And like in BSDI it doesnt work
for all cases. the fd_set size is compiled into some libc
functions (notably NIS stuff). You use fd 0-4093 and nis
stops working cos its fd is outside its fdset size.

glibc knows how to handle this right

> I'm not a FreeBSD advocate, by the way, but this does
> seem to be one thing they got right :-)

I dont know if they got the libc one right.

The 2.0 patch fixes one problem in the Linux case, the kernel pulled the
fd_set onto the kernel stack (only 4K long). So 3K fds broke. The 2.1.x
kernel allocates a buffer for the large fdset case which allows you
to go high without patching


 \ /
  Last update: 2005-03-22 13:40    [W:0.046 / U:5.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site