Re: OpenBSD 3.6, Intel 3.0 HT processor!!

2005-05-13 Thread Matt Provost
On May 13 05:09 PM, Dries Schellekens wrote:
 Ted Unangst wrote:
 On Thu, 12 May 2005, Henning Brauer wrote:
 
 
 * J.D. Bronson [EMAIL PROTECTED] [2005-05-12 16:23]:
 
 No matter what I set the BIOS to - I cannot get SMP/HTT to work in 
 OpenBSD, but it does work with others
 
 OpenBSD will only use HT on systems with an MPBIOS, which almost no 
 uniprocessor board has.
 
 not that this is a loss...
 
 
 it's a security feature. :)
 
 Indeed: http://www.daemonology.net/hyperthreading-considered-harmful/
 
 
 Cheers,
 
 Dries

Was this the big security vulnerability that the FreeBSD guys were
hiding back in March?

http://openbsd.monkey.org/misc/200503/msg00097.html

Matt



Re: OpenBSD 3.6, Intel 3.0 HT processor!!

2005-05-13 Thread Ted Unangst
that'd be the one.

-- 
so what do you want
you want to be famous and rich and happy
but you're terrified you have nothing to offer this world



Re: OpenBSD 3.6, Intel 3.0 HT processor!!

2005-05-12 Thread Rogier Krieger
On 5/12/05, Joco Salvatti [EMAIL PROTECTED] wrote:
 Hi all, I have a Server box running OpenBSD 3.6, Intel 3.0 HT
 processor, I've compiled a kernel with SMP support, but where can I
 verify if it's really using SMP?

You will want to try GENERIC.MP for an SMP-enabled kernel: it's named
/bsd.mp. Custom kernels are unsupported as they are not normally worth
the debugging time.

Furthermore, try the dmesg output and see what number of CPU's the
kernel detects. A command such as  dmesg | grep ^cpu should do what
you want.

That said, I never had my hands on HT-enabled chips, so I am not sure
the system uses this tweak (from what I understand of it).

Cheers,

Rogier

-- 
If you don't know where you're going, any road will get you there.



Re: OpenBSD 3.6, Intel 3.0 HT processor!!

2005-05-12 Thread Henning Brauer
* J.D. Bronson [EMAIL PROTECTED] [2005-05-12 16:23]:
 No matter what I set the BIOS to - I cannot get SMP/HTT to work in 
 OpenBSD, but it does work with others

OpenBSD will only use HT on systems with an MPBIOS, which almost no 
uniprocessor board has.

not that this is a loss...

-- 
BS Web Services, http://www.bsws.de/
OpenBSD-based Webhosting, Mail Services, Managed Servers, ...
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)



Re: OpenBSD 3.6, Intel 3.0 HT processor!!

2005-05-12 Thread Mike Sazhin
J.D. Bronson wrote:
At 09:04 AM 05/12/2005, JR Dalrymple wrote:
You can solve the problem by going into the bios setup and disabling HT.
Or you can suffer the performance loss. Your choice.
Joco Salvatti wrote:
Hi all, I have a Server box running OpenBSD 3.6, Intel 3.0 HT
processor, I've compiled a kernel with SMP support, but where can I
verify if it's really using SMP? Under GNU/Linux distros i run cat
/proc/cpuinfo and it shows me two processors. Under OpenBSD I've
mounted the kernel filesystem and I toke a look at ncpu but it still
saying that there is only one processor. Can anyone tell me what's
going wrong? And how can I solve it?
For now, thanks.

Is there absolutely no benefit to HTT at all?
Systems we run HTT with (Unix) seem to perform slightly better and 
building world has been noticeably faster.

No matter what I set the BIOS to - I cannot get SMP/HTT to work in 
OpenBSD, but it does work with others




