<div dir="ltr"><div class="gmail_quote"><br><div dir="ltr">Hi,<div>we have been using unbound for a long time, and we are very happy with it.</div><div><br></div><div>But I would like to know a little about memory usage.</div><div>LAtely we are seeing that unbound process grows using all memory and start swapping causing a big loss of performance (latency, dropped packets, etc)</div><div><br></div><div>The question is that stats metrics (mem*) are stable . They rapidly grow after startup and stay at a logical </div><div>maximum and don't keep growing. </div><div><br></div><div>But the process size does.</div><div><br></div><div>For example, two servers, same config, same hardware:</div><div>version 1.9.1, on redhat 8.7</div><div><br></div><div><b>Server A uptime 2 hours:</b></div><div>unbound-control  stats_noreset | grep mem<br>mem.cache.rrset=285212642<br>mem.cache.message=142606338<br>mem.mod.iterator=16748<br>mem.mod.validator=25689380<br>mem.mod.respip=0<br>mem.mod.subnet=61555940<br>mem.streamwait=0<br>mem.http.query_buffer=0<br>mem.http.response_buffer=0<br></div><div><br></div><div>Unbound proc <b>RES size 1.6GB, VIRT 1,8 GB</b></div><div><br></div><div><b>Server B uptime 6 days. </b></div><div>mem.cache.rrset=285212302<br>mem.cache.message=142606461<br>mem.mod.iterator=16748<br>mem.mod.validator=25689867<br>mem.mod.respip=0<br>mem.mod.subnet=142614402<br>mem.streamwait=0<br>mem.http.query_buffer=0<br>mem.http.response_buffer=0<br></div><div><br></div><div>Unbound proc <b>RES size 5.5GB, VIRT 6.2 GB</b><br></div><div><br></div><div>As you can see the only difference in memory is the mod.subnet which is 60Mb vs 140Mb, but this limit is reached at 4  or 5 hours of</div><div>running and stays there. </div><div><br></div><div>Why  is it using almost 4 GB more after a couple of days while caches are stable??</div><div>There is some way to control this?</div><div><br></div><div>Whe are restarting unbound every two days now (while waiting for a little bit more of ram)</div><div><br></div><div>Thanks!!</div><div><br></div></div>
</div></div>