[ntp:hackers] AIX 5.3: too many open files

Frank Kardel kardel at ntp.org
Sat Jun 24 06:49:05 UTC 2006


Harlan Stenn wrote:

>I'm trying to test the latest ntpd on an AIX-5.3 box and when I start
>ntpd I get lots of messages of the form:
>
>23 Jun 17:45:09 ntpd[344266]: Error duplicating file descriptor: Too many open files
>  
>
welcome to the side effects of: bug 614 commenttrail: 21, 22, 26

>I have already tripled the value of nofiles in /etc/security/limits and
>that does not seem to make a difference.
>  
>
1) check whether the soft limits really increased.
2) we may have a situation where FOPEN_MAX is
    defined as getdtimesize(). In this case the code
    must always log the error message (not a functional
    failure mind you - see comment #21).

For an automagically fix for these and other cases see comment
#10. though the expression is botched there. It should be:
max(0, min(getdtablesize() - FD_CHUNK, FOPEN_MAX))

>Any ideas on where I should look next?
>
>  
>
see 1) and 2)

>H
>_______________________________________________
>hackers mailing list
>hackers at support.ntp.org
>https://support.ntp.org/mailman/listinfo/hackers
>
>  
>
Frank


More information about the hackers mailing list