From owner-freebsd-questions Thu Jan 31 2:40:48 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailb.telia.com (mailb.telia.com [194.22.194.6]) by hub.freebsd.org (Postfix) with ESMTP id 125FC37B400 for ; Thu, 31 Jan 2002 02:40:43 -0800 (PST) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailb.telia.com (8.11.6/8.11.6) with ESMTP id g0VAefq06274 for ; Thu, 31 Jan 2002 11:40:41 +0100 (CET) Received: from falcon.midgard.homeip.net (h185n2fls20o913.telia.com [212.181.163.185]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id LAA05444 for ; Thu, 31 Jan 2002 11:40:41 +0100 (CET) Received: (qmail 74485 invoked by uid 1001); 31 Jan 2002 10:40:39 -0000 Date: Thu, 31 Jan 2002 11:40:39 +0100 From: Erik Trulsson To: RJ45 Cc: freebsd-questions@freebsd.org Subject: Re: Memory problem on Dual PIII Message-ID: <20020131104039.GA73719@student.uu.se> Mail-Followup-To: RJ45 , freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.25i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jan 31, 2002 at 03:25:36AM -0700, RJ45 wrote: > > Hello, > I have a Dual PIII with 1GB RAM. > I have the following problem which I found out using snortsnarf. > This is my actual memory usage: > > Mem: 122M Active, 689M Inact, 120M Wired, 62M Cache, 163M Buf, 514M Free > > If I use a high CPU and Memory bound program like snortsnarf or even dd > with a very large file, the Free Memory starts going down and the Active > Memory start increasing. When the Free Memory reaches 0 and the active > memory is around 600MB snortsarf dies with out of memory message but the > WEIRD thing is that the Inactive memory ALWAYS stays at 689MB and it is > NEVER used like if it does not work... so that I have about half of my > total RAM amount which is NEVER used. > This seeems to be a big problem. > anyone has some hint about it ? > thanks It sounds somewhat weird but my guess at what happens is the following: By default a single process cannot use more than 512MB of data. I guess that that is the limit your process runs up against. Since this is about the size of your Free memory I guess it is just coincidence that this happens at the same time as Free reaches 0. The system tries to use Free memory first and then use Inactive. (Free memory is just that, free and unused. Inactive memory is memory which contains potentially useful data which can be thrown away if necessary.) Try running 2 memory hungry programs at the same time and see what happens. My guess is that the amount of Incactive memory will start to shrink then. (And both programs will die after using about 512 MB each.) (Note: This is just an educated guess at what is going on. It might be something else that is wrong.) -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message