From owner-freebsd-smp Mon Feb 3 20:18: 2 2003 Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE2B837B401 for ; Mon, 3 Feb 2003 20:18:00 -0800 (PST) Received: from vorbis.noc.easynet.net (vorbis.noc.easynet.net [195.40.1.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B00D43F85 for ; Mon, 3 Feb 2003 20:18:00 -0800 (PST) (envelope-from chrisy@vorbis.noc.easynet.net) Received: from chrisy by vorbis.noc.easynet.net with local (Exim 4.10) id 18fuWv-0004UT-00; Tue, 04 Feb 2003 04:17:53 +0000 Date: Tue, 4 Feb 2003 04:17:53 +0000 From: Chris Luke To: Brendon and Wendy Cc: freebsd-smp@freebsd.org Subject: Re: mp_machdep.c patch Message-ID: <20030204041753.GA17107@flix.net> Mail-Followup-To: Chris Luke , Brendon and Wendy , freebsd-smp@freebsd.org References: <200302032001.23528.brendy33@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302032001.23528.brendy33@attbi.com> User-Agent: Mutt/1.4i Organization: The Flirble Internet Exchange X-URL: http://www.flix.net/ X-FTP: ftp://ftp.flirble.org/ Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Brendon and Wendy wrote (on Feb 04): > Question - how does one determine whether the hyperthreading working? My DMESG > is below, as well as output from top. Booting with HTT disabled looks the > same to me. Simple visual method: run "top". On SMP systems with SMP active it displays an extra column displaying the CPU number that a given process last ran or is running on. Each HT instance gets its own CPU number, as listed in dmesg. For example (from an old Quad Xeon): PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND 332 mysql 2 0 32032K 13316K poll 2 42.6H 2.83% 2.83% mysqld 12808 chrisy 28 0 1968K 1148K CPU3 1 0:00 14.86% 1.42% top 12805 chrisy 18 0 1320K 1004K opause 0 0:00 1.75% 0.24% tcsh 12802 root 2 0 4852K 1448K sbwait 3 0:00 0.66% 0.15% sshd 194 namedb 2 0 14564K 13832K select 3 98:23 0.00% 0.00% named Note the "C" column. I'm finding that unlike on MP boards, where you see a more or less even distribution of processes across the procesors, on a HT system, mostly stuff sits on CPU0 with occasional showings of CPU1. (This is alongside my 2nd CPU not firing up, but I'll followup with more on that tomorrow). Chris. -- == chrisy@flix.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message