From owner-freebsd-questions@FreeBSD.ORG Wed Oct 8 04:37:28 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 254B810656A0 for ; Wed, 8 Oct 2008 04:37:28 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA03.emeryville.ca.mail.comcast.net (qmta03.emeryville.ca.mail.comcast.net [76.96.30.32]) by mx1.freebsd.org (Postfix) with ESMTP id 0A1E68FC08 for ; Wed, 8 Oct 2008 04:37:27 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA07.emeryville.ca.mail.comcast.net ([76.96.30.59]) by QMTA03.emeryville.ca.mail.comcast.net with comcast id Q3mt1a0061GXsucA34dTY3; Wed, 08 Oct 2008 04:37:27 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA07.emeryville.ca.mail.comcast.net with comcast id Q4dS1a00A2P6wsM8T4dTaV; Wed, 08 Oct 2008 04:37:27 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=VNSBfkDg_SeCwdN1PnYA:9 a=mXgwU1F3vZt2BuUNOcg0tUCzzu0A:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 9A757C9419; Tue, 7 Oct 2008 21:37:26 -0700 (PDT) Date: Tue, 7 Oct 2008 21:37:26 -0700 From: Jeremy Chadwick To: Yuri Message-ID: <20081008043726.GA66683@icarus.home.lan> References: <48EBCC75.1040908@rawbw.com> <20081007222528.GA60058@icarus.home.lan> <48EBF40D.5050807@rawbw.com> <20081008040420.GA66117@icarus.home.lan> <48EC329F.9070902@rawbw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48EC329F.9070902@rawbw.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions@FreeBSD.org Subject: Re: Strange memory/cpu behavior X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2008 04:37:28 -0000 On Tue, Oct 07, 2008 at 09:10:07PM -0700, Yuri wrote: > Jeremy Chadwick wrote: >> I'm a little confused. I was mainly referring to your statement: >> >> "There is one large active process slowly growing in memory from 500MB >> to 1300MB, not reading or writing any files." >> >> What field in top(1) were you looking at to determine this kind of >> growth? >> > > Sorry, I misunderstood the question first. > Memory is taken from the SIZE column, but RES is always very close. Generally speaking, you do not want to be looking at SIZE to determine how much memory a process is taking up -- you want to look at RES. SIZE includes memory shared across all processes which rely on loaded shared objects. For example, if you had 20 processes running which were all linked with libssh.so.4, only one copy of libssh.so.4 would exist in memory, and all 20 of those processes would share it. On later versions of FreeBSD 7.0 and on 7.1, there is the procstat(1) utility which can be used to break down memory usage. As for your CPU usage issue, I'm not quite sure what you're referring to. It might help if we could see some actual output from top(1) pointing to what you're describing. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |