<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Dear Users,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have a low end server with 1 GB of RAM running GNU/Linux version 3.4.104. I noticed that after a certain time the swap space is extensively used. This is normally not an issue but sometimes the system has long response times. I noticed that “named” is using a lot of memory. So I add the following lines in the options section of bind.conf<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>        max-cache-size 629145600 ;<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>        cleaning-interval 120 ;         // 2 hours<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>        max-cache-ttl 14400 ;           // 4 hours<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>        max-ncache-ttl 14400 ;          // 4 hours<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>But this does not help. I thought that bind would not use much more than 600 kB, but this is not true. When I look with “top” I see<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>32470 bind      20   0  982m 842m 2260 S   0.0 86.8 175:55.22 named<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>As you can see “named” is using 842 MB physical and 982 MB virtual memory. Much more than configured. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>On this server I have bind version <o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>BIND 9.10.3 <id:2799933><o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>built by make with '--enable-shared' '--enable-static' '--enable-ipv6' '--with-openssl' 'CC=gcc' 'LDFLAGS=-L/usr/lib/arm-linux-gnueabihf'<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>compiled by GCC 4.6.3<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>On a different system ( same kernel version, same HW ) I am using BIND 9.9.5<o:p></o:p></p><p class=MsoNormal>Here I never noticed this issue. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Is there a major change for memory management in version 9.10 ? <o:p></o:p></p><p class=MsoNormal>Are there any other methods to reduce memory consumption for bind ? <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Kind regards <o:p></o:p></p><p class=MsoNormal>Hans<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>