From owner-freebsd-amd64@FreeBSD.ORG Wed Jan 5 22:09:04 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C01D116A4CE for ; Wed, 5 Jan 2005 22:09:04 +0000 (GMT) Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8831643D48 for ; Wed, 5 Jan 2005 22:09:04 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 1440 invoked from network); 5 Jan 2005 22:09:04 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 5 Jan 2005 22:09:03 -0000 Received: from [10.50.41.243] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id j05M8wGU076533; Wed, 5 Jan 2005 17:08:59 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-amd64@FreeBSD.org Date: Wed, 5 Jan 2005 16:44:38 -0500 User-Agent: KMail/1.6.2 References: <41DB03A3.7070008@ion.lu> In-Reply-To: <41DB03A3.7070008@ion.lu> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200501051644.38657.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx Subject: Re: CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2793.01-MHz K8-class CPU) 0% idle? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2005 22:09:04 -0000 On Tuesday 04 January 2005 03:59 pm, Steve Clement wrote: > Hi, my Intel Xeon runs on 0% idle ALL THE TIME? > > I don't see any non idle processes. > > top -Ibtd2s1 > last pid: 86223; load averages: 14.85, 15.24, 15.80 up 3+03:36:50 > 21:55:36 > 104 processes: 4 running, 100 sleeping > > Mem: 345M Active, 294M Inact, 148M Wired, 51M Cache, 111M Buf, 50M Free > Swap: 1024M Total, 300K Used, 1024M Free > > > ~ PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND > ~ 554 mysql 127 0 111M 60772K RUN 39.3H 4.15% 4.15% mysqld > > last pid: 86223; load averages: 15.58, 15.39, 15.84 up 3+03:36:52 > 21:55:38 > 108 processes: 22 running, 86 sleeping > CPU states: 69.1% user, 0.0% nice, 29.7% system, 1.2% interrupt, 0.0% > idle > Mem: 350M Active, 294M Inact, 148M Wired, 51M Cache, 111M Buf, 45M Free > Swap: 1024M Total, 300K Used, 1024M Free > > ~ PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND > ~ 554 mysql 99 0 116M 65820K RUN 39.3H 7.23% 7.23% mysqld > > > Am I missing something obvios? How do I diagnose this issue? > > > Also, it is a Hyperthreading CPU: > ~ Hyperthreading: 2 logical CPUs > > But only displays: > dmesg:cpu0: on acpi0 > > > AND, as I understand I need 1 pseudo-process called idle per cpu. Isn't > that true for HT? > > # ps -auxw|grep idle > root 11 12.1 0.0 0 20 ?? RL Sat06PM 2064:42.01 [idle] > > > dmesg:ichsmb0: port 0x400-0x41f > irq 17 at device 31.3 on pci0 > > > uname -a:FreeBSD woodstock.party.lu 5.3-RELEASE-p2 FreeBSD > 5.3-RELEASE-p2 #4: Thu Dec 30 08:02:43 CET 2004 > root@woodstock.party.lu:/usr/obj/usr/src/sys/WOODSTOCK amd64 > > > Any help would help :) I can't answer your % idle question, but the hyperthreading thing is because you aren't using an SMP kernel (one with 'options SMP' in it, note that GENERIC in 5.x does not have SMP turned on). (The idle process would be called 'idle: cpu0' if you had an SMP kernel.) -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org