machdep.hlt_logical_cpus missing in 4.9-Release

Hall J D (ISeLS) jdhall at glam.ac.uk
Tue Jan 6 06:34:47 PST 2004


I've just installed 4.9-Release on a twin Xeon system and compiled a generic
SMP kernel (GENERIC with SMP and APIC_IO enabled).

The problem I'm having is the system is using the logical HyperThreading
CPUs even though I don't want it to.

The errata for 4.9-Release says that the logical CPUs are prevented from
executing user processes by default, they are not. It also says you can
control this behaviour by change the value of the machdep.hlt_logical_cpus
sysctl(8) variable. My sysctl doesn't seem to know about this variable.

I've checked the archives and someone else had this problem back in November
but I can't see any replys other than "machdep.hlt_logical_cpus should be
there".

Can anyone offer some advise please.

Thanks,

Jonathan

Output from uname -a

FreeBSD parker.isd.glam.ac.uk 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Tue Jan  6
10:56:52 GMT 2004 jdhall at parker.isd.glam.ac.uk:/usr/src/sys/compile/GENSMP
i386

Output from sysctl -A machdep

machdep.consdev: { major = 12, minor = 255 }
machdep.adjkerntz: 0
machdep.disable_rtc_set: 0
machdep.bootinfo: Format:S,bootinfo Length:84
Dump:0x01000000942404000000000000000000...
machdep.wall_cmos_clock: 0
machdep.cs_recv_delay: 570
machdep.wi_cache_mcastonly: 0
machdep.wi_cache_iponly: 1
machdep.do_dump: 1
machdep.pccard.mem_start: 851968
machdep.pccard.mem_end: 983039
machdep.enable_panic_key: 0
machdep.apm_suspend_delay: 1
machdep.apm_standby_delay: 1
machdep.ispc98: 0
machdep.msgbuf: 
machdep.msgbuf_clear: 0
machdep.cpu_idle_hlt: 1
machdep.guessed_bootdev: /dev/da0s1a
machdep.smp_active: 1
machdep.smp_cpus: 4
machdep.invltlb_ok: 1
machdep.do_page_zero_idle: 1
machdep.forward_irq_enabled: 1
machdep.forward_signal_enabled: 1
machdep.forward_roundrobin_enabled: 1
machdep.hlt_cpus: 0
machdep.panic_on_nmi: 1
machdep.i8254_freq: 1193182
machdep.conrclk: 1843200
machdep.conspeed: 9600

Output from dmesg

Copyright (c) 1992-2003 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 4.9-RELEASE #0: Tue Jan  6 10:56:52 GMT 2004
    jdhall at parker.isd.glam.ac.uk:/usr/src/sys/compile/GENSMP
