From owner-freebsd-hackers@FreeBSD.ORG Fri May 5 04:45:03 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC8BA16A400 for ; Fri, 5 May 2006 04:45:03 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8181243D4C for ; Fri, 5 May 2006 04:44:52 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.14] (imini.samsco.home [192.168.254.14]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id k454igFS059446; Thu, 4 May 2006 22:44:42 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <445AD83A.7090607@samsco.org> Date: Thu, 04 May 2006 22:44:42 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.7) Gecko/20050416 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Erich Dollansky References: <445AB56F.8090907@centtech.com> <445AC174.5050102@pacific.net.sg> <445AC46F.30702@centtech.com> <445AD048.80305@pacific.net.sg> <445AD1AC.1070902@centtech.com> <445AD300.1020808@pacific.net.sg> <445AD50B.2060107@centtech.com> <445AD6B4.7050407@pacific.net.sg> In-Reply-To: <445AD6B4.7050407@pacific.net.sg> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on pooker.samsco.org Cc: freebsd-hackers@freebsd.org Subject: Re: Core Duo - only one cpu being used X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 May 2006 04:45:03 -0000 Erich Dollansky wrote: > Hi, > > Eric Anderson wrote: > >> Erich Dollansky wrote: >> >>> Hi, >>> >>> Eric Anderson wrote: >>> >>>> >>>> PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU >>>> COMMAND >>>> 11 root 1 171 52 0K 8K CPU1 0 0:00 99.02% >>>> idle: cpu1 >>>> 2653 root 1 128 0 18564K 17560K RUN 0 0:01 34.00% >>>> cc1plus >>> >>> >>> could it be that it is just a problem with top itself? >>> >>> It cannot be that CPU1 uses 99% for the idle process and 34% for the >>> compiler. >>> >>> Play with the other sort options. You might find the the idle process >>> for CPU0. >> >> >> Is this what you want: >> >> $ ps -auxw | grep idle >> root 11 99.0 0.0 0 8 ?? RL 7:45PM 0:00.00 >> [idle: cpu1] >> root 12 0.0 0.0 0 8 ?? RL 7:45PM 51:04.57 >> [idle: cpu0] >> > something is really wrong here. CPU1 gets 99% of the time but uses then > only 0 seconds while CPU0 gets 0% of the time but uses 51 hours? CPU1 is being treated as a hyperthreading core instead of a real core, and is being disabled per our policy on Intel hyperthreading. By 'disabled' I mean that it is started, but it is being excluded from scheduling decisions, and thus is only running its idle proc. It's also handling any interrupts that come to it, such as timer and IPI interrupts, so it's at 99% instead of 100% for the idle proc. There is nothing broken about the number you are seeing, your system is just running under a scheduling policy that it should not be. This should have been fixed a week or so ago by a commit to HEAD, RELENG_6, and RELENG_6_1 by Colin Percival. How old is kernel? Scott