Re: 6.2-RELEASE does not use second CPU on pentium D

2009-10-13 Thread John Baldwin
On Wednesday 25 April 2007 4:47:48 am Alex Povolotsky wrote:
 Hello!
 
 I have a Pentium D box, running 6.2-RELEASE. In dmesg, I see CPU#1 
 launched, but I never see any process running on it, and mptable shows
 
 cluster-one# mptable -verbose
 
 
===
 
 MPTable
 
  looking for EBDA pointer @ 0x040e, found, searching EBDA @ 0x0009e800
  searching CMOS 'top of mem' @ 0x0009e400 (633K)
  searching default 'top of mem' @ 0x0009fc00 (639K)
  searching BIOS @ 0x000f
 
  MP FPS found in BIOS @ physical addr: 0x000fe200
 
 ---
 
 MP Floating Pointer Structure:
 
   location: BIOS
   physical address: 0x000fe200
   signature:'_MP_'
   length:   16 bytes
   version:  1.4
   checksum: 0x9f
   mode: Virtual Wire
 
 ---
 
 MP Config Table Header:
 
   physical address: 0x000fe210
   signature:'PCMP'
   base table length:64
   version:  1.4
   checksum: 0x7f
   OEM ID:   ''
   Product ID:   ''
   OEM table pointer:0x
   OEM table size:   0
   entry count:  1
   local APIC address:   0xfee0
   extended table length:0
   extended table checksum:  0
 
 ---
 
 MP Config Base Table Entries:
 
 --
 Processors: APIC ID Version State   Family  Model   Step
 Flags
  0   0x14BSP, usable 15  6   4   
 0xbfebfbff
 
 
===
 
 while in dmesg
 
 Copyright (c) 1992-2007 The FreeBSD Project.
 Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
 The Regents of the University of California. All rights reserved.
 FreeBSD is a registered trademark of The FreeBSD Foundation.
 FreeBSD 6.2-RELEASE-p3 #2: Thu Apr 19 00:19:54 MSD 2007
 tark...@cluster-one.zinester.com:/usr/obj/usr/src/sys/P4D
 WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
 WARNING: MPSAFE network stack disabled, expect reduced performance.
 Timecounter i8254 frequency 1193182 Hz quality 0
 CPU: Intel(R) Pentium(R) D CPU 2.80GHz (2808.41-MHz 686-class CPU)
   Origin = GenuineIntel  Id = 0xf64  Stepping = 4
   
 
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=0xe49dSSE3,RSVD2,MON,DS_CPL,EST,CNTX-ID,CX16,b14,b15
   AMD Features=0x2010NX,LM
   AMD Features2=0x1LAHF
 real memory  = 1046757376 (998 MB)
 avail memory = 1015095296 (968 MB)
 ACPI APIC Table: INTEL  DG965SS 
 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1
 ioapic0: Changing APIC ID to 2
 ioapic0 Version 2.0 irqs 0-23 on motherboard
 
 [...]
 SMP: AP CPU #1 Launched!
 
 The kernel is, of course, SMP.
 
 What can I do, where can I search for solution?
 
 Second core IS enabled in BIOS
 cluster-one# sysctl hw | grep cpu
 hw.ncpu: 2
 hw.acpi.cpu.cx_supported: C1/0
 hw.acpi.cpu.cx_lowest: C1
 hw.acpi.cpu.cx_usage: 100.00%
 cluster-one# sysctl machdep | grep cpu
 machdep.cpu_idle_hlt: 1
 machdep.hlt_cpus: 2
 machdep.hlt_logical_cpus: 0
 machdep.logical_cpus_mask: 2
 
 so second CPU is halted, attempt to start it with sysctl does not help
 Alex.

What does 'sysctl machdep | grep hyper' show?

-- 
John Baldwin
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: 6.2-RELEASE does not use second CPU on pentium D

2009-10-10 Thread Steven Hartland

6.2 is really quite old now, does 7.x or even 8.x work?

   Regards
   Steve
- Original Message - 
From: Alex Povolotsky tark...@webmail.sub.ru


I have a Pentium D box, running 6.2-RELEASE. In dmesg, I see CPU#1 
launched, but I never see any process running on it, and mptable shows

...


This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 


In the event of misdirection, illegible or incomplete transmission please 
telephone +44 845 868 1337
or return the E.mail to postmas...@multiplay.co.uk.

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


Re: 6.2-RELEASE does not use second CPU?

2007-04-25 Thread Alex Povolotsky

Kris Kennaway wrote:

On Fri, Apr 20, 2007 at 12:08:57PM -0700, Kevin Oberman wrote:
  

