anyone with a p4 HT machine ever see anything from cpu1?

Tamouh H. hakmi at rogers.com
Sun Jul 30 18:36:06 UTC 2006


> just a snip of my top window, but as far down as i can 
> stretch my 1280x1024 screen, its all "cpu 0" processes, even 
> while compiling.
> 
> last pid: 16214;  load averages:  0.75,  0.35,  0.17    up 
> 1+00:37:34  
> 09:43:04
> 114 processes: 2 running, 112 sleeping
> CPU states: 34.2% user,  0.0% nice, 15.4% system,  0.4% 
> interrupt, 50.0% idle
> Mem: 202M Active, 456M Inact, 232M Wired, 860K Cache, 110M 
> Buf, 97M Free
> Swap: 983M Total, 983M Free
> 
>   PID USERNAME    THR PRI NICE   SIZE    RES STATE  C   TIME  
>  WCPU COMMAND
>  8805 root          1   8    0 35880K 35552K wait   0   0:11 
> 15.64% ruby18
> 15952 root          1   8    0  1224K  1112K wait   0   0:00  
> 8.00% make
> 15925 root          1   8    0  1224K  1112K wait   0   0:00  
> 3.59% make
>   656 jhorne        1  96    0   303M 53372K select 0   8:25  
> 2.69% Xorg
>   742 jhorne        1  96    0 12632K  8252K select 0  16:42  
> 1.03% gkrellm
>  1337 jhorne        1  96    0 29092K 21276K select 0   0:02  
> 0.78% kdeinit
>   732 jhorne        1  96    0 30700K 22904K select 0   1:21  
> 0.10% kdeinit
>   293 root          1  96    0  1260K   684K select 0   0:24  
> 0.05% moused
>   752 jhorne        1  96    0 25780K 17952K select 0   7:07  
> 0.00% kdeinit
>   738 jhorne        4  20  -76 14012K  8132K kserel 0   1:34  
> 0.00% artsd
>   758 jhorne        1  96    0 31820K 21544K select 0   1:24  
> 0.00% kdeinit
>   720 jhorne        1  96    0 30724K 22796K select 0   1:13  
> 0.00% kdeinit
>   695 jhorne        1  96    0  3532K  2012K select 0   0:41  
> 0.00% gam_server
>   728 jhorne        1  96    0 25596K 17556K select 0   0:12  
> 0.00% kdeinit
> 
> dmesg shows that freebsd sees the other cpu...
> 
> [root at athena ~]# dmesg | grep cpu
>  cpu0 (BSP): APIC ID:  0
>  cpu1 (AP): APIC ID:  1
> cpu0: <ACPI CPU> on acpi0
> acpi_throttle0: <ACPI CPU Throttling> on cpu0
> cpu1: <ACPI CPU> on acpi0
> acpi_throttle1: <ACPI CPU Throttling> on cpu1  cpu0 (BSP): APIC ID:  0
>  cpu1 (AP): APIC ID:  1
> cpu0: <ACPI CPU> on acpi0
> acpi_throttle0: <ACPI CPU Throttling> on cpu0
> cpu1: <ACPI CPU> on acpi0
> acpi_throttle1: <ACPI CPU Throttling> on cpu1
> 
> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs  cpu0 
> (BSP): APIC ID:  0
>  cpu1 (AP): APIC ID:  1
> SMP: AP CPU #1 Launched!
> 
> so is the SMP portion of the technology as worthless as 'they' say?
> 
> thanks,
> jonathan

FBSD 6.1 and 5.4 had no problems with HT on P4 and Xeon processors. I also mentioned the machines ran better with HT enabled than being disabled.

do a check to make sure HT is enabled:

sysctl -a machdep.hyperthreading_allowed

last pid: 20206;  load averages:  0.10,  0.03,  0.01                                                  up 6+02:30:20  14:34:40
158 processes: 1 running, 157 sleeping
CPU states:  3.4% user,  0.0% nice,  1.9% system,  0.2% interrupt, 94.5% idle
Mem: 279M Active, 411M Inact, 263M Wired, 32M Cache, 111M Buf, 9560K Free
Swap: 3000M Total, 202M Used, 2798M Free, 6% Inuse

  PID USERNAME   THR PRI NICE   SIZE    RES STATE  C   TIME   WCPU COMMAND
  810 mysql       52  20    0 69304K 17080K kserel 1  12:07  0.00% mysqld
 2205 clamav       4  20    0 22940K 20256K kserel 1  11:44  0.00% clamd
  617 mailman      1   8    0  7960K  1416K nanslp 0   1:50  0.00% python2.4
  615 mailman      1   8    0  7968K  1436K nanslp 1   1:48  0.00% python2.4
  618 mailman      1   8    0  7976K  1420K nanslp 1   1:47  0.00% python2.4
22110 mailnull     1  96    0  5668K   656K select 1   1:46  0.00% exim-4.62-0
  616 mailman      1   8    0  7964K  1396K nanslp 1   1:46  0.00% python2.4
  614 mailman      1   8    0  7960K  1400K nanslp 0   1:45  0.00% python2.4
  619 mailman      1   8    0  8020K  1436K nanslp 0   1:45  0.00% python2.4
  621 mailman      1   8    0  7960K  1408K nanslp 0   1:43  0.00% python2.4
55933 root         1  96    0  2628K  1412K CPU0   0   1:33  0.00% top
50253 root         1  96    0 22860K 13364K select 0   1:06  0.00% perl
 1027 mcsupport    1  96    0  6120K   360K select 1   0:58  0.00% sshd
  882 mailnull     1   8    0  6168K  2008K nanslp 0   0:53  0.00% perl5.8.8
22116 root         1   8    0  2684K  1508K nanslp 1   0:40  0.00% perl5.8.8
  505 nobody       1  20    0 13136K  7068K lockf  0   0:26  0.00% httpd
 2193 nobody       1  20    0 27340K  7468K lockf  0   0:24  0.00% httpd
  474 root         1  96    0  8664K  1596K select 0   0:23  0.00% httpd
  492 nobody       1  20    0 12416K  6388K lockf  1   0:21  0.00% httpd
  647 root         1   8    0  9552K  1688K nanslp 0   0:21  0.00% perl5.8.8
  495 nobody       1  20    0 20436K  7308K lockf  1   0:17  0.00% httpd
  609 root         1  96    0  9700K  2888K select 1   0:16  0.00% cppop
  309 root         1  96    0  1300K   424K select 0   0:15  0.00% syslogd
  578 root         1   8   20  8496K  5480K nanslp 0   0:14  0.00% perl5.8.8



More information about the freebsd-questions mailing list