Bug 663112

Summary: max open files (1024) WARNING
Product: Red Hat Enterprise Linux 5 Reporter: Jorge Fábregas <jorge.fabregas>
Component: bindAssignee: Adam Tkac <atkac>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: low Docs Contact:
Priority: low    
Version: 5.5CC: azelinka, cww, eero.volotinen, jr-redhatbugs2, moshiro, mpoole, ovasik, phil, rainer.traut, rdassen
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 06:20:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 668957    

Description Jorge Fábregas 2010-12-14 18:20:30 UTC
Description of problem:

After the most recent update of bind (version bind-9.3.6-4.P1.el5_5.3), now when you restart the named daemon you get the following message on Syslog (facility: daemon, severity: warning):

max open files (1024) is smaller than max sockets (4096)

This happens with the latest kernel: 2.6.18-194.26.1.el5

Version-Release number of selected component (if applicable):
bind-9.3.6-4.P1.el5_5.3 on RHEL 5.5

How reproducible:


Steps to Reproduce:
1.service named restart
2.Watch /var/log/messages or anywhere you get daemon-facilty/warning messages.

Comment 1 Jorge Fábregas 2010-12-14 18:22:00 UTC
I initially reported this on the CentOS list along with the suggested workaround:

http://lists.centos.org/pipermail/centos/2010-December/102882.html

Comment 2 Eero Volotinen 2010-12-16 11:27:24 UTC
I can confirm this issue on my RHEL 5.5 box.

--
Eero

Comment 3 Adam Tkac 2010-12-20 12:02:51 UTC
You can workaround this bug if you set "files 4096;" option in the options {} section in your named.conf.

Comment 4 RHEL Program Management 2011-01-11 20:51:06 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 5 RHEL Program Management 2011-01-11 22:19:41 UTC
This request was erroneously denied for the current release of
Red Hat Enterprise Linux.  The error has been fixed and this
request has been re-proposed for the current release.

Comment 6 Martin Poole 2011-02-07 11:24:22 UTC
This is a regression from RHBA-2009-0246 which has open files limit set to
"unlimited" by default

Comment 8 Adam Tkac 2011-02-18 13:49:02 UTC
(In reply to comment #6)
> This is a regression from RHBA-2009-0246 which has open files limit set to
> "unlimited" by default

To be precise, this is not regression from RHBA-2009-0246, let me explain this issue in detail.

There were two bugs in RHEL-5 version of BIND related to "unlimited" open limit by default:

1. by default bind set limit to 1024
2. there is an issue in the kernel which prevents to set limits to "unlimited" (http://kerneltrap.org/mailarchive/linux-kernel/2008/9/9/3238694).

In the RHBA-2009-0246 we fixed only the "1.", the second issue is still present. Rebase from 9.3.4 to 9.3.6 version exposes this bug because new BIND issues warning when files limit is too low. So I would rather not call this bug as Regression because the second issue was never fixed.

Removing Regression keyword.

Comment 15 Jordan Russell 2011-03-06 08:02:49 UTC
(In reply to comment #3)
> You can workaround this bug if you set "files 4096;" option in the options {}
> section in your named.conf.

Should all users apply this workaround, or is it strictly only necessary on high-volume servers?
(Can the limit only be hit with ~1024 concurrent connections?)

Comment 16 Adam Tkac 2011-03-08 09:07:17 UTC
(In reply to comment #15)
> (In reply to comment #3)
> > You can workaround this bug if you set "files 4096;" option in the options {}
> > section in your named.conf.
> 
> Should all users apply this workaround, or is it strictly only necessary on
> high-volume servers?
> (Can the limit only be hit with ~1024 concurrent connections?)

Users should apply this workaround when recursive server denies clients and system log (/var/log/messages) contains errors from named daemon which say certain operations fail due file limit.

If you don't see any error in the log, you don't have to apply the workaround.

Comment 17 RHEL Program Management 2011-05-31 13:31:21 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 24 errata-xmlrpc 2012-02-21 06:20:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0254.html