Date: Fri, 20 Apr 2007 22:54:52 +0400
From: Alexey Karagodov [EMAIL PROTECTED]
Sender: [EMAIL PROTECTED]

and what is this, i mean why:
WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
WARNING: MPSAFE network stack disabled, expect reduced performance.
  
I thought it was pretty clear. 


ipsec is not multi-processor safe and requires the use of GIANT. If you
have IPSEC in your kernel the network stack will also be giant locked
which will cut performance.



Yep, google for extensive discussion (hint: FAST_IPSEC)
  


No visible changes in behaviour with FAST_IPSEC

Fast IPsec: Initialized Security Association Processing.

mptable still shows ONE CPU

Alex.


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


Re: 6.2-RELEASE does not use second CPU?

2007-04-25 Thread Alexey Karagodov

please, dmesg, mptable -verbose, mptable -grope

2007/4/25, Alex Povolotsky [EMAIL PROTECTED]:


Kris Kennaway wrote:
 On Fri, Apr 20, 2007 at 12:08:57PM -0700, Kevin Oberman wrote:

 Date: Fri, 20 Apr 2007 22:54:52 +0400
 From: Alexey Karagodov [EMAIL PROTECTED]
 Sender: [EMAIL PROTECTED]

 and what is this, i mean why:
 WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
 WARNING: MPSAFE network stack disabled, expect reduced performance.

 I thought it was pretty clear.

 ipsec is not multi-processor safe and requires the use of GIANT. If you
 have IPSEC in your kernel the network stack will also be giant locked
 which will cut performance.


 Yep, google for extensive discussion (hint: FAST_IPSEC)


No visible changes in behaviour with FAST_IPSEC

Fast IPsec: Initialized Security Association Processing.

mptable still shows ONE CPU

Alex.




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


Re: 6.2-RELEASE does not use second CPU?

2007-04-25 Thread Alex Povolotsky

Alexey Karagodov wrote:

please, dmesg, mptable -verbose, mptable -grope

2007/4/25, Alex Povolotsky [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]:


Kris Kennaway wrote:
 On Fri, Apr 20, 2007 at 12:08:57PM -0700, Kevin Oberman wrote:

 Date: Fri, 20 Apr 2007 22:54:52 +0400
 From: Alexey Karagodov [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
 Sender: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]

 and what is this, i mean why:
 WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
 WARNING: MPSAFE network stack disabled, expect reduced
performance.

 I thought it was pretty clear.

 ipsec is not multi-processor safe and requires the use of
GIANT. If you
 have IPSEC in your kernel the network stack will also be giant
locked
 which will cut performance.


 Yep, google for extensive discussion (hint: FAST_IPSEC)


No visible changes in behaviour with FAST_IPSEC

Fast IPsec: Initialized Security Association Processing.

mptable still shows ONE CPU

Alex.





Full dmesg:

Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
   The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-RELEASE-p3 #5: Wed Apr 25 13:37:13 MSD 2007
   [EMAIL PROTECTED]:/usr/obj/usr/src/sys/P4D
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) D CPU 2.80GHz (2808.41-MHz 686-class CPU)
 Origin = GenuineIntel  Id = 0xf64  Stepping = 4
 
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=0xe49dSSE3,RSVD2,MON,DS_CPL,EST,CNTX-ID,CX16,b14,b15
 AMD Features=0x2010NX,LM
 AMD Features2=0x1LAHF
 Logical CPUs per core: 2
real memory  = 1046757376 (998 MB)
avail memory = 1015087104 (968 MB)
ACPI APIC Table: INTEL  DG965SS 
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID:  0
cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 2
ioapic0 Version 2.0 irqs 0-23 on motherboard
ichwd module loaded
kbd1 at kbdmux0
acpi0: INTEL DG965SS on motherboard
acpi0: Power Button (fixed)
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x408-0x40b on acpi0
cpu0: ACPI CPU on acpi0
acpi_perf0: ACPI CPU Frequency Control on cpu0
acpi_perf0: failed in PERF_STATUS attach
device_attach: acpi_perf0 attach returned 6
acpi_perf0: ACPI CPU Frequency Control on cpu0
acpi_perf0: failed in PERF_STATUS attach
device_attach: acpi_perf0 attach returned 6
acpi_throttle0: ACPI CPU Throttling on cpu0
cpu1: ACPI CPU on acpi0
acpi_perf1: ACPI CPU Frequency Control on cpu1
acpi_perf1: failed in PERF_STATUS attach
device_attach: acpi_perf1 attach returned 6
acpi_perf1: ACPI CPU Frequency Control on cpu1
acpi_perf1: failed in PERF_STATUS attach
device_attach: acpi_perf1 attach returned 6
acpi_throttle1: ACPI CPU Throttling on cpu1
acpi_throttle1: failed to attach P_CNT
device_attach: acpi_throttle1 attach returned 6
acpi_button0: Sleep Button on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pci0: display, VGA at device 2.0 (no driver attached)
pci0: simple comms at device 3.0 (no driver attached)
em0: Intel(R) PRO/1000 Network Connection Version - 6.2.9 port 
0x30e0-0x30ff mem 0x5030-0x5031,0x50324000-0x50324fff irq 20 at 
device 25.0 on pci0

