Autor Beitrag
OlliWausD
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 212

Win 2000/XP
Delphi 5 Professional - Interbase/Firebird
BeitragVerfasst: Fr 11.11.05 10:39 
hi leutz,

kurze Frage:

in der Firebird.conf kann ich mittels dem Parameter:

CpuAffinityMask die anzahl der Benutzten CPU's angeben.

(Auszug aus der conf)
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
# ===========================
# SuperServer Engine Settings
# ===========================
#
# ----------------------------
# Which CPUs should be used (Windows Only)
#
# In an SMP system, sets which processors can be used by the server.  
# The value is taken from a bit map in which each bit represents a CPU.
# Thus, to use only the first processor, the value is 1. To use both
# CPU 1 and CPU 2, the value is 3. To use CPU 2 and CPU 3, the value
# is 6. The default value is 1.
#
# Type: integer
#
#CpuAffinityMask = 1


wenn ich einen Pentium4 mit HT hab, bedeutet das für Firebird, ich habe 2 Prozessoren?
CpuAffinityMask = 3

wie is das, wenn ich einen 2CPU Dual-Core Opteron Server habe.
sind das dann 2 CPUs oder 4, und wenn es 4 sind, wie muss der Parameter heißen??

mfg

OlliW

_________________
Take it easy
OlafSt
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 486
Erhaltene Danke: 99

Win7, Win81, Win10
Tokyo, VS2017
BeitragVerfasst: Fr 11.11.05 10:53 
Diese AffinityMask ist ein simples Bitmuster. Jede CPU bekommt sozusagen einen Wert:

CPU 1=1
CPU 2=2
CPU 3=4
CPU 4=8

usw. Der Wert verdoppelt sich immer.

Anschließend suchst Du dir die CPU's aus und rechnest deren Werte einfach zusammen. Für CPU 2 und CPU 3 wäre das also 2+4 = 6. Für CPU 1 und 4 dann 1+8=9.
OlliWausD Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 212

Win 2000/XP
Delphi 5 Professional - Interbase/Firebird
BeitragVerfasst: Fr 11.11.05 11:07 
danke. Frage1 gelöst.

aber ist ein CPU mit 2 Kernen, ist das nun ein CPU oder sind es zwei?

mfg

OlliW

_________________
Take it easy
OlafSt
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 486
Erhaltene Danke: 99

Win7, Win81, Win10
Tokyo, VS2017
BeitragVerfasst: Fr 11.11.05 11:24 
Was könnte die Aussage "zwei Kerne" denn noch bedeuten, außer das man zwei vollwertige CPU's in einem Gehäuse hat ? 8)

Unterscheiden wir 4 Fälle:

- Single-Core: Eine CPU. Nothing else.
- Dual-CPU: Zwei CPU's, jede in einem eigenen Sockel/Slot/whatever. Also auch zwei CPU-Kühler ;)
- HT-CPU: Eine CPU, die logisch wie zwei CPU's angesprochen wird. Sozusagen "Simulated Dual Core" :D
- Dual-Core: Zwei CPU's in einem einzigen Gehäuse, ergo auch in einem einzigen Sockel/Slot/whatever, ergo auch nur ein CPU-Kühler.
OlliWausD Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 212

Win 2000/XP
Delphi 5 Professional - Interbase/Firebird
BeitragVerfasst: Fr 11.11.05 14:34 
user profile iconOlafSt hat folgendes geschrieben:
Was könnte die Aussage "zwei Kerne" denn noch bedeuten, außer das man zwei vollwertige CPU's in einem Gehäuse hat ? 8)

Unterscheiden wir 4 Fälle:

- Single-Core: Eine CPU. Nothing else.
- Dual-CPU: Zwei CPU's, jede in einem eigenen Sockel/Slot/whatever. Also auch zwei CPU-Kühler ;)
- HT-CPU: Eine CPU, die logisch wie zwei CPU's angesprochen wird. Sozusagen "Simulated Dual Core" :D
- Dual-Core: Zwei CPU's in einem einzigen Gehäuse, ergo auch in einem einzigen Sockel/Slot/whatever, ergo auch nur ein CPU-Kühler.


hi Olaf,

danke für die schöne Aufstellung, jedoch beantwortet das nicht meine Frage!

Interpretiert der Firebird den "Simulated Dual Core"-CPU jetzt als ein CPU oder als 2??

mfg

OlliW

_________________
Take it easy
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Fr 11.11.05 17:53 
Wie Firebird ne HT-CPU interpretieren wuerde duerfte nicht interessant sein. Ich denke, das einzig Wichtige ist, wieviele CPUs (ob jetzt physikalisch vorhanden oder nicht) Windows zur Verfuegung hat und das sind bei einem Dual-HT-System eben 4. (Blick in den Taskmanager genuegt ;))