-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Tao Ma,
The memory statistics that unbound makes can help? It prints them into the log file (depending on verbosity level and --enable-debug to configure) like this: debug: cache memory msg=1620127 rrset=2964258 infra=738306 val=128832 Also the memory statistics are printed when you enable extended statistics and do unbound-control stats, like this: mem.cache.rrset=2980222 mem.cache.message=1633031 mem.mod.iterator=16460 mem.mod.validator=130126 Best regards, Wouter On 09/09/2009 09:01 AM, Tao Ma wrote: > > --- Paul Wouters <[email protected]>写道: > >> On Tue, 8 Sep 2009, Tao Ma wrote: >> >>> I installed unbound 1.3.3 and found when the >> unbound is running,it use >>> more and more memory.. >>> I even found it occupied 96% of memory and then >> was killed by the >> >>> Sep 8 00:21:02 Dnsserv Out of memory: kill process >> 23999 (unbound) score >> >>> I only specify some normal items in unbound.conf >> and it was shown bellow: >>> server: >> >>> msg-cache-size: 4m >>> rrset-cache-size: 4m >> >> Is this an embedded device with little memory? eg >> 16mb or 32mb? >> >> The OOM killer might be killing the biggest memory >> consumer, which >> not neccessarilly means that process is the one >> leaking memory. >> unbound might be running stable at just over 8mb, >> and some other >> process might be slowly allocating more memory over >> time, but still >> end up using a smaller memory footprint, for which >> unbound takes the >> blame (and the shot) >> >> Paul >> > > Hi Paul,thanks for your reply. > Sorry to send this mail again because I forgot to cc > to [email protected] in the last mail. > > It's my fault to forget to tell you my server's > hardware and software enviroment in the first mail. > The server has 2G memory and the CPU is Intel(R) > Celeron(R) M processor 1.50GHz.I didn't specify any > other options except "--prefix=/usr/local/unboud" in > configure,then installed unbound by "make&&make > install". > > Here is the shared library used by unboud: > linux-gate.so.1 => (0xffffe000) > libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 > (0xb7f45000) > libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 > (0xb7e0f000) > libpthread.so.0 => /lib/libpthread.so.0 (0xb7df8000) > libc.so.6 => /lib/libc.so.6 (0xb7cd0000) > libdl.so.2 => /lib/libdl.so.2 (0xb7ccc000) > /lib/ld-linux.so.2 (0xb7f8d000) > > When processing lots of DNS requests(like about 50,000 > per second),unbound was found consume more and more > memory.I found it by reading the output of command > "top".Unobund wouldn't stop consuming more memory > until killed by OOM killer. > In my opinion,the memory consumed by unbound should be > stable when the count of requests per > second(say,3,000) is stable,is it right? > > Any hints for me to find the reason of the problem? > Thanks. > > > ___________________________________________________________ > 好玩贺卡等你发,邮箱贺卡全新上线! > http://card.mail.cn.yahoo.com/ > _______________________________________________ > Unbound-users mailing list > [email protected] > http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAkqpDHEACgkQkDLqNwOhpPiNMwCeIWas+3a47epBqRP/3iP2bFkg sIcAnA3ktxb3QXk22QJPQ7m05o/vXqDa =6709 -----END PGP SIGNATURE----- _______________________________________________ Unbound-users mailing list [email protected] http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users
