Knowledge Base ISC Main Website Ask a Question/Contact ISC
How to determine if you are using a threaded build
Author: Michael Graff Reference Number: AA-00630 Views: 13059 Created: 2012-02-24 18:08 Last Updated: 2017-08-01 19:39 0 Rating/ Voters

To take advantage of multi-core computers BIND 9 must be built as a multi-threaded binary.  This may not be the default for all BIND versions or on all platforms.

To find out if you are using a threaded build, run the following command.  The text you should see, if you are using a multi-threaded build, is highlighted.  Different versions of BIND may display different amounts of other information as well.  In addition, ensure that no file /tmp/notthere exists before running this command.  If it does, use some other file name.  Using a file that does not exist causes named to display its startup information, then exit.

# named -g -c /tmp/nothtere
24-Feb-2012 12:33:53.907 starting BIND 9.9.0rc2 -g -c /tmp/notthere
24-Feb-2012 12:33:53.907 built with '--enable-threads' '--with-atf' 'CC=clang'
24-Feb-2012 12:33:53.907 ----------------------------------------------------
24-Feb-2012 12:33:53.907 BIND 9 is maintained by Internet Systems Consortium,
24-Feb-2012 12:33:53.907 Inc. (ISC), a non-profit 501(c)(3) public-benefit
24-Feb-2012 12:33:53.907 corporation.  Support and training for BIND 9 are
24-Feb-2012 12:33:53.907 available at
24-Feb-2012 12:33:53.907 ----------------------------------------------------
24-Feb-2012 12:33:53.907 found 8 CPUs, using 8 worker threads
24-Feb-2012 12:33:53.907 using 8 UDP listeners per interface
24-Feb-2012 12:33:53.908 using up to 4096 sockets
24-Feb-2012 12:33:53.937 loading configuration from '/tmp/notthere'
24-Feb-2012 12:33:53.938 open: /tmp/notthere: file not found
24-Feb-2012 12:33:53.938 loading configuration: file not found
24-Feb-2012 12:33:53.938 exiting (due to fatal error)

If you do not see this string, you are not using a threaded build and your named process as well as dnssec-signzone will not take advantage of multiple CPU cores.

© 2001-2018 Internet Systems Consortium

For assistance with problems and questions for which you have not been able to find an answer in our Knowledge Base, we recommend searching our community mailing list archives and/or posting your question there (you will need to register there first for your posts to be accepted). The bind-users and the dhcp-users lists particularly have a long-standing and active membership.

ISC relies on the financial support of the community to fund the development of its open source software products. If you would like to support future product evolution and maintenance as well having peace of mind knowing that our team of experts are poised to provide you with individual technical assistance whenever you call upon them, then please consider our Professional Subscription Support services - details can be found on our main website.

  • There is no feedback for this article
Quick Jump Menu