Maintained by: NLnet Labs

[Unbound-users] Unbound on NetBSD

Wouter Wijngaards
Mon Jul 28 10:25:21 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I've already responded in private to SeaCat. The gist of it is:

you can see ulimit with ulimit -a.
Low setting for heap memory allowed (128M limit in your setup?), or open
files could be the problem.

This message has 1 thread in config, but the logfile shows 4 threads.
This config should be fine with 1 thread (number of file descriptors).


One way to configure to use many, many file descriptors, by the way,
without running against ulimit problems is to compile
- --without-pthreads, but still setting num-threads: 4 . This forks
processes instead of making threads. Every process gets its own ulimit
memory/open files, and this may ease your troubles.
Setting up like this will not share memory; so memory usage increases.

Best regards,
~   Wouter


SeaCat schreef:
| Hello Wouter,
|
|
| WW> Since you have a dual core machine, two threads should be enough.
|
| ok, i'm try.
|
| WW> Your first problem seems to be that you cannot connect (with) TCP
to the
|
| WW> internet, the tcp connects failed.  Could this be a NetBSD firewall
| problem?
|
| yes, uses PF
|
| ..
|
| pass in quick on wm1 inet proto tcp from any to XX.XX.XX.5 port = domain
| keep state
|
| pass in quick on wm1 inet proto udp from any to XX.XX.XX.5 port = domain
| keep state
|
| pass out quick on wm1 inet from XX.XX.XX.5 to any keep state
|
| ..
|
| WW> The second problem (accept failed: resource unavail) seems to be like
|
| WW> you are running out of file descriptors.
|
| WW> What is your ulimit?
|
| dunno. :(
|
| WW> Did you compile with libevent or not?
|
| nope
|
| ./configure --prefix=/usr/pkg --host=i386--netbsdelf --mandir=/usr/pkg/man
|
| i'm use pkgsrc for compile.
|
| WW> And a more general, what is your configuration file?
|
| WW> The third problem is that you are running out of memory, even
though you
|
| WW> have 3 Gb. Is this due to threads forking? What configuration do you
|
| WW> use? Did you compile with or without pthreads?
|
|  Then unbound reach SIZE=130M and RES>116M he was crash.
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIjYJxkDLqNwOhpPgRAmlBAJ9R+Gb6ejgFZzmHhnrQfR3Wn8dosQCfTxb3
jDWJEr8MMJJteYvAadRxprA=
=gFnw
-----END PGP SIGNATURE-----