RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1464850 - [RFE] backport whole --with-tuning=large option from bind 9.10.x and use it during compilation
Summary: [RFE] backport whole --with-tuning=large option from bind 9.10.x and use it d...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: bind
Version: 7.3
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: rc
: ---
Assignee: Petr Menšík
QA Contact: Petr Sklenar
URL:
Whiteboard:
Depends On:
Blocks: 1420851 1465887 1465928
TreeView+ depends on / blocked
 
Reported: 2017-06-26 05:16 UTC by Yogita
Modified: 2021-06-10 12:30 UTC (History)
4 users (show)

Fixed In Version: bind-9.9.4-57.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 11:56:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1221180 1 None None None 2021-01-20 06:05:38 UTC
Red Hat Bugzilla 1235609 1 None None None 2021-01-20 06:05:38 UTC
Red Hat Product Errata RHBA-2018:0742 0 None None None 2018-04-10 11:57:48 UTC

Internal Links: 1221180 1235609

Description Yogita 2017-06-26 05:16:25 UTC
Description of problem:
RFE to have RHEL7 version of BIND (package bind-9.9.4-38.el7_3.3.x86_64.rpm) compiled with the --with-tuning=large compile flag or has equivalent optimizations for large deployments, as described in: https://kb.isc.org/article/AA-01314/0/-with-tuninglarge-about-using-this-build-time-option.html

Version-Release number of selected component (if applicable):
bind-9.9.4-38.el7_3.3.x86_64.rpm

Additional info:
There is no "--with-tuning=large" option in RHEL6 (bind-9.8.2) nor RHEL7 (bind-9.9.4) that could be turned on during compile time as it is in upstream bind-9.10.x:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ bind-9.8.2rc1]$ grep -R with-tuning
[ bind-9.8.2rc1]$
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

There is also no way to tune the hard coded values described in the provided isc kbase article other than changing them by hand on source code level (there is no UDPBUFFERS, EXCLBUFFERS, RESOLVER_NTASKS in RHEL6/7 code):

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ egrep -R "ISC_SOCKET_MAXEVENTS|ISC_SOCKET_MAXSOCKETS|RCVBUFSIZE|RESOLVER_NTASKS|UDPBUFFERS|EXCLBUFFERS" | grep define | grep ".c:" | grep -v FD_SETSIZE
bind-9.8.2rc1/lib/isc/win32/socket.c:#define RCVBUFSIZE (32*1024)
bind-9.8.2rc1/lib/isc/unix/socket.c:#define ISC_SOCKET_MAXSOCKETS 4096
bind-9.8.2rc1/lib/isc/unix/socket.c:#define ISC_SOCKET_MAXEVENTS        64
bind-9.8.2rc1/lib/isc/unix/socket.c:#define RCVBUFSIZE (32*1024)
$
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In comparison with the upstream source code (bind-9.10.5-P1) we can see '--with-tuning' option is existing there:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ bind-9.10.5-P1]$ grep -R with-tuning
bin/named/named.docbook:            "configure --with-tuning=large".
bin/named/named.html:            "configure --with-tuning=large".
win32utils/Configure:"  with-tuning=OPTION    tune for plaform size (large|default)\n",
win32utils/Configure:#  --with-tuning supported
README:  - A new "configure --with-tuning=large" option tunes certain
README: by specifying "--with-tuning=large" on the configure command
CHANGES:3980.   [bug]           Improve --with-tuning=large by self tuning of SO_RCVBUF
CHANGES:                        --with-tuning=large. [RT #37059]
CHANGES:3745.   [func]          "configure --with-tuning=large" adjusts various
doc/arm/man.named.html:            "configure --with-tuning=large".
configure:  --with-tuning=ARG       Specify server tuning (large or default)
configure:# was --with-tuning specified?
configure:# Check whether --with-tuning was given.
configure:              as_fn_error $? "You must specify \"large\" or \"default\" for --with-tuning." "$LINENO" 5
configure:test "large" = "$use_tuning" && echo "    Large-system tuning (--with-tuning)"
configure:test "large" = "$use_tuning" || echo "    Large-system tuning (--with-tuning)"
configure.in:# was --with-tuning specified?
configure.in:   [  --with-tuning=ARG       Specify server tuning (large or default)],
configure.in:           AC_MSG_ERROR([You must specify "large" or "default" for --with-tuning.])
configure.in:test "large" = "$use_tuning" && echo "    Large-system tuning (--with-tuning)"
configure.in:test "large" = "$use_tuning" || echo "    Large-system tuning (--with-tuning)"
[ bind-9.10.5-P1]$
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

and also various compile time values available:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ bind-9.10.5-P1]$ egrep -R "ISC_SOCKET_MAXEVENTS|ISC_SOCKET_MAXSOCKETS|RCVBUFSIZE|RESOLVER_NTASKS|UDPBUFFERS|EXCLBUFFERS" | grep define
bin/named/server.c:#define RESOLVER_NTASKS 523
bin/named/server.c:#define UDPBUFFERS 32768
bin/named/server.c:#define EXCLBUFFERS 32768
bin/named/server.c:#define RESOLVER_NTASKS 31
bin/named/server.c:#define UDPBUFFERS 1000
bin/named/server.c:#define EXCLBUFFERS 4096
bin/named/interfacemgr.c:#define UDPBUFFERS 32768
bin/named/interfacemgr.c:#define UDPBUFFERS 1000
lib/dns/client.c:#define RESOLVER_NTASKS 523
lib/dns/client.c:#define RESOLVER_NTASKS 31
lib/isc/win32/socket.c:#define RCVBUFSIZE (32*1024)
lib/isc/unix/socket.c:#define ISC_SOCKET_MAXSOCKETS 21000
lib/isc/unix/socket.c:#define ISC_SOCKET_MAXSOCKETS 4096
lib/isc/unix/socket.c:#define ISC_SOCKET_MAXSOCKETS FD_SETSIZE
lib/isc/unix/socket.c:#define ISC_SOCKET_MAXEVENTS      2048
lib/isc/unix/socket.c:#define ISC_SOCKET_MAXEVENTS      64
lib/isc/unix/socket.c:#define RCVBUFSIZE (1*1024*1024)
lib/isc/unix/socket.c:#define RCVBUFSIZE (16*1024*1024)
lib/isc/unix/socket.c:#define RCVBUFSIZE (32*1024)
[ bind-9.10.5-P1]$
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Comment 11 errata-xmlrpc 2018-04-10 11:56:55 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.

https://access.redhat.com/errata/RHBA-2018:0742


Note You need to log in before you can comment on or make changes to this bug.