I have the same exact proc, P4 3gghz HT. I never got it to work with HT
so I leave it disabled and run it as though no HT. Here is my dmesg when
I enable HT and run Generic.MP:
OpenBSD 3.7 (GENERIC.MP) #50: Sun Mar 20 00:17:19 MST 2005
  [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Pentium(R) 4 CPU 3.00GHz (GenuineIntel 686-class) 3 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SSE,S 

SE2,SS,HTT,TM,SBF,CNXT-ID
real mem  = 1609281536 (1571564K)
avail mem = 1461149696 (1426904K)
using 4278 buffers containing 80568320 bytes (78680K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 01/22/04, BIOS32 rev. 0 @ 0xf0010
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf3d30/224 (12 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82801EB/ER LPC rev 
0x00)
pcibios0: PCI bus #2 is the last bus
WARNING: can't reserve area for BIOS PROM.
bios0: ROM list: 0xc/0xf400 0xcf800/0x4600
mainbus0: Intel MP Specification (Version 1.4) ( Springdale-G)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 199 MHz
mainbus0: bus 0 is type PCI
mainbus0: bus 1 is type PCI
mainbus0: bus 2 is type PCI
mainbus0: bus 3 is type ISA
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82865G/PE/P CPU-I/0-1 rev 0x02
ppb0 at pci0 dev 1 function 0 Intel 82865G/PE/P CPU-AGP rev 0x02
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 Nvidia GeForce FX 5200 rev 0xa1
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 29 function 0 Intel 82801EB/ER USB rev 0x02: apic 2 
int 16 (irq 11)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 Intel 82801EB/ER USB rev 0x02: apic 2 
int 19 (irq 5)
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 Intel 82801EB/ER USB rev 0x02: apic 2 
int 18 (irq 10)
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3 Intel 82801EB/ER USB rev 0x02: apic 2 
int 16 (irq 11)
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 Intel 82801EB/ER USB rev 0x02: apic 2 
int 23 (irq 9)
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: single transaction translator
uhub4: 8 ports with 8 removable, self powered
ppb1 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0xc2
pci2 at ppb1 bus 2
bge0 at pci2 dev 0 function 0 Altima AC9100 rev 0x15, BCM5701 B5 
(0x0105): apic 2 int 21 (irq 9) addre
ss 00:09:5b:61:90:30
brgphy0 at bge0 phy 1: BCM5701 10/100/1000baseT PHY, rev. 0
pciide0 at pci2 dev 1 function 0 CMD Technology PCI0680 rev 0x02
pciide0: bus-master DMA support present
pciide0: channel 0 configured to native-PCI mode
pciide0: using apic 2 int 22 (irq 11) for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: Maxtor 6Y250P0
wd0: 16-sector PIO, LBA48, 239372MB, 490234752 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
pciide0: channel 1 configured to native-PCI mode
wd1 at pciide0 channel 1 drive 0: Maxtor 6Y250P0
wd1: 16-sector PIO, LBA48, 239372MB, 490234752 sectors
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
cmpci0 at pci2 dev 2 function 0 C-Media Electronics CMI8738/C3DX

Re: OpenBSD 3.6, Intel 3.0 HT processor!!

2005-05-12 Thread JR Dalrymple
You're multithreading for long periods of time, and your maximum cpu 
usage there is limeted largely by disk i/o. Not very often do you have 
more than one process going on limited by disk i/o and when it does 
happen it doesn't happen for long periods of time). The only time I 
could see HT being a great asset would be on a server seeing light use 
by multiple (tons of) connections. When only one process is asking for 
time it doesn't have the all of the cpu resources available to it with 
HT turned on.

My desktop machine is a dual 3.0 prestonia. It performs noticably 
faster for desktop applications with HT set to off.

J.D. Bronson wrote:
At 09:04 AM 05/12/2005, JR Dalrymple wrote:
You can solve the problem by going into the bios setup and disabling HT.
Or you can suffer the performance loss. Your choice.
Joco Salvatti wrote:
Hi all, I have a Server box running OpenBSD 3.6, Intel 3.0 HT
processor, I've compiled a kernel with SMP support, but where can I
verify if it's really using SMP? Under GNU/Linux distros i run cat
/proc/cpuinfo and it shows me two processors. Under OpenBSD I've
mounted the kernel filesystem and I toke a look at ncpu but it still
saying that there is only one processor. Can anyone tell me what's
going wrong? And how can I solve it?
For now, thanks.

Is there absolutely no benefit to HTT at all?
Systems we run HTT with (Unix) seem to perform slightly better and 
building world has been noticeably faster.

No matter what I set the BIOS to - I cannot get SMP/HTT to work in 
OpenBSD, but it does work with others



Re: OpenBSD 3.6, Intel 3.0 HT processor!!

2005-05-12 Thread Ted Unangst
On Thu, 12 May 2005, Henning Brauer wrote:

 * J.D. Bronson [EMAIL PROTECTED] [2005-05-12 16:23]:
  No matter what I set the BIOS to - I cannot get SMP/HTT to work in 
  OpenBSD, but it does work with others
 
 OpenBSD will only use HT on systems with an MPBIOS, which almost no 
 uniprocessor board has.
 
 not that this is a loss...

it's a security feature. :)

-- 
we don't run washington and no one really does