From owner-freebsd-questions@FreeBSD.ORG Wed Mar 8 16:58:44 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 E9A2C16A424 for ; Wed, 8 Mar 2006 16:58:44 +0000 (GMT) (envelope-from dgw@liwest.at) Received: from lilzmailso02.liwest.at (lilzmailso02.liwest.at [212.33.55.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F13343D73 for ; Wed, 8 Mar 2006 16:58:44 +0000 (GMT) (envelope-from dgw@liwest.at) Received: from cm56-136-28.liwest.at ([86.56.136.28] helo=[192.168.1.102]) by lilzmailso02.liwest.at with esmtp (Exim 4.44) id 1FH1zm-0005n6-BM; Wed, 08 Mar 2006 17:58:42 +0100 From: Daniela To: "Eugene" , Date: Wed, 8 Mar 2006 17:56:36 +0000 User-Agent: KMail/1.5.3 References: <005b01c642bb$23e007c0$1b12c055@genie> In-Reply-To: <005b01c642bb$23e007c0$1b12c055@genie> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200603081756.36597.dgw@liwest.at> X-Spam-Score: -0.9 (/) X-Spam-Report: BAYES_30=-0.904 Cc: Subject: Re: Strange memory problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dgw@liwest.at List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Mar 2006 16:58:45 -0000 On Wednesday 08 March 2006 14:16, Eugene wrote: > Hi people, > > I have a strange problem with memory. > System is FreeBSD 5.3, 4GB physical memory. > Even in very quiet load, memory allocation statistics looks like this: > last pid: 38330; load averages: 0.67, 1.05, 1.03 up 6+06:50:14 > 15:52:30 > 159 processes: 2 running, 156 sleeping, 1 zombie > > Mem: 757M Active, 2673M Inact, 220M Wired, 107M Cache, 112M Buf, 7000K Free > Swap: 10G Total, 1884K Used, 10G Free > > That is, almost 3GB of memory is Inactive while free memory is almost used > up. > If I do 'ps axvf' and sum up the memory columns, I get RSS=1.5GB and > VSZ=1.9GB (approximately). > With Apache stopped, it goes down to RSS=0.5GB and VSZ=0.6G -- but Inactive > Memory remains above 2.5GB. > Is it a memory leak somewhere or what? That looks quite normal to me, apart from the zombie process. FreeBSD always attempts to occupy most of the RAM, because it's a very fast way of saving information, and after all a lot of RAM is of no use if there's nothing in it. So long as no other program needs it for more "important" information, there's nothing wrong with keeping a lot of "unimportant" stuff around in case it is needed again quickly. -- Hope is the worst of all evils, for it prolongs the torments of man.