From owner-freebsd-hackers Wed Oct 8 11:23:57 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA05736 for hackers-outgoing; Wed, 8 Oct 1997 11:23:57 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id LAA05731 for ; Wed, 8 Oct 1997 11:23:53 -0700 (PDT) (envelope-from dag-erli@ifi.uio.no) Received: from hrotti.ifi.uio.no (2602@hrotti.ifi.uio.no [129.240.64.15]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id ; Wed, 8 Oct 1997 20:23:43 +0200 MIME-Version: 1.0 Received: (from dag-erli@localhost) by hrotti.ifi.uio.no ; Wed, 8 Oct 1997 20:23:42 +0200 (MET DST) To: Gordon Henderson Cc: hackers@FreeBSD.ORG Subject: Re: Wheres all my memory going? References: Organization: Not unless it can't be avoided. X-url: http://www.ifi.uio.no/~dag-erli/ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit From: dag-erli@ifi.uio.no (Dag-Erling Coidan Smørgrav) Date: 08 Oct 1997 20:23:42 +0200 In-Reply-To: Gordon Henderson's message of Wed, 8 Oct 1997 13:55:54 +0100 (BST) Message-ID: Lines: 23 X-Mailer: Gnus v5.3/Emacs 19.34 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Gordon Henderson writes: > Machine boots OK. I start named (8.1.1) and it initialises. However, after > some time (a day or so) the machine start to run out of swap space. I only > allocated 64M of swap. (Is this the problem?) What I can't figure out is > where the memory is going. Output of 'top -b' shows: This is a FAQ. See the FreeBSD FAQ list, section 12, question 12.1: Q. Why does FreeBSD consume far more swap space than Linux? A. It doesn't. You might mean ``why does my swap seem full?''. If that is what you really meant, it's because putting stuff in swap rather than discarding it makes it faster to recover than if the pager had to go through the file system to pull in clean (unmodified) blocks from an executable. The actual amount of dirty pages that you can have in core at once is not reduced; the clean pages are displaced as necessary. -- * Finrod (INTJ) * Unix weenie * dag-erli@ifi.uio.no * cellular +47-92835919 * RFC1123: "Be liberal in what you accept, and conservative in what you send"