Re: SMP System but only CPU#0 being used?

2007-06-04 Thread Sergio Lenzi
from the smp man page.


1) make sure you have options SMP in  your kernel and is built and
compiled OK.

2)put the lines in the /boot/loader.conf
and reboot the system


machdep.cpu_idle_hlt=0
machdep.hlt_cpus=0
machdep.hlt_logical_cpus=0
machdep.hyperthreading_allowed=1
==
should work... 
my cpus are pentiuns HT or pentius 4 dual core


Lenzi

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


Re: SMP System but only CPU#0 being used?

2007-06-03 Thread Harald Schmalzbauer
Am Sonntag, 3. Juni 2007 schrieb Alex R:
 On Sat, 02 Jun 2007 18:43:52 -0500, JD Bronson [EMAIL PROTECTED]
[...]
 to 0, i will try setting it to 1 and see what happens. The CPU is a LGA775
 Pentium-M with EMT64 I think, I remember the CPU box saying dual core on it
 (not core duo though). Pentium 4 was socket 478 from memory or did Intel do
 a Pentium 4 in LGA775 too?

Yes, they had P4 in LGA775 for quiet some time.
I'm quiet sure that a 3GHz CPU is NetBurst architecture, pentium-m never 
reached that clock. But regardless of the architecture, therre were relad 
Dula Core Pentium 4 (xxxD) and the old hyperthreaded.
If it was a Dual Core CPU FreeBSD wouldn't report Logical CPUs per core 
but Cores per package

-Harry


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



-- 
OmniSEC  -  UNIX und Windows Netzwerke - Sicher
Harald Schmalzbauer
Flintsbacher Str. 3
80686 München
+49 (0) 89 18947781
+49 (0) 160 93860101
USt-IdNr.: DE253184753
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SMP System but only CPU#0 being used?

2007-06-03 Thread Bill Moran
Alex R [EMAIL PROTECTED] wrote:

 Hi All,
 
 Just wondering about something here.
 
 First of all, I am running FreeBSD 6.2-STABLE
 
 and the CPU stats (parts of dmesg)
 
 CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (2992.52-MHz 686-class CPU)
   Origin = GenuineIntel  Id = 0xf49  Stepping = 9
   
 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
   Features2=0x641dSSE3,RSVD2,MON,DS_CPL,CNTX-ID,CX16,b14
   AMD Features=0x2010NX,LM
   AMD Features2=0x1LAHF
   Logical CPUs per core: 2
 real memory  = 1065287680 (1015 MB)
 avail memory = 1033314304 (985 MB)
 ACPI APIC Table: GBTAWRDACPI
 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1
 
 SMP: AP CPU #1 Launched!
 
 Now some processes:
 
 last pid:  1420;  load averages:  0.02,  0.09,  0.15  
   up 0+02:03:03  23:04:35
 69 processes:  1 running, 68 sleeping
 CPU states:  3.8% user,  0.0% nice,  2.6% system,  0.8% interrupt, 92.9% idle
 Mem: 116M Active, 115M Inact, 172M Wired, 140K Cache, 110M Buf, 585M Free
 Swap: 2007M Total, 2007M Free
 
   PID USERNAMETHR PRI NICE   SIZERES STATE  C   TIME   WCPU COMMAND
   658 alex  1  960   288M 33708K select 0   1:43  0.88% Xorg
   815 alex  4  200 47640K 30416K kserel 0   3:49  0.00% vlc
   998 alex  1  960 21660K 17372K select 0   0:21  0.00% xchat
  1389 alex  5  200 62768K 54436K kserel 0   0:16  0.00% 
 firefox-bin
   729 alex  1  960 31572K 27840K select 0   0:16  0.00% kdeinit
   601 root  1  960  1344K   796K select 0   0:09  0.00% moused
   717 alex  1  960 30360K 25588K select 0   0:06  0.00% kdeinit
  1106 alex  1  960 30560K 24052K select 0   0:06  0.00% kdeinit
   727 alex  1  960 32772K 29300K select 0   0:06  0.00% kdeinit
   725 alex  1  960 26108K 21288K select 0   0:05  0.00% kdeinit
   735 alex  1  60  -36 10452K  7448K select 0   0:04  0.00% artsd
   693 alex  1  960  3612K  2380K select 0   0:02  0.00% gam_server
  1412 alex  5  200 23520K 17816K kserel 0   0:01  0.00% 
 gnome-terminal
   740 alex  1  960 25124K 20228K select 0   0:01  0.00% kdeinit
   743 alex  1  960 26780K 21600K select 0   0:00  0.00% korgac
  1391 alex  1  960  5852K  4536K select 0   0:00  0.00% gconfd-2
   712 alex  1  960 23032K 17016K select 0   0:00  0.00% kdeinit
   737 alex  1  960 24580K 19284K select 0   0:00  0.00% kdeinit
   708 alex  1  960 23436K 17612K select 0   0:00  0.00% kdeinit
  1414 alex  5  200  6168K  4060K kserel 0   0:00  0.00% 
 bonobo-activation-s
  1140 alex  1  960 26668K 22264K select 0   0:00  0.00% kdeinit
   715 alex  1  960 25080K 19584K select 0   0:00  0.00% kdeinit
   722 alex  1   80  1392K   860K nanslp 0   0:00  0.00% kwrapper
   574 root  1  960  3528K  2808K select 0   0:00  0.00% sendmail
   724 alex  1  960 24600K 19248K select 0   0:00  0.00% kdeinit
  1415 alex  1   40  3092K  1576K sbwait 0   0:00  0.00% 
 gnome-pty-helper
  1416 alex  1   80  3200K  2156K wait   0   0:00  0.00% bash
  1420 alex  1  960  2420K  1624K CPU0   0   0:00  0.00
 and theres many more
 
 All of them are using CPU #0 though?
 
 What am i missing here?

