Memory Reduction

Nick Nauwelaerts nick at wanadoo.be
Tue Aug 20 21:11:29 UTC 2002


(sorry about the previous mail, damn control key was stuck again)

> On 20 Aug 2002 21:57:11 +0000
> Frank <Frank at duranicub.sytes.net> wrote:
> 
> > 
> > Am Die, 2002-08-20 um 19.30 schrieb Pete Ehlke:
> > > 
> > > On Tue, Aug 20, 2002 at 08:55:55PM +0000, Frank wrote:
> > > > 
> > > > Am Die, 2002-08-20 um 18.49 schrieb Pete Ehlke:
> > > > > On Tue, Aug 20, 2002 at 08:37:42PM +0000, Frank wrote:
> > > > > > 
> > > > > > please how can i reduce the Memory allocation of a Bind 9.21
> > > > > > caching-only Server reducing ?
> > > > > > 
> > > > > > 25459 named     15   0 37548  36M  1908 S     0,0 14,6  
> > > > > > 0:00 named 25460 named     15   0 37548  36M  1908 S     0,0
> > > > > > 14,6  0:51 named 25461 named     15   0 37548  36M  1908 S  
> > > > > >   0,0
> > > > > > 14,6   0:00 named 25462 named     15   0 37548  36M  1908 S 
> > > > > >  
> > > > > >  0,0 14,6   0:00 named
> > > > > > 25457 named     16   0 37548  36M  1908 S     0,0 14,6  
> > > > > > 0:00 named
> > > > > > 
> > > > > > restarted, about 2 minutes. most it has much more memory in
> > > > > > use.
> > > > > > 
> > > > > Looks like you're running linux. Remember that linux shows
> > > > > threads as processes, so if you're adding all those memory
> > > > > totals together, you're getting a figure that's five times as
> > > > > large as the real memory usage on this machine.
> > > > > 
> > > > > For a caching server in use in a corporate environment, that's
> > > > > not all that much memory usage. How much ram is in the
> > > > > machine?
> > > >
> > > > 256MB
> > > > 
> > > > it swaps to ~60MB, but if i /etc/init.d/named restart the Swap
> > > > Usage is only 5MB. I heard about djbdns, because for a cachning
> > > > ONLY Server its me to much wastefulness.
> > > > 
> > >
> > > 36 Mb on a 256 Mb machine is quite light for a resolver host. If
> > > it's causing you to page (or even to swap), something else is
> > > eating an awful lot of memory. What else do you have running on
> > > this machine?
> > > 
> > 
> > The Problem is, named eats always more Usage ... even if i set
> > coresize 5M; datasize 5M; stacksize 5M;
> > 
> > there is running, Postfix, Apache, Courier-Imap/sqwebmail,
> > NFS,Proftpd...
> > 
> > but the Mainpoint for me is the HIGH Memory Usage of Named. How
> > said, if i restart named, the swapping goes by.

That does seem like an awful lot of memory for bind-9.2.1. Let me show
you some of my totals:

bind 9.2.1 running openbsd 3.1 for 20 clients: less than 1MB
bind 8.2.4 running sunos 5.7 for 20.000 clients (authorative for 8000
zones as well): 98MB.

How much clients are you serving?

// nick



More information about the bind-users mailing list