Timecounter "i8254"  frequency 1193182 Hz
CPU: Intel(R) Xeon(TM) CPU 2.66GHz (2666.79-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9
 
Features=0xbfebfbff<FPU,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>
  Hyperthreading: 2 logical CPUs
real memory  = 2147418112 (2097088K bytes)
avail memory = 2086199296 (2037304K bytes)
Programming 16 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
Programming 16 pins in IOAPIC #1
Programming 16 pins in IOAPIC #2
Programming 16 pins in IOAPIC #3
FreeBSD/SMP: Multiprocessor motherboard: 4 CPUs
 cpu0 (BSP): apic id:  0, version: 0x00050014, at 0xfee00000
 cpu1 (AP):  apic id:  1, version: 0x00050014, at 0xfee00000
 cpu2 (AP):  apic id:  6, version: 0x00050014, at 0xfee00000
 cpu3 (AP):  apic id:  7, version: 0x00050014, at 0xfee00000
 io0 (APIC): apic id:  8, version: 0x000f0011, at 0xfec00000
 io1 (APIC): apic id:  9, version: 0x000f0011, at 0xfec01000
 io2 (APIC): apic id: 10, version: 0x000f0011, at 0xfec02000
 io3 (APIC): apic id: 11, version: 0x000f0011, at 0xfec03000
Preloaded elf kernel "kernel" at 0xc0550000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc055009c.
Warning: Pentium 4 CPU: PSE disabled
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 11 entries at 0xc00f4ab0
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <ServerWorks host to PCI bridge(unknown chipset)> on motherboard
IOAPIC #1 intpin 12 -> irq 2
IOAPIC #1 intpin 10 -> irq 5
IOAPIC #1 intpin 14 -> irq 9
IOAPIC #1 intpin 15 -> irq 10
IOAPIC #1 intpin 13 -> irq 11
IOAPIC #1 intpin 1 -> irq 16
pci0: <PCI bus> on pcib0
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.16> port
0xc800-0xc83f mem 0xfeb80000-0xfeb9ffff irq 2 at device 8.0 on pci0
em0:  Speed:N/A  Duplex:N/A
em1: <Intel(R) PRO/1000 Network Connection, Version - 1.7.16> port
0xd000-0xd03f mem 0xfeba0000-0xfebbffff irq 5 at device 9.0 on pci0
em1:  Speed:N/A  Duplex:N/A
ahd0: <Adaptec AIC7902 Ultra320 SCSI adapter> port
0xd400-0xd4ff,0xd800-0xd8ff mem 0xfebfa000-0xfebfbfff irq 9 at device 10.0
on pci0
aic7902: Ultra320 Wide Channel A, SCSI Id=7, PCI 33 or 66Mhz, 512 SCBs
ahd1: <Adaptec AIC7902 Ultra320 SCSI adapter> port
0xe000-0xe0ff,0xe400-0xe4ff mem 0xfebfc000-0xfebfdfff irq 10 at device 10.1
on pci0
aic7902: Ultra320 Wide Channel B, SCSI Id=7, PCI 33 or 66Mhz, 512 SCBs
pci0: <ATI Mach64-GR graphics accelerator> at 11.0 irq 11
atapci0: <Generic PCI ATA controller> port
0xffa0-0xffaf,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 at device 15.1
on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
ohci0: <OHCI (generic) USB controller> mem 0xfebfe000-0xfebfefff irq 16 at
device 15.2 on pci0
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
isab0: <PCI to ISA bridge (vendor=1166 device=0227)> at device 15.3 on pci0
isa0: <ISA bus> on isab0
pcib255: <ServerWorks host to PCI bridge(unknown chipset)> on motherboard
pci255: <PCI bus> on pcib255
pcib1: <Host to PCI bridge> on motherboard
pci1: <PCI bus> on pcib1
orm0: <Option ROM> at iomem 0xc0000-0xc7fff on isa0
pmtimer0 on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppi0: <Parallel I/O> on ppbus0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: Broken MP table detected: 8254 is not connected to IOAPIC #0 intpin
2
APIC_IO: routing 8254 via 8259 and IOAPIC #0 intpin 0
SMP: AP CPU #3 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #1 Launched!
acd0: CDROM <CD-232E> at ata0-master PIO4
Waiting 15 seconds for SCSI devices to settle
pass2 at ahd0 bus 0 target 6 lun 0
pass2: <SUPER GEM318 0> Fixed Processor SCSI-2 device 
pass2: 3.300MB/s transfers
da0 at ahd0 bus 0 target 0 lun 0
da0: <FUJITSU MAP3367NC 0108> Fixed Direct Access SCSI-3 device 
da0: 320.000MB/s transfers (160.000MHz, offset 127, 16bit), Tagged Queueing
Enabled
da0: 35046MB (71775284 512 byte sectors: 255H 63S/T 4467C)
da1 at ahd0 bus 0 target 1 lun 0
da1: <FUJITSU MAP3735NC 0108> Fixed Direct Access SCSI-3 device 
da1: 320.000MB/s transfers (160.000MHz, offset 127, 16bit), Tagged Queueing
Enabled
da1: 70103MB (143571316 512 byte sectors: 255H 63S/T 8936C)
Mounting root from ufs:/dev/da0s1a
em0: Link is up 100 Mbps Full Duplex


More information about the freebsd-questions mailing list