em0: Ethernet address: 00:19:d1:03:10:d9
pci0: serial bus, USB at device 26.0 (no driver attached)
pci0: serial bus, USB at device 26.1 (no driver attached)
pci0: serial bus, USB at device 26.7 (no driver attached)
pci0: multimedia at device 27.0 (no driver attached)
pcib1: ACPI PCI-PCI bridge at device 28.0 on pci0
pci1: ACPI PCI bus on pcib1
pcib2: ACPI PCI-PCI bridge at device 28.1 on pci0
pci2: ACPI PCI bus on pcib2
atapci0: GENERIC ATA controller port 
0x2018-0x201f,0x2024-0x2027,0x2010-0x2017,0x2020-0x2023,0x2000-0x200f 
mem 0x5010-0x501001ff irq 17 at device 0.0 on pci2

ata2: ATA channel 0 on atapci0
ata3: ATA channel 1 on atapci0
pcib3: ACPI PCI-PCI bridge at device 28.2 on pci0
pci3: ACPI PCI bus on pcib3
pcib4: ACPI PCI-PCI bridge at device 28.3 on pci0
pci4: ACPI PCI bus on pcib4
pcib5: ACPI PCI-PCI bridge at device 28.4 on pci0
pci5: ACPI PCI bus on pcib5
pci0: serial bus, USB at device 29.0 (no driver attached)
pci0: serial bus, USB at device 29.1 (no driver attached)
pci0: serial bus, USB at device 29.2 (no driver attached)
pci0: serial bus, USB at device 29.7 (no driver attached)
pcib6: ACPI PCI-PCI bridge at device 30.0 on pci0
pci6: ACPI PCI bus on pcib6
atapci1: SiI 3114 SATA150 controller port 
0x1018-0x101f,0x1024-0x1027,0x1010-0x1017,0x1020-0x1023,0x1000-0x100f 
mem 0x50004800-0x50004bff irq 22 at device 1.0 on pci6

ata4: ATA channel 0 on atapci1
ata5: ATA channel 1 on atapci1
ata6: ATA channel 2 on atapci1

Re: 6.2-RELEASE does not use second CPU on pentium D

2007-04-25 Thread Oliver Fromme
Alex Povolotsky wrote:
  I have a Pentium D box, running 6.2-RELEASE. In dmesg, I see CPU#1 
  launched, but I never see any process running on it, and mptable shows

Hyperthreading is disabled by default in FreeBSD (for
security reasons).  You can enable it via sysctl if
you want (machdep.hyperthreading_allowed=1).

