From owner-freebsd-current@FreeBSD.ORG Wed Nov 23 13:55:18 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1296916A41F for ; Wed, 23 Nov 2005 13:55:18 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id D87C343D66 for ; Wed, 23 Nov 2005 13:55:16 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 2475254 for multiple; Wed, 23 Nov 2005 08:55:17 -0500 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jANDtBV3090294; Wed, 23 Nov 2005 08:55:13 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-current@freebsd.org Date: Wed, 23 Nov 2005 08:51:57 -0500 User-Agent: KMail/1.8.3 References: <20051123090334.GA90972@xor.obsecurity.org> In-Reply-To: <20051123090334.GA90972@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200511230851.58629.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: Kris Kennaway Subject: Re: idle task running on the wrong CPU X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2005 13:55:18 -0000 On Wednesday 23 November 2005 04:03 am, Kris Kennaway wrote: > On 6.0-STABLE: > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > 13 root 1 171 52 0K 8K CPU1 0 0:00 100.00% idle: > cpu1 > > Note: the cpu1 idle task is running on CPU 0. Actually it is not > running, since it's not accumulating any CPU time, and in fact nothing > at all is being scheduled on CPU 1. It is running, but is not accumulating time because it sits in a hlt loop. = =20 Also, the 'state =3D=3D CPU1' means it is running on CPU1. The 'C' column = is the=20 column for the CPU this process last ran on. If this is a HT CPU disabled = by=20 default during boot, then that thread has yet to perform a context switch,= =20 and all threads start off when they are created with the lastcpu being CPU = 0,=20 so it won't update the 'C' column until it actually does a context switch. = =20 I'm not sure why it is not accumulating time, however. =2D-=20 John Baldwin =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org