SMP vs UP on single P4 CPU systems with hyperthreading

From: Zoltan Frombach (tssajo_at_hotmail.com)
Date: 11/07/04

  • Next message: Zoltan Frombach: "minor migration guide issue"
    To: <freebsd-current@freebsd.org>
    Date: Sat, 6 Nov 2004 18:48:33 -0800
    
    

    I just upgraded my system from a Pentium III to a Pentium 4 with
    hyperthreading. This is not a multiprocessor system, as I only have one CPU.
    I disabled hyperthreading in the BIOS (it is an AWARD BIOS). Then I
    installed FreeBSD 5.3-RELEASE. The first thing I've noticed in dmesg are the
    following lines:

    CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (2806.38-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

    So even though I specifically disabled hyperthreading in the BIOS, FreeBSD
    5.3 still detects 2 logical CPUs. Is this by design? I guess, it is. So
    therefore my question is this: Should I compile an SMP kernel or a UP
    kernel? To make my decision more difficult, Scott Long posted recently in a
    message the following: "We turned off SMP on i386 and amd64 because it is a
    serious performance penalty for UP machines."

    Should I look at my single CPU system as a UP machine, as it physically is a
    uni processor machine. Or should I enable SMP in the kernel to take
    advantage of the "2 logical SPUs" FreeBSD detects - even when I try to
    disable this feature of the CPU in the BIOS... What is the official word in
    this scenario? I'd really appreciate your advice.

    Zoltan
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: Zoltan Frombach: "minor migration guide issue"

    Relevant Pages

    • Re: Hyperthreading??
      ... This should be able to be disabled in BIOS. ... > There are four CPU listed in Task Manager so it appears ... > that it IS hyperthreading, ... >>www.ilopia.com - FAQ and Tutorials for Windows Server ...
      (microsoft.public.windows.server.general)
    • Re: dual core processor
      ... >> showing CPU 0: and none other. ... > check One CPU per graph. ... Is there a switch in the BIOS to enable both cores? ... > Hyperthreading off on my clients SolidWorks PC after all. ...
      (comp.cad.solidworks)
    • Cannot get Hyperthreading working on Asus P4PE-X
      ... Everything I can find suggests that it should support hyperthreading but ... According to the intel site the specific model of CPU and the chipset ... Intel machine check architecture supported. ...
      (Linux-Kernel)
    • Re: OT: CPU compatilbilty ...
      ... it, and I just robbed it of its' Pentium D 935 cpu,! ... of the 800fsb cpu's, (not on the Asrock list), simply not be recognised ... Asrock has stopped putting the effort into shipping new BIOS files. ...
      (microsoft.public.windowsxp.hardware)
    • Re: Problems about MS DV Encoder/Decoder
      ... > The CPU of my computer is P4 3.0 HyperThread. ... A process using 100% of the capacity of a single execution unit will be ... Using both virtual execution units on a Hyperthreading CPU may or may not ... they need to be written carefully so as to avoid cache ...
      (microsoft.public.win32.programmer.directx.video)