However, note that it might not make your machine any
faster (in fact, a UP kernel might be faster; it depends
on the kind of programs that you're running).  Also
not that there is a potential security issue with hyper-
threading (information leak).

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

When your hammer is C++, everything begins to look like a thumb.
-- Steve Haflich, in comp.lang.c++
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 6.2-RELEASE does not use second CPU on pentium D

2007-04-25 Thread John Baldwin
On Wednesday 25 April 2007 04:47:48 am Alex Povolotsky wrote:
 Hello!
 
 I have a Pentium D box, running 6.2-RELEASE. In dmesg, I see CPU#1 
 launched, but I never see any process running on it, and mptable shows
 
 cluster-one# mptable -verbose
 
 
===
 
 MPTable
 
  looking for EBDA pointer @ 0x040e, found, searching EBDA @ 0x0009e800
  searching CMOS 'top of mem' @ 0x0009e400 (633K)
  searching default 'top of mem' @ 0x0009fc00 (639K)
  searching BIOS @ 0x000f
 
  MP FPS found in BIOS @ physical addr: 0x000fe200
 
 ---
 
 MP Floating Pointer Structure:
 
   location: BIOS
   physical address: 0x000fe200
   signature:'_MP_'
   length:   16 bytes
   version:  1.4
   checksum: 0x9f
   mode: Virtual Wire
 
 ---
 
 MP Config Table Header:
 
   physical address: 0x000fe210
   signature:'PCMP'
   base table length:64
   version:  1.4
   checksum: 0x7f
   OEM ID:   ''
   Product ID:   ''
   OEM table pointer:0x
   OEM table size:   0
   entry count:  1
   local APIC address:   0xfee0
   extended table length:0
   extended table checksum:  0
 
 ---
 
 MP Config Base Table Entries:
 
 --
 Processors: APIC ID Version State   Family  Model   Step
 Flags
  0   0x14BSP, usable 15  6   4   
 0xbfebfbff
 
 
===
 
 while in dmesg
 
 Copyright (c) 1992-2007 The FreeBSD Project.
 Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
 The Regents of the University of California. All rights reserved.
 FreeBSD is a registered trademark of The FreeBSD Foundation.
 FreeBSD 6.2-RELEASE-p3 #2: Thu Apr 19 00:19:54 MSD 2007
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/P4D
 WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
 WARNING: MPSAFE network stack disabled, expect reduced performance.
 Timecounter i8254 frequency 1193182 Hz quality 0
 CPU: Intel(R) Pentium(R) D CPU 2.80GHz (2808.41-MHz 686-class CPU)
   Origin = GenuineIntel  Id = 0xf64  Stepping = 4
   
 
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=0xe49dSSE3,RSVD2,MON,DS_CPL,EST,CNTX-ID,CX16,b14,b15
   AMD Features=0x2010NX,LM
   AMD Features2=0x1LAHF
 real memory  = 1046757376 (998 MB)
 avail memory = 1015095296 (968 MB)
 ACPI APIC Table: INTEL  DG965SS 
 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1
 ioapic0: Changing APIC ID to 2
 ioapic0 Version 2.0 irqs 0-23 on motherboard
 
 [...]
 SMP: AP CPU #1 Launched!
 
 The kernel is, of course, SMP.
 
 What can I do, where can I search for solution?
 
 Second core IS enabled in BIOS
 cluster-one# sysctl hw | grep cpu
 hw.ncpu: 2
 hw.acpi.cpu.cx_supported: C1/0
 hw.acpi.cpu.cx_lowest: C1
 hw.acpi.cpu.cx_usage: 100.00%
 cluster-one# sysctl machdep | grep cpu
 machdep.cpu_idle_hlt: 1
 machdep.hlt_cpus: 2
 machdep.hlt_logical_cpus: 0
 machdep.logical_cpus_mask: 2
 
 so second CPU is halted, attempt to start it with sysctl does not help
 Alex.

It's seeing it as an HTT thread.  Try 
changing 'machdep.hyperthreading_allowed'.

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


Re: 6.2-RELEASE does not use second CPU on pentium D

2007-04-25 Thread Artem Kuchin

John Baldwin wrote:

On Wednesday 25 April 2007 04:47:48 am Alex Povolotsky wrote:

Hello!

I have a Pentium D box, running 6.2-RELEASE. In dmesg, I see CPU#1
launched, but I never see any process running on it, and mptable
shows 


Hmm. I am running PentiumD 3.0 Ghz on Asus p5p800-vm
motherboard. Needed to update BIOS to make CPU
work correctly. Also, i am not running RELEASE.
I run 6.2-STABLE cvsupped regulary. I have no problem
like that, top shows 0 and 1 in C column for
different processes.

So,I'd simply recomment to cvs and rebuild the kernel
and update your MB BIOS to the latest.

--
Regards,
Artem


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


Re: 6.2-RELEASE does not use second CPU on pentium D

2007-04-25 Thread Alex Povolotsky

John Baldwin wrote:

On Wednesday 25 April 2007 04:47:48 am Alex Povolotsky wrote:
  

Hello!

I have a Pentium D box, running 6.2-RELEASE. In dmesg, I see CPU#1 
launched, but I never see any process running on it, and mptable shows


cluster-one# mptable -verbose




===
  

MPTable

 looking for EBDA pointer @ 0x040e, found, searching EBDA @ 0x0009e800
 searching CMOS 'top of mem' @ 0x0009e400 (633K)
 searching default 'top of mem' @ 0x0009fc00 (639K)
 searching BIOS @ 0x000f

 MP FPS found in BIOS @ physical addr: 0x000fe200

---

MP Floating Pointer Structure:

  location: BIOS
  physical address: 0x000fe200
  signature:'_MP_'
  length:   16 bytes
  version:  1.4
  checksum: 0x9f
  mode: Virtual Wire

---

MP Config Table Header:

  physical address: 0x000fe210
  signature:'PCMP'
  base table length:64
  version:  1.4
  checksum: 0x7f
  OEM ID:   ''
  Product ID:   ''
  OEM table pointer:0x
  OEM table size:   0
  entry count:  1
  local APIC address:   0xfee0
  extended table length:0
  extended table checksum:  0

---

MP Config Base Table Entries:

--
Processors: APIC ID Version State   Family  Model   Step
Flags
 0   0x14BSP, usable 15  6   4   
0xbfebfbff





===
  

while in dmesg

Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-RELEASE-p3 #2: Thu Apr 19 00:19:54 MSD 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/P4D
WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
WARNING: MPSAFE network stack disabled, expect reduced performance.
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) D CPU 2.80GHz (2808.41-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf64  Stepping = 4
  



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=0xe49dSSE3,RSVD2,MON,DS_CPL,EST,CNTX-ID,CX16,b14,b15
  AMD Features=0x2010NX,LM
  AMD Features2=0x1LAHF
real memory  = 1046757376 (998 MB)
avail memory = 1015095296 (968 MB)
ACPI APIC Table: INTEL  DG965SS 
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 2
ioapic0 Version 2.0 irqs 0-23 on motherboard

[...]
SMP: AP CPU #1 Launched!

The kernel is, of course, SMP.

What can I do, where can I search for solution?

Second core IS enabled in BIOS
cluster-one# sysctl hw | grep cpu
hw.ncpu: 2
hw.acpi.cpu.cx_supported: C1/0
hw.acpi.cpu.cx_lowest: C1
hw.acpi.cpu.cx_usage: 100.00%
cluster-one# sysctl machdep | grep cpu
machdep.cpu_idle_hlt: 1
machdep.hlt_cpus: 2
machdep.hlt_logical_cpus: 0
machdep.logical_cpus_mask: 2

so second CPU is halted, attempt to start it with sysctl does not help
Alex.



It's seeing it as an HTT thread.  Try 
changing 'machdep.hyperthreading_allowed'.


  


Well, it is a Pentium D. It is supposed to have two cores, not just 
hyperthreading! How can it be at all?


Alex.


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


Re: 6.2-RELEASE does not use second CPU on pentium D

2007-04-25 Thread John Baldwin
On Wednesday 25 April 2007 03:20:05 pm Alex Povolotsky wrote:
 John Baldwin wrote:
  On Wednesday 25 April 2007 04:47:48 am Alex Povolotsky wrote:

  Hello!
 
  I have a Pentium D box, running 6.2-RELEASE. In dmesg, I see CPU#1 
  launched, but I never see any process running on it, and mptable shows
 
  cluster-one# mptable -verbose
 
 
  
  
===

  MPTable
 
   looking for EBDA pointer @ 0x040e, found, searching EBDA @ 0x0009e800
   searching CMOS 'top of mem' @ 0x0009e400 (633K)
   searching default 'top of mem' @ 0x0009fc00 (639K)
   searching BIOS @ 0x000f
 
   MP FPS found in BIOS @ physical addr: 0x000fe200
 
 
 ---
 
  MP Floating Pointer Structure:
 
location: BIOS
physical address: 0x000fe200
signature:'_MP_'
length:   16 bytes
version:  1.4
checksum: 0x9f
mode: Virtual Wire
 
 
 ---
 
  MP Config Table Header:
 
physical address: 0x000fe210
signature:'PCMP'
base table length:64
version:  1.4
checksum: 0x7f
OEM ID:   ''
Product ID:   ''
OEM table pointer:0x
OEM table size:   0
entry count:  1
local APIC address:   0xfee0
extended table length:0
extended table checksum:  0
 
 
 ---
 
  MP Config Base Table Entries:
 
  --
  Processors: APIC ID Version State   Family  Model   Step
  Flags
   0   0x14BSP, usable 15  6   4   
  0xbfebfbff
 
 
  
  
===

  while in dmesg
 
  Copyright (c) 1992-2007 The FreeBSD Project.
  Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
  The Regents of the University of California. All rights reserved.
  FreeBSD is a registered trademark of The FreeBSD Foundation.
  FreeBSD 6.2-RELEASE-p3 #2: Thu Apr 19 00:19:54 MSD 2007
  [EMAIL PROTECTED]:/usr/obj/usr/src/sys/P4D
  WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
  WARNING: MPSAFE network stack disabled, expect reduced performance.
  Timecounter i8254 frequency 1193182 Hz quality 0
  CPU: Intel(R) Pentium(R) D CPU 2.80GHz (2808.41-MHz 686-class CPU)
Origin = GenuineIntel  Id = 0xf64  Stepping = 4

 
  
  
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=0xe49dSSE3,RSVD2,MON,DS_CPL,EST,CNTX-ID,CX16,b14,b15
AMD Features=0x2010NX,LM
AMD Features2=0x1LAHF
  real memory  = 1046757376 (998 MB)
  avail memory = 1015095296 (968 MB)
  ACPI APIC Table: INTEL  DG965SS 
  FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
   cpu0 (BSP): APIC ID:  0
   cpu1 (AP): APIC ID:  1
  ioapic0: Changing APIC ID to 2
  ioapic0 Version 2.0 irqs 0-23 on motherboard
 
  [...]
  SMP: AP CPU #1 Launched!
 
  The kernel is, of course, SMP.
 
  What can I do, where can I search for solution?
 
  Second core IS enabled in BIOS
  cluster-one# sysctl hw | grep cpu
  hw.ncpu: 2
  hw.acpi.cpu.cx_supported: C1/0
  hw.acpi.cpu.cx_lowest: C1
  hw.acpi.cpu.cx_usage: 100.00%
  cluster-one# sysctl machdep | grep cpu
  machdep.cpu_idle_hlt: 1
  machdep.hlt_cpus: 2
  machdep.hlt_logical_cpus: 0
  machdep.logical_cpus_mask: 2
 
  so second CPU is halted, attempt to start it with sysctl does not help
  Alex.
  
 
  It's seeing it as an HTT thread.  Try 
  changing 'machdep.hyperthreading_allowed'.
 

 
 Well, it is a Pentium D. It is supposed to have two cores, not just 
 hyperthreading! How can it be at all?

Because multicores actually show up as HTT and you have to do extra work to 
figure out if they are really cores or threads, and apparently 6.2 gets it 
wrong on your machine.

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


Re: 6.2-RELEASE does not use second CPU?

2007-04-21 Thread Alexey Karagodov

+1

i'm using IPSec with out such limitations ...
fix it. than we will continue conversation about your CPU troubles


2007/4/20, Kris Kennaway [EMAIL PROTECTED]: - Скрыть цитируемый текст -


On Fri, Apr 20, 2007 at 12:08:57PM -0700, Kevin Oberman wrote:
  Date: Fri, 20 Apr 2007 22:54:52 +0400
  From: Alexey Karagodov [EMAIL PROTECTED]
  Sender: [EMAIL PROTECTED]
 
  and what is this, i mean why:
  WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
  WARNING: MPSAFE network stack disabled, expect reduced performance.

 I thought it was pretty clear.

 ipsec is not multi-processor safe and requires the use of GIANT. If you
 have IPSEC in your kernel the network stack will also be giant locked
 which will cut performance.

Yep, google for extensive discussion (hint: FAST_IPSEC)

Kris




2007/4/19, Alex Povolotsky [EMAIL PROTECTED]:


Hello!

On the Pentium-D box, kernel detects both CPUs, but it seems like
scheduler use only one.

(from dmesg)

Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
   The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-RELEASE-p3 #2: Thu Apr 19 00:19:54 MSD 2007
   [EMAIL PROTECTED]:/usr/obj/usr/src/sys/P4D
WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
WARNING: MPSAFE network stack disabled, expect reduced performance.
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) D CPU 2.80GHz (2808.41-MHz 686-class CPU)
Origin = GenuineIntel  Id = 0xf64  Stepping = 4


Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C
MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
Features2=0xe49dSSE3,RSVD2,MON,DS_CPL,EST,CNTX-ID,CX16,b14,b15
AMD Features=0x2010NX,LM
AMD Features2=0x1LAHF
Logical CPUs per core: 2
real memory  = 1046757376 (998 MB)
avail memory = 1015095296 (968 MB)
ACPI APIC Table: INTEL  DG965SS 
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID:  0
cpu1 (AP): APIC ID:  1



