From owner-freebsd-questions@FreeBSD.ORG Fri Jun 4 05:32:00 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FEE616A4CF for ; Fri, 4 Jun 2004 05:32:00 -0700 (PDT) Received: from auk2.snu.ac.kr (auk2.snu.ac.kr [147.46.100.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id B75D243D54 for ; Fri, 4 Jun 2004 05:31:59 -0700 (PDT) (envelope-from stopspam@users.sourceforge.net) Received: from [147.46.44.181] (stopspam@users.sourceforge.net) by auk2.snu.ac.kr (Terrace Internet Messaging Server) with ESMTP id 2004060421:11:01:336177.13435.2950884272 for ; Fri, 04 Jun 2004 21:11:01 +0900 (KST) Message-ID: <40C06BB2.8090007@users.sourceforge.net> Date: Fri, 04 Jun 2004 21:31:46 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040507 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <40C01A55.6070809@users.sourceforge.net> <40C02E22.4050205@users.sourceforge.net> <20040604140251.T61943@gaff.hhhr.ision.net> In-Reply-To: <20040604140251.T61943@gaff.hhhr.ision.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-TERRACE-SPAMMARK: NO (SR:3.67) (by Terrace) Subject: Re: Memory used by caching name server? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 12:32:00 -0000 Olaf Hoyer wrote: > On Fri, 4 Jun 2004, Rob wrote: > > >>No change at all in memory usage. If named keeps its cache in memory, >>why do I not see any changes of available swap space when starting named? >> >>Or does named claim memory on the fly, as it is caching? >>If so, how can I find out what is the maximum it can claim on my machine? > > > > Hi! > > named claims memory on the fly. > On Solaris, I have bind 8 seen claiming about 800MB RAM for its caching > database, being the resolver for the machine that creates from http-logs > colorful pictures and other fancy things... Waaauw, that sounds rather dangerous to me. I have a caching nameserver running on an old Pentium-I with 32 Mb of ram (48 Mb swap). I am still using it in a testing enviroment, moderately using the named's cache. So far total memory usage by the OS is very low (swap is hardly used). I wonder if named would eat up all the ram in a production enviroment. Can't imagine that, actually. Nowhere I have seen warnings against such disaster. But then there is this option for the named configuration file, that limits the cache memory usage..... Elsewhere, I have read that named uses 1 Mb maximum by default. But I read that in an out-dated document. I assume meanwhile things have changed/improved. Rob.