Is this system truly multiprocessor, or hyperthreaded?

Hyperthreading is disabled by default, due to security concerns.  Check
the value of the sysctl machdep.hypterhtreading_enabled.  If you turn
it on and the second CPU starts being used, then you have an HT system,
and not a multiprocessor system.  Then you can decide whether you're
willing to accept the potential security risk of enabling hyperthreading.

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


Re: SMP System but only CPU#0 being used?

2007-06-02 Thread JD Bronson

At 09:41 AM 6/3/2007 +1000, Alex R wrote:

Hi All,

Just wondering about something here.

First of all, I am running FreeBSD 6.2-STABLE

and the CPU stats (parts of dmesg)

CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (2992.52-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf49  Stepping = 9

Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0x641dSSE3,RSVD2,MON,DS_CPL,CNTX-ID,CX16,b14
  AMD Features=0x2010NX,LM
  AMD Features2=0x1LAHF
  Logical CPUs per core: 2
real memory  = 1065287680 (1015 MB)
avail memory = 1033314304 (985 MB)
ACPI APIC Table: GBTAWRDACPI
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1

SMP: AP CPU #1 Launched!

Now some processes:


If this is HTT (seems to be)
and not 'real' dual processors

I just answered this last week?

Check /etc/sysctl.conf for this:

machdep.hyperthreading_allowed=1


-JD 


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


Re: SMP System but only CPU#0 being used?

2007-06-02 Thread Alex R
On Sat, 02 Jun 2007 18:43:52 -0500, JD Bronson [EMAIL PROTECTED] wrote:
 If this is HTT (seems to be)
 and not 'real' dual processors
 
 I just answered this last week?
 
 Check /etc/sysctl.conf for this:
 
 machdep.hyperthreading_allowed=1
 
 
 -JD

Thanks for the reply, I checked that sysctl variable and it seems to be set to 
0, i will try setting it to 1 and see
what happens. The CPU is a LGA775 Pentium-M with EMT64 I think, I remember the 
CPU box saying dual core on it (not core duo though).
Pentium 4 was socket 478 from memory or did Intel do a Pentium 4 in LGA775 too?


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