Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jan 2004 14:12:40 +0100
From:      Buki <dev@null.cz>
To:        stable@freebsd.org
Subject:   4.9 /usr/src/UPDATING error?
Message-ID:  <20040114131240.GA28095@dev.null.cz>

next in thread | raw e-mail | index | archive | help

--DocE+STaALJfprDB
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi,

I have FreeBSD 4.9-RELEASE-p1 #0: Tue Dec  9 16:46:46 CET 2003 and as I have
dual P4 @2.4GHz I was wondering about HyperThreading(tm). In UPDATING I rea=
d:

20031022:
        Support for HyperThread logical CPUs has now been enabled by
        default.  As a result, the HTT kernel option no longer exists.
        Instead, the logical CPUs are always started so that they can
        handle interrupts.  However, the extra logical CPUs are prevented
        from executing user processes by default.  To enable the logical
        CPUs, change the value of the machdep.hlt_logical_cpus from 1 to
        0.  This value can also be set from the loader as a tunable of
        the same name.

but it seems like there is no such sysctl oid:

#sysctl machdep. | grep cpu
machdep.cpu_idle_hlt: 1
machdep.smp_cpus: 4
machdep.hlt_cpus: 0

so I have no oid set in /etc/sysctl.conf or loader.conf

nevertheless, the system seems to work out of the box:

CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2393.19-MHz 686-class CPU)
  Origin =3D "GenuineIntel"  Id =3D 0xf25  Stepping =3D 5
  Features=3D0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PG=
E,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,
SSE,SSE2,SS,HTT,TM,PBE>
  Hyperthreading: 2 logical CPUs

=2E..

FreeBSD/SMP: Multiprocessor motherboard: 4 CPUs
 cpu0 (BSP): apic id:  0, version: 0x00050014, at 0xfee00000
 cpu1 (AP):  apic id:  6, version: 0x00050014, at 0xfee00000
 cpu2 (AP):  apic id:  1, version: 0x00050014, at 0xfee00000
 cpu3 (AP):  apic id:  7, version: 0x00050014, at 0xfee00000
 io0 (APIC): apic id:  4, version: 0x000f0011, at 0xfec00000
 io1 (APIC): apic id:  5, version: 0x000f0011, at 0xfec01000

=2E..

SMP: AP CPU #3 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #1 Launched!

and 'top' confirms that processes are running on CPU 0 through 3

shouldn't be UPDATING corrected?

Buki
--=20
PGP public key: http://dev.null.cz/buki.asc

                /"\
                \ /     ASCII Ribbon Campaign
                 X      Against HTML & Outlook Mail
                / \     http://www.thebackrow.net


--DocE+STaALJfprDB
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFABUBIPzhIkpLLm08RAl6IAJ9Acw70tXn9qx2FNUUAexIWyNuL4ACfTOQB
HTPaqQAjcCHlQ5mKki1icMk=
=BRZx
-----END PGP SIGNATURE-----

--DocE+STaALJfprDB--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040114131240.GA28095>