From owner-freebsd-stable Tue Oct 16 10:42:38 2001 Delivered-To: freebsd-stable@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 4C98F37B405; Tue, 16 Oct 2001 10:42:34 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.11.6/8.11.6) id f9GHgAv47946; Tue, 16 Oct 2001 12:42:10 -0500 (CDT) (envelope-from dan) Date: Tue, 16 Oct 2001 12:42:10 -0500 From: Dan Nelson To: Mike Pumford Cc: freebsd-questions@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG Subject: Re: 0.00% CPU for all processes Message-ID: <20011016124209.A33631@dan.emsphone.com> References: <200110160601.f9G611T20245@zibbi.icomtek.csir.co.za> <200110161236.NAA17246@lion.mpc-data.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200110161236.NAA17246@lion.mpc-data.co.uk> User-Agent: Mutt/1.3.23i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Oct 16), Mike Pumford said: > > > One thing which surprises me, though --- all other processes are > > > zero. Is this normal? This is my first time seeing FreeBSD run. > > > I have an identical box here running linux (and each box runs a > > > minimum of services), where at least top will show nonzero CPU > > > percentage in top, usually around 0.5%. Does linux have more > > > fine-grained timing, or is it cheating, or does the margin of > > > error render this test essentially meaningless anyway? > > top on Linux is really slow compared to the BSD versions. It is > slower to update and always consumes a significant chunk of CPU. BSD > top seems much more efficient. Possibly down to the fact the BSD top > gathers its info with libkvm while linux top has to parse a load of > files in /proc. I suspect there may be differences in the CPU usage > calculation algorithm as well. The first thing I do on every Linux box installed here at work is to compile top-3.5beta12. Works great. Whatever ships with Linux doesn't deserve to be called 'top'. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message