From owner-freebsd-questions@FreeBSD.ORG Fri Jun 4 01:09:07 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 B5D3E16A4CE for ; Fri, 4 Jun 2004 01:09:07 -0700 (PDT) Received: from auk1.snu.ac.kr (auk1.snu.ac.kr [147.46.100.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59E9A43D1F for ; Fri, 4 Jun 2004 01:09:07 -0700 (PDT) (envelope-from stopspam@users.sourceforge.net) Received: from [147.46.44.181] (stopspam@users.sourceforge.net) by auk1.snu.ac.kr (Terrace Internet Messaging Server) with ESMTP id 2004060416:48:31:046758.24301.2505673648 for ; Fri, 04 Jun 2004 16:48:31 +0900 (KST) Message-ID: <40C02E22.4050205@users.sourceforge.net> Date: Fri, 04 Jun 2004 17:09:06 +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> In-Reply-To: <40C01A55.6070809@users.sourceforge.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-TERRACE-SPAMMARK: NO (SR:0.26) (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 08:09:07 -0000 Rob wrote: > > Hi, > > This is on FreeBSD 4-Stable. > > I have set up a caching name server. About its cached data base, > I found out: > > 1) data base is kept in memory > > 2) the maximum memory is adjustable in named.conf, for example: > datasize 20M; > > But without specifying the datasize, how much memory is used by > default. The named.conf man page is rather cryptic: > > datasize > The maximum amount of data memory the server may use. > The default value is default. > > > Elsewhere, I found that this "default" means a system dependent value. > > In any case, how can I find out what is the memory used by my server > on my system? Is there a 'ndc ' command for this? > This is important when I consider to increase the memory limit. I'm adding additional comments to my own email. When I do not have the caching name server running, I do this: # swapinfo ; ndc start ; swapinfo Device 512-blocks Used Avail Capacity Type /dev/ad0s1b 99312 3560 95752 4% Interleaved new pid is 1714 Device 512-blocks Used Avail Capacity Type /dev/ad0s1b 99312 3560 95752 4% Interleaved 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? Thanks, Rob.