From owner-freebsd-questions@FreeBSD.ORG Tue Oct 7 20:54:16 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 58DD11065696 for ; Tue, 7 Oct 2008 20:54:16 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell.rawbw.com (shell.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 4775D8FC26 for ; Tue, 7 Oct 2008 20:54:16 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from eagle.syrec.org (c-67-188-126-36.hsd1.ca.comcast.net [67.188.126.36]) (authenticated bits=0) by shell.rawbw.com (8.13.6/8.13.6) with ESMTP id m97Kt5S9063363 for ; Tue, 7 Oct 2008 13:55:05 -0700 (PDT) Message-ID: <48EBCC75.1040908@rawbw.com> Date: Tue, 07 Oct 2008 13:54:13 -0700 From: Yuri User-Agent: Thunderbird 2.0.0.17 (X11/20081001) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Strange memory/cpu behavior X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: yuri@rawbw.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2008 20:54:16 -0000 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. Yuri