From owner-freebsd-questions Thu Jun 29 9:14:59 2000 Delivered-To: freebsd-questions@freebsd.org Received: from po3.wam.umd.edu (po3.wam.umd.edu [128.8.10.165]) by hub.freebsd.org (Postfix) with ESMTP id 69F6437B873 for ; Thu, 29 Jun 2000 09:14:53 -0700 (PDT) (envelope-from culverk@wam.umd.edu) Received: from rac10.wam.umd.edu (root@rac10.wam.umd.edu [128.8.10.150]) by po3.wam.umd.edu (8.9.3/8.9.3) with ESMTP id MAA00197; Thu, 29 Jun 2000 12:14:43 -0400 (EDT) Received: from rac10.wam.umd.edu (sendmail@localhost [127.0.0.1]) by rac10.wam.umd.edu (8.9.3/8.9.3) with SMTP id MAA28889; Thu, 29 Jun 2000 12:14:46 -0400 (EDT) Received: from localhost (culverk@localhost) by rac10.wam.umd.edu (8.9.3/8.9.3) with ESMTP id MAA28885; Thu, 29 Jun 2000 12:14:46 -0400 (EDT) X-Authentication-Warning: rac10.wam.umd.edu: culverk owned process doing -bs Date: Thu, 29 Jun 2000 12:14:46 -0400 (EDT) From: Kenneth Wayne Culver To: Paul Herman Cc: Sam Xie , freebsd-questions@FreeBSD.ORG Subject: Re: memory leak? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Well, I know for sure that netscape leaks memory, but not that > > much, for most purposes though, the "inactive" memory is free for > > use by other programs, it's just being kept as inactive because > > some program stored in that memory that has exited might be run > > again, and it's faster to run from inactive memory than disk if it > > hasn't been used for anything else... I think my explanation is > > WAY simplified, but I think I got it basically right. > > I think you are thinking about "cache" memory. As far as I understand > it, "inactive" memory is just "active" memory that hasn't been used in > 30 seconds i.e. dirty pages that are still associated with objects and > cannot be reused until they are cleaned or freed (i.e. moved into > either "cache" or "free".) At least, that's how I've understood it. > Hrmm, I don't know, One thing I do know however is that when wmmon and other utilities that put guages on memory usage measure the usage, they measure inactive memory as free... and I've read (I think in the 4.4BSD book) that inactive memory can be considered usable by programs, although I read that about 6 months ago... Maybe I'll look through these books I'm looking at for a class I'm taking here at work... "4.4BSD Kernel Internals: An Intensive Code Walkthrough" I'm sure it'll have the answer because now I wanna know what the answer is :-) Ken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message