From owner-freebsd-hackers Wed Sep 3 19:35:51 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA26493 for hackers-outgoing; Wed, 3 Sep 1997 19:35:51 -0700 (PDT) Received: from word.smith.net.au (ppp20.portal.net.au [202.12.71.120]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA26486 for ; Wed, 3 Sep 1997 19:35:45 -0700 (PDT) Received: from word.smith.net.au (localhost.smith.net.au [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id MAA00822; Thu, 4 Sep 1997 12:04:07 +0930 (CST) Message-Id: <199709040234.MAA00822@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Brian Campbell cc: freebsd-hackers@FreeBSD.ORG Subject: Re: 2.2-stable swap usage? In-reply-to: Your message of "Wed, 03 Sep 1997 21:39:59 -0400." <19970903213959.15005@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 04 Sep 1997 12:04:03 +0930 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > On Thu, Sep 04, 1997 at 01:16:01AM +0000, Alfred Perlstein wrote: > > AccelX supposedly has memory leaks > > try restarting the X server if you can... The current (3.1) AX seems pretty stable; it gets a real beating on our radar systems and we're *very* touchy about memory leaks. > > On Wed, 3 Sep 1997, Brian Campbell wrote: > > > Is it normal for 24M of swap to be marked in-use when nothing appears to be using it? > > > System has 64M RAM, and has been up and running AccelX for about a week. > > > Killing syslogd and cron didn't help. There wasn't much left ... > > I guess I didn't mention that. I did restart the server a few > times. And the ps output and pstat output shown were at a time > after the Xserver (and pretty much everything else) had exited. You are asking a Really Basic Unix FAQ; this one comes up every few weeks. The simple answer is that once swap is allocated to a process, it is never freed. You have, in the case above, 24M worth of text which at some stage has been swapped out, and thus has had swap allocated to it. It doesn't mean you have 24M worth of swap currently "in use". Be Happy. mike