From owner-freebsd-questions@FreeBSD.ORG Tue Oct 7 22:25:31 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 28884106569C for ; Tue, 7 Oct 2008 22:25:31 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA01.westchester.pa.mail.comcast.net (qmta01.westchester.pa.mail.comcast.net [76.96.62.16]) by mx1.freebsd.org (Postfix) with ESMTP id C5BF38FC1D for ; Tue, 7 Oct 2008 22:25:30 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA06.westchester.pa.mail.comcast.net ([76.96.62.51]) by QMTA01.westchester.pa.mail.comcast.net with comcast id PtwL1a00B16LCl051yRVKi; Tue, 07 Oct 2008 22:25:29 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA06.westchester.pa.mail.comcast.net with comcast id PyRU1a0092P6wsM3SyRUiU; Tue, 07 Oct 2008 22:25:29 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=_5yC09qch2Wtbmare4cA:9 a=JIn7zNvyVuBwPpk7foFTGIqVpmcA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 3FFD7C9419; Tue, 7 Oct 2008 15:25:28 -0700 (PDT) Date: Tue, 7 Oct 2008 15:25:28 -0700 From: Jeremy Chadwick To: Yuri Message-ID: <20081007222528.GA60058@icarus.home.lan> References: <48EBCC75.1040908@rawbw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48EBCC75.1040908@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: Tue, 07 Oct 2008 22:25:31 -0000 On Tue, Oct 07, 2008 at 01:54:13PM -0700, Yuri wrote: > I have STABLE-71 machine with 2GB memory and single 2GHz AMD3200 CPU. > > There is one large active process slowly growing in memory from 500MB to > 1300MB, not reading or writing any files. > There are many dormant processes almost not running at all. > Swap size remains constant (185MB). Total physical memory used remains > 2GB (whole memory used). > > ps shows that the active process only takes 15-18% CPU. But total CPU > consumption on the machine is 100% (user). > > Since the active process grows but swap+physical memory doesn't grow I > assume that OS pushes out other processes code since it's unchanged on > disk. > > Why such operation is so expensive and takes 80-85% CPU? > Why total of all user processes CPU consumption is ~20% but total > CPU(user) consumption shows as 100%? Shouldn't they be the same. Regarding the "memory bloat", what field in top(1) are you basing this on? -- | 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 |