From owner-freebsd-stable Tue Oct 16 5:39:24 2001 Delivered-To: freebsd-stable@freebsd.org Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by hub.freebsd.org (Postfix) with ESMTP id 598D437B405; Tue, 16 Oct 2001 05:39:17 -0700 (PDT) Received: from mpc-data.demon.co.uk ([158.152.55.245] helo=burton.mpc-data.co.uk) by anchor-post-30.mail.demon.net with esmtp (Exim 2.12 #1) id 15tTV5-0002ov-0U; Tue, 16 Oct 2001 13:39:15 +0100 Received: from lion.mpc-data.co.uk (root@lion.mpc-data.co.uk [192.150.92.1]) by burton.mpc-data.co.uk (8.8.7/8.8.5) with ESMTP id NAA27223; Tue, 16 Oct 2001 13:36:34 +0100 Received: from lion.mpc-data.co.uk (IDENT:mpumford@localhost [127.0.0.1]) by lion.mpc-data.co.uk (8.9.3/8.8.5) with ESMTP id NAA17246; Tue, 16 Oct 2001 13:36:32 +0100 Message-Id: <200110161236.NAA17246@lion.mpc-data.co.uk> X-Mailer: exmh version 2.0.3 To: freebsd-questions@freebsd.org, freebsd-stable@freebsd.org Subject: Re: 0.00% CPU for all processes In-Reply-To: Your message of "Sat, 16 Oct 2001 08:01:01 +0200." <200110160601.f9G611T20245@zibbi.icomtek.csir.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 16 Oct 2001 13:36:32 +0100 From: Mike Pumford 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 > > 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. Mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message