SMP: AP CPU #1 Launched!

(from top)

last pid: 12408;  load averages:  4.99,  4.91,  4.08up 0+01:08:02
19:26:23
265 processes: 8 running, 256 sleeping, 1 zombie
CPU states: 35.0% user,  0.0% nice, 14.1% system,  0.9% interrupt, 50.0%
idle
Mem: 267M Active, 503M Inact, 171M Wired, 29M Cache, 109M Buf, 1636K Free
Swap: 2006M Total, 2006M Free

PID USERNAME  THR PRI NICE   SIZERES STATE  C   TIME   WCPU COMMAND
1399125  1 1090  4684K  2808K RUN0  11:20 18.85% qmgr
1819300  1   40 33552K 30824K select 0   8:58 13.57% perl5.8.8
1821300  1   40 33364K 30644K select 0   9:15  6.05% perl5.8.8
12398125  1   40  3588K  2524K select 0   0:00  2.00% cleanup
1394 root1 1040  3444K  1596K RUN0   1:58  1.66% master
10601125  1  970  3580K  1728K select 0   0:18  0.83%
trivial-rewri
10051125  1  970  4536K  2688K RUN0   0:13  0.63% scache


All processes runs on CPU0, and I did not see less than 50% idle cpu.

What can be wrong?

Alex.


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

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

