From owner-freebsd-smp Wed Sep 4 00:06:21 1996 Return-Path: owner-smp Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA28880 for smp-outgoing; Wed, 4 Sep 1996 00:06:21 -0700 (PDT) Received: from critter.tfs.com ([140.145.230.252]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id AAA28861; Wed, 4 Sep 1996 00:06:16 -0700 (PDT) Received: from critter.tfs.com (localhost.tfs.com [127.0.0.1]) by critter.tfs.com (8.7.5/8.7.3) with ESMTP id IAA08153; Wed, 4 Sep 1996 08:33:11 +0200 (MET DST) To: Robin Cutshaw cc: smp@freebsd.org Subject: Re: vmstat on smp In-reply-to: Your message of "Tue, 03 Sep 1996 21:59:47 EDT." <199609040159.VAA10680@intercore.com> Date: Wed, 04 Sep 1996 08:33:10 +0200 Message-ID: <8151.841818790@critter.tfs.com> From: Poul-Henning Kamp Sender: owner-smp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In message <199609040159.VAA10680@intercore.com>, Robin Cutshaw writes: >> >> >> 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. Peter has better plans for the idle than to have those processes, but until then: yes. -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. Future will arrive by its own means, progress not so.