Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Feb 2003 04:17:53 +0000
From:      Chris Luke <chrisy@flix.net>
To:        Brendon and Wendy <brendy33@attbi.com>
Cc:        freebsd-smp@freebsd.org
Subject:   Re: mp_machdep.c patch
Message-ID:  <20030204041753.GA17107@flix.net>
In-Reply-To: <200302032001.23528.brendy33@attbi.com>
References:  <200302032001.23528.brendy33@attbi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030204041753.GA17107>