Re: 6.2-RELEASE does not use second CPU?

2007-04-20 Thread Alexey Karagodov

kernel config please and /etc/sysctl.conf


2007/4/19, Alex Povolotsky [EMAIL PROTECTED]:


Hello!

On the Pentium-D box, kernel detects both CPUs, but it seems like
scheduler use only one.

(from dmesg)

Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
   The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-RELEASE-p3 #2: Thu Apr 19 00:19:54 MSD 2007
   [EMAIL PROTECTED]:/usr/obj/usr/src/sys/P4D
WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
WARNING: MPSAFE network stack disabled, expect reduced performance.
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) D CPU 2.80GHz (2808.41-MHz 686-class CPU)
Origin = GenuineIntel  Id = 0xf64  Stepping = 4


Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C
MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
Features2=0xe49dSSE3,RSVD2,MON,DS_CPL,EST,CNTX-ID,CX16,b14,b15
AMD Features=0x2010NX,LM
AMD Features2=0x1LAHF
Logical CPUs per core: 2
real memory  = 1046757376 (998 MB)
avail memory = 1015095296 (968 MB)
ACPI APIC Table: INTEL  DG965SS 
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID:  0
cpu1 (AP): APIC ID:  1



SMP: AP CPU #1 Launched!

(from top)

last pid: 12408;  load averages:  4.99,  4.91,  4.08up 0+01:08:02
19:26:23
265 processes: 8 running, 256 sleeping, 1 zombie
CPU states: 35.0% user,  0.0% nice, 14.1% system,  0.9% interrupt, 50.0%
idle
Mem: 267M Active, 503M Inact, 171M Wired, 29M Cache, 109M Buf, 1636K Free
Swap: 2006M Total, 2006M Free

