Re: Xinetd and file descriptor limits?

Steve G <[email protected]> Tue, 6 Jan 2004 08:03:04 -0800 (PST)
Newsgroups gmane.network.xinetd
Message-ID <[email protected]>
>I am experiencing an error condition involving use of xinetd 
>and apparent file descriptor limits.

It sounds like it.

>I have also placed in the xinted startup script two 'ulimit'
>statements that are intended to increase the fd limit for the 
>user that starts xinetd.

I also think there is another limit settable by sysctl. If you
get past this, I think xinetd only requests 1024 descriptors. You
would need to tweek it to set the rlimit higher for the per
process limit.

>How is the output of '-d' captured for review?

I startup x and look at it though a terminal window after setting
the number of lines for it to buffer.

>I suspect I am hitting the system or user default of 1024 file
>descriptors, but I am curious why that number (1024) doesn't
>quite match the number of services successfully started, 1016.

xinetd uses a couple for internal messaging, stdin,stdout,stderr
are all set to /dev/null and then glibc also leaks descriptors in
pmap_set, and then error logging.

>I am stumped as to what else to review. Is there another setting
>that controls this & I've simply missed it?

Take a look in init.c. Look for setfd_limit(). You may want to
tweek that function to request more descriptors.

-Steve Grubb

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus