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

2006-07-30 Thread Jonathan Horne
i have smp support compiled into my kernel, an still, i never see anything on 
the HT'd cpu.  i realize that most ppl believe that the HT portion of the 
technology was just a bunch of smoke blown up our butts by intel, but windows 
sure loves to bounce that extra cpu graph around a lot.  below is 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.17up 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 USERNAMETHR PRI NICE   SIZERES STATE  C   TIME   WCPU COMMAND
 8805 root  1   80 35880K 35552K wait   0   0:11 15.64% ruby18
15952 root  1   80  1224K  1112K wait   0   0:00  8.00% make
15925 root  1   80  1224K  1112K wait   0   0:00  3.59% make
  656 jhorne1  960   303M 53372K select 0   8:25  2.69% Xorg
  742 jhorne1  960 12632K  8252K select 0  16:42  1.03% gkrellm
 1337 jhorne1  960 29092K 21276K select 0   0:02  0.78% kdeinit
  732 jhorne1  960 30700K 22904K select 0   1:21  0.10% kdeinit
  293 root  1  960  1260K   684K select 0   0:24  0.05% moused
  752 jhorne1  960 25780K 17952K select 0   7:07  0.00% kdeinit
  738 jhorne4  20  -76 14012K  8132K kserel 0   1:34  0.00% artsd
  758 jhorne1  960 31820K 21544K select 0   1:24  0.00% kdeinit
  720 jhorne1  960 30724K 22796K select 0   1:13  0.00% kdeinit
  695 jhorne1  960  3532K  2012K select 0   0:41  0.00% gam_server
  728 jhorne1  960 25596K 17556K select 0   0:12  0.00% kdeinit

dmesg shows that freebsd sees the other cpu...

[EMAIL PROTECTED] ~]# 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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2006-07-30 Thread Tamouh H.
 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.17up 
 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 USERNAMETHR PRI NICE   SIZERES STATE  C   TIME  
  WCPU COMMAND
  8805 root  1   80 35880K 35552K wait   0   0:11 
 15.64% ruby18
 15952 root  1   80  1224K  1112K wait   0   0:00  
 8.00% make
 15925 root  1   80  1224K  1112K wait   0   0:00  
 3.59% make
   656 jhorne1  960   303M 53372K select 0   8:25  
 2.69% Xorg
   742 jhorne1  960 12632K  8252K select 0  16:42  
 1.03% gkrellm
  1337 jhorne1  960 29092K 21276K select 0   0:02  
 0.78% kdeinit
   732 jhorne1  960 30700K 22904K select 0   1:21  
 0.10% kdeinit
   293 root  1  960  1260K   684K select 0   0:24  
 0.05% moused
   752 jhorne1  960 25780K 17952K select 0   7:07  
 0.00% kdeinit
   738 jhorne4  20  -76 14012K  8132K kserel 0   1:34  
 0.00% artsd
   758 jhorne1  960 31820K 21544K select 0   1:24  
 0.00% kdeinit
   720 jhorne1  960 30724K 22796K select 0   1:13  
 0.00% kdeinit
   695 jhorne1  960  3532K  2012K select 0   0:41  
 0.00% gam_server
   728 jhorne1  960 25596K 17556K select 0   0:12  
 0.00% kdeinit
 
 dmesg shows that freebsd sees the other cpu...
 
 [EMAIL PROTECTED] ~]# 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   SIZERES STATE  C   TIME   WCPU COMMAND
  810 mysql   52  200 69304K 17080K kserel 1  12:07  0.00% mysqld
 2205 clamav   4  200 22940K 20256K kserel 1  11:44  0.00% clamd
  617 mailman  1   80  7960K  1416K nanslp 0   1:50  0.00% python2.4
  615 mailman  1   80  7968K  1436K nanslp 1   1:48  0.00% python2.4
  618 mailman  1   80  7976K  1420K nanslp 1   1:47  0.00% python2.4
22110 mailnull 1  960  5668K   656K select 1   1:46  0.00% exim-4.62-0
  616 mailman  1   80  7964K  1396K nanslp 1   1:46  0.00% python2.4
  614 mailman  1   80  7960K  1400K nanslp 0   1:45  0.00% python2.4
  619 mailman  1   80  8020K  1436K nanslp 0   1:45  0.00% python2.4
  621 mailman  1   80  7960K  1408K nanslp 0   1:43  0.00% python2.4
55933 root 1  960  2628K  1412K CPU0   0   1:33  0.00% top
50253 root 1  960 22860K 13364K select 0   1:06  0.00% perl
 1027 mcsupport1  960  6120K   360K select 1   0:58  0.00% sshd
  882 mailnull 1   80  6168K  2008K nanslp 0   0:53  0.00% perl5.8.8
22116 root 1   80  2684K  1508K nanslp 1   0:40  0.00% perl5.8.8
  505 nobody   1  200 13136K  7068K lockf  0   0:26  0.00% httpd
 2193 nobody   1  200 27340K  7468K lockf  0   0:24  0.00% httpd
  474 root 1  960  8664K  1596K select 0   0:23  0.00% httpd
  492 nobody   1  200 12416K  6388K lockf  1   0:21  0.00% httpd
  647 root 1   80  9552K  1688K nanslp 0   0:21  0.00% perl5.8.8
  495 nobody   1  200 20436K  7308K lockf  1   0:17  0.00% httpd
  609 root 1  960  9700K  2888K select 1   0:16  0.00% cppop
  309 root 1  960  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

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL 

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

2006-07-30 Thread Jonathan Horne
On Sunday 30 July 2006 13:36, Tamouh H. wrote:
 do a check to make sure HT is enabled:

 sysctl -a machdep.hyperthreading_allowed

oops... we have definatly found my problem.

[EMAIL PROTECTED] ~]# sysctl -a machdep.hyperthreading_allowed
machdep.hyperthreading_allowed: 0

what do i need to do to get it changed?

thanks,
jonathan

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2006-07-30 Thread Tamouh H.
 
 On Sunday 30 July 2006 13:36, Tamouh H. wrote:
  do a check to make sure HT is enabled:
 
  sysctl -a machdep.hyperthreading_allowed
 
 oops... we have definatly found my problem.
 
 [EMAIL PROTECTED] ~]# sysctl -a machdep.hyperthreading_allowed
 machdep.hyperthreading_allowed: 0
 
 what do i need to do to get it changed?
 
 thanks,
 jonathan
 

do :
sysctl -w machdep.hyperthreading_allowed=1

and make sure the line exist in /etc/sysctl.conf

machdep.hyperthreading_allowed=1

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]