Summary: | net-dns/bind-9.4.3-P4 reports "max open files (1024) is smaller than max sockets (4096)" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Huemi <gentoobugs> |
Component: | [OLD] Unspecified | Assignee: | Christian Ruppert (idl0r) <idl0r> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | barzog, bind+disabled, bugs.gentoo.org |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Huemi
2009-12-12 22:27:05 UTC
same problem here since I upgraded to net-dns/bind-9.4.3_p4 (In reply to comment #1) > same problem here since I upgraded to > net-dns/bind-9.4.3_p4 > sonmeone found a workaround here : http://www.mail-archive.com/freebsd-stable@freebsd.org/msg102398.html "So I limited the number of sockets named would ask for using this in /etc/rc.conf:" named_flags="-4 -S 1024" where should I add this in gentoo ( /etc/conf.d ? ) I dont want to upgrade the kernel just for this small problem you could add in /etc/bind/named.conf in the options-section as a workaround: files 1024; Remember that you limit the maximum number of open files to 1024, which might have negative side effects when i.e. open libraries also count (maybe 8096 is a better value). But this doesn't solve the problem that occurs, when you don't want to limit the maximum number of used files (=unlimited, which is the default). BTW: you shouldn't only update the kernel to the latest version for small problems, but for security reasons, but it seems that the newest stable gentoo-kernel wouldn't fix the problem with the unlimited files restriction :-( Problem is caused by default open files ulimit (try to enter ulimit -n and you see that it is 1024). Is there a possibility to set in /etc/bind/named.conf in the options-section following value (at least for future versions)? files 4096; I don't think we're going to change the default value. If bind exceeds the limit than either increase it by using limits or use the -S or even files ...; option. |