Project

General

Profile

Bug #4212

unbound not starting on 12 CPU host

Added by Thomas Hilse almost 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
DNS Resolver
Target version:
Start date:
01/14/2015
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.2
Affected Architecture:

Description

In /etc/inc/unbound.inc
the unbound parameters 'msg_cache_slabs', 'rrset_cache_slabs', 'infra_cache_slabs', 'key_cache_slabs' are set to sysctl value 'kern.smp.cpus' (in our case 12).

These config values must be a power of 2. Starting unbound manually results in following error:

/var/unbound/unbound.conf:40: error: must be a power of 2
/var/unbound/unbound.conf:41: error: must be a power of 2
/var/unbound/unbound.conf:42: error: must be a power of 2
/var/unbound/unbound.conf:43: error: must be a power of 2
read /var/unbound/unbound.conf failed: 4 errors in configuration file

Associated revisions

Revision 46762efe (diff)
Added by Warren Baker almost 4 years ago

Correctly handle number of cores and power of 2. Merged from the package already had this. Fixes #4212

Revision 9eec3be3 (diff)
Added by Warren Baker almost 4 years ago

Correctly handle number of cores and power of 2. Merged from the package already had this. Fixes #4212

History

#1 Updated by Thomas Hilse almost 4 years ago

I just saw, that this was already discussed in the pfsense forum:

https://forum.pfsense.org/index.php?topic=61659.msg333247#msg333247

#2 Updated by Warren Baker almost 4 years ago

Thanks merged patch from the package would had this fixed (check https://github.com/pfsense/pfsense/pull/1439)

#3 Updated by Warren Baker almost 4 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#5 Updated by Thomas Hilse almost 4 years ago

It works. Thanks for the quick fix.

#6 Updated by Renato Botelho almost 4 years ago

  • Status changed from Feedback to Resolved

#7 Updated by Chris Buechler almost 4 years ago

  • Target version set to 2.2

Also available in: Atom PDF