From owner-freebsd-smp Tue Sep 3 19:04:57 1996 Return-Path: owner-smp Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA15277 for smp-outgoing; Tue, 3 Sep 1996 19:04:57 -0700 (PDT) Received: from intercore.com (num1sun.intercore.com [199.181.243.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id TAA15261 for ; Tue, 3 Sep 1996 19:04:48 -0700 (PDT) Received: (robin@localhost) by intercore.com (8.7.1/8.6.4) id VAA10680; Tue, 3 Sep 1996 21:59:49 -0400 (EDT) From: Robin Cutshaw Message-Id: <199609040159.VAA10680@intercore.com> Subject: Re: vmstat on smp To: robin@intercore.com (Robin Cutshaw) Date: Tue, 3 Sep 1996 21:59:47 -0400 (EDT) Cc: smp@freebsd.org In-Reply-To: <199609040056.UAA10449@intercore.com> from "Robin Cutshaw" at Sep 3, 96 08:55:59 pm X-Mailer: ELM [version 2.4 PL21] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-smp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > I am doing a non-parallel make and see the cpu idle at 0 and most of the > time used in sys. It doesn't look like the second cpu is being counted > in total cpu percentage available. The "sys" figure looks suspect as > well. > Well, to answer my own question, the cpuidle0 and cpuidle1 kernel idle processes are accumulating all of the sys ticks and they are being charged to them rather that to idle ticks. This explains the displayed behavior. In kern/kern_clock.c:statclock() it looks like the check for non-null process in sys time should also check for the process being cpuidle0 or cpuidle1. robin -- ---- Robin Cutshaw internet: robin@interlabs.com Internet Labs, Inc. BellNet: 404-817-9787 "Time is just one damn thing after another" -- PBS/Nova ---- --