Hyperthreading und SMP-Kernel

From: Bjoern Engels <bj(at)0x20.net>
Date: Fri, 26 Mar 2004 21:37:28 +0100

Hi,

ich bin seit einiger Zeit stolzer Besitzer einer Maschine mit
hyperthreading-faehigem Prozessor. HT ist aktiviert, den Kernel
habe ich mit

options SCHED_ULE
options SMP
device apic

neugebaut.

options MPTABLE_FORCE_HTT

habe ich (noch) nicht aktiviert, weil mir nicht klar war, ob ich
das wirklich brauche.

x86info zeigt jetzt mit dem SMP-Kernel an:

Found 2 CPUs
--------------------------------------------------------------------------
CPU #1
/dev/cpu/0/cpuid: No such file or directory
Family: 15 Model: 2 Stepping: 9 Type: 0 Brand: 9
CPU Model: Pentium 4 (Northwood) [D1] Original OEM
Processor name string: Intel(R) Pentium(R) 4 CPU 2.80GHz

Instruction TLB: 4K, 2MB or 4MB pages, fully associative, 64 entries.
Data TLB: 4KB or 4MB pages, fully associative, 64 entries.
L1 Data cache:
        Size: 8KB Sectored, 4-way associative.
        line size=64 bytes.
No level 2 cache or no level 3 cache if valid 2nd level cache.
Instruction trace cache:
        Size: 12K uOps 8-way associative.
L2 unified cache:
        Size: 512KB Sectored, 8-way associative.
        line size=64 bytes.
Number of logical processors supported within the physical package: 0

--------------------------------------------------------------------------
CPU #2
Family: 15 Model: 2 Stepping: 9 Type: 0 Brand: 9
CPU Model: Pentium 4 (Northwood) [D1] Original OEM
Processor name string: Intel(R) Pentium(R) 4 CPU 2.80GHz

Instruction TLB: 4K, 2MB or 4MB pages, fully associative, 64 entries.
Data TLB: 4KB or 4MB pages, fully associative, 64 entries.
L1 Data cache:
        Size: 8KB Sectored, 4-way associative.
        line size=64 bytes.
No level 2 cache or no level 3 cache if valid 2nd level cache.
Instruction trace cache:
        Size: 12K uOps 8-way associative.
L2 unified cache:
        Size: 512KB Sectored, 8-way associative.
        line size=64 bytes.
Number of logical processors supported within the physical package: 0

--------------------------------------------------------------------------
WARNING: Detected SMP, but unable to access cpuid driver.
Used Uniprocessor CPU routines. Results inaccurate.

Die Fragen, die sich mir jetzt nun aufdraengen:

Wie werde ich die obenstehende Warnung von x86info los?

Was bringt die Option MPTABLE_FORCE_HTT? Ich vermute, dass ich diese nicht
bracuhe, wenn ich die Beschreibung richtig verstanden habe.

Und kann ich nun irgendwie ueberpruefen, ob sich die Prozesse wirklich an
die beiden virtuellen CPUs binden? Ist das z.B. die Zeile in top, die
mit "C" betitelt ist?

Gruss und Dank
Bjoern

-- 
You know you're doomed when you have to whois your domain
     registrar ID to find out your own phone number
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Fri 26 Mar 2004 - 21:38:17 CET

search this site