PID USERNAME  THR PRI NICE   SIZERES STATE  C   TIME   WCPU COMMAND
1399125  1 1090  4684K  2808K RUN0  11:20 18.85% qmgr
1819300  1   40 33552K 30824K select 0   8:58 13.57% perl5.8.8
1821300  1   40 33364K 30644K select 0   9:15  6.05% perl5.8.8
12398125  1   40  3588K  2524K select 0   0:00  2.00% cleanup
1394 root1 1040  3444K  1596K RUN0   1:58  1.66% master
10601125  1  970  3580K  1728K select 0   0:18  0.83%
trivial-rewri
10051125  1  970  4536K  2688K RUN0   0:13  0.63% scache


All processes runs on CPU0, and I did not see less than 50% idle cpu.

What can be wrong?

Alex.


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


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


Re: 6.2-RELEASE does not use second CPU?

2007-04-20 Thread Alexey Karagodov

and what is this, i mean why:
WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
WARNING: MPSAFE network stack disabled, expect reduced performance.


2007/4/19, Alex Povolotsky [EMAIL PROTECTED]:


Hello!

On the Pentium-D box, kernel detects both CPUs, but it seems like
scheduler use only one.

(from dmesg)

Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
   The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-RELEASE-p3 #2: Thu Apr 19 00:19:54 MSD 2007
   [EMAIL PROTECTED]:/usr/obj/usr/src/sys/P4D
WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
WARNING: MPSAFE network stack disabled, expect reduced performance.
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) D CPU 2.80GHz (2808.41-MHz 686-class CPU)
Origin = GenuineIntel  Id = 0xf64  Stepping = 4


Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C
MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
Features2=0xe49dSSE3,RSVD2,MON,DS_CPL,EST,CNTX-ID,CX16,b14,b15
AMD Features=0x2010NX,LM
AMD Features2=0x1LAHF
Logical CPUs per core: 2
real memory  = 1046757376 (998 MB)
avail memory = 1015095296 (968 MB)
ACPI APIC Table: INTEL  DG965SS 
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID:  0
cpu1 (AP): APIC ID:  1



SMP: AP CPU #1 Launched!

(from top)

last pid: 12408;  load averages:  4.99,  4.91,  4.08up 0+01:08:02
19:26:23
265 processes: 8 running, 256 sleeping, 1 zombie
CPU states: 35.0% user,  0.0% nice, 14.1% system,  0.9% interrupt, 50.0%
idle
Mem: 267M Active, 503M Inact, 171M Wired, 29M Cache, 109M Buf, 1636K Free
Swap: 2006M Total, 2006M Free

PID USERNAME  THR PRI NICE   SIZERES STATE  C   TIME   WCPU COMMAND
1399125  1 1090  4684K  2808K RUN0  11:20 18.85% qmgr
1819300  1   40 33552K 30824K select 0   8:58 13.57% perl5.8.8
1821300  1   40 33364K 30644K select 0   9:15  6.05% perl5.8.8
12398125  1   40  3588K  2524K select 0   0:00  2.00% cleanup
1394 root1 1040  3444K  1596K RUN0   1:58  1.66% master
10601125  1  970  3580K  1728K select 0   0:18  0.83%
trivial-rewri
10051125  1  970  4536K  2688K RUN0   0:13  0.63% scache


All processes runs on CPU0, and I did not see less than 50% idle cpu.

What can be wrong?

Alex.


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


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


Re: 6.2-RELEASE does not use second CPU?

2007-04-20 Thread Kevin Oberman
 Date: Fri, 20 Apr 2007 22:54:52 +0400
 From: Alexey Karagodov [EMAIL PROTECTED]
 Sender: [EMAIL PROTECTED]
 
 and what is this, i mean why:
 WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
 WARNING: MPSAFE network stack disabled, expect reduced performance.

I thought it was pretty clear. 

ipsec is not multi-processor safe and requires the use of GIANT. If you
have IPSEC in your kernel the network stack will also be giant locked
which will cut performance.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]   Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751


pgp2WZGCeoOcS.pgp
Description: PGP signature


Re: 6.2-RELEASE does not use second CPU?

2007-04-20 Thread Kris Kennaway
On Fri, Apr 20, 2007 at 12:08:57PM -0700, Kevin Oberman wrote:
  Date: Fri, 20 Apr 2007 22:54:52 +0400
  From: Alexey Karagodov [EMAIL PROTECTED]
  Sender: [EMAIL PROTECTED]
  
  and what is this, i mean why:
  WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
  WARNING: MPSAFE network stack disabled, expect reduced performance.
 
 I thought it was pretty clear. 
 
 ipsec is not multi-processor safe and requires the use of GIANT. If you
 have IPSEC in your kernel the network stack will also be giant locked
 which will cut performance.

Yep, google for extensive discussion (hint: FAST_IPSEC)

Kris

 -- 
 R. Kevin Oberman, Network Engineer
 Energy Sciences Network (ESnet)
 Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
 E-mail: [EMAIL PROTECTED] Phone: +1 510 486-8634
 Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751


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


Re: 6.2-RELEASE does not use second CPU?

2007-04-19 Thread Stefan Lambrev

Hi,


Alex Povolotsky wrote:

Hello!

On the Pentium-D box, kernel detects both CPUs, but it seems like 
scheduler use only one.


(from dmesg)

Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
   The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-RELEASE-p3 #2: Thu Apr 19 00:19:54 MSD 2007
   [EMAIL PROTECTED]:/usr/obj/usr/src/sys/P4D
WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
WARNING: MPSAFE network stack disabled, expect reduced performance.
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) D CPU 2.80GHz (2808.41-MHz 686-class CPU)
 Origin = GenuineIntel  Id = 0xf64  Stepping = 4
 
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C 


MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
 Features2=0xe49dSSE3,RSVD2,MON,DS_CPL,EST,CNTX-ID,CX16,b14,b15
 AMD Features=0x2010NX,LM
 AMD Features2=0x1LAHF
 Logical CPUs per core: 2
real memory  = 1046757376 (998 MB)
avail memory = 1015095296 (968 MB)
ACPI APIC Table: INTEL  DG965SS 
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID:  0
cpu1 (AP): APIC ID:  1


Are you sure it is second CPU ? :)
May be it is single processor with HT?



SMP: AP CPU #1 Launched!

(from top)

last pid: 12408;  load averages:  4.99,  4.91,  4.08up 0+01:08:02  
19:26:23

265 processes: 8 running, 256 sleeping, 1 zombie
CPU states: 35.0% user,  0.0% nice, 14.1% system,  0.9% interrupt, 
50.0% idle

Mem: 267M Active, 503M Inact, 171M Wired, 29M Cache, 109M Buf, 1636K Free
Swap: 2006M Total, 2006M Free

 PID USERNAME  THR PRI NICE   SIZERES STATE  C   TIME   WCPU COMMAND
1399125  1 1090  4684K  2808K RUN0  11:20 18.85% qmgr
1819300  1   40 33552K 30824K select 0   8:58 13.57% 
perl5.8.8
1821300  1   40 33364K 30644K select 0   9:15  6.05% 
perl5.8.8

12398125  1   40  3588K  2524K select 0   0:00  2.00% cleanup
1394 root1 1040  3444K  1596K RUN0   1:58  1.66% master
10601125  1  970  3580K  1728K select 0   0:18  0.83% 
trivial-rewri

10051125  1  970  4536K  2688K RUN0   0:13  0.63% scache


All processes runs on CPU0, and I did not see less than 50% idle cpu.

What can be wrong?

Alex.


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


--
Best Wishes,
Stefan Lambrev
ICQ# 24134177

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