[gelöst] Wieso sehe ich 4 Prozessoren bei dual core?
[gelöst] Wieso sehe ich 4 Prozessoren bei dual core?
Hallo,
ich habe mir einen home-server aufgesetzt, der aus folgender Hardware besteht.
Mainboard von Point of View/330 (siehe hier).
Wenn ich nun ein cat auf /proc/cpuinfo mache, sehe ich 4 Prozessoren.
Warum?
Es handelt sich doch um einen dual core.
Verstehe ich nicht ganz.
Danke & Gruß,
Daniel
ich habe mir einen home-server aufgesetzt, der aus folgender Hardware besteht.
Mainboard von Point of View/330 (siehe hier).
Wenn ich nun ein cat auf /proc/cpuinfo mache, sehe ich 4 Prozessoren.
Warum?
Es handelt sich doch um einen dual core.
Verstehe ich nicht ganz.
Danke & Gruß,
Daniel
Zuletzt geändert von Duff am 05.09.2009 16:24:43, insgesamt 1-mal geändert.
Oh, yeah!
Re: Wieso sehe ich 4 Prozessoren bei dual core?
Google doch mal nach dem Stichwort "Hyperthreading".
-
- Beiträge: 3472
- Registriert: 30.11.2005 10:32:22
- Lizenz eigener Beiträge: MIT Lizenz
- Wohnort: Wald
Re: Wieso sehe ich 4 Prozessoren bei dual core?
Hyperthreading?
Re: Wieso sehe ich 4 Prozessoren bei dual core?
Gibt es schon seit Jahren (mein alter P4 3GHz hatte das auch schon)...
http://de.wikipedia.org/wiki/Hyper-Threading
http://de.wikipedia.org/wiki/Hyper-Threading
Re: Wieso sehe ich 4 Prozessoren bei dual core?
Ok, danke.
Hatte mir schon sowas gedacht.
Kann man das auch irgendwie abschalten?
Hatte z.B. gestern mit ffmpeg gearbeitet, und der Prozess hat 100% CPU benötigt.
Jedoch sah man in top bei CPU(s) nur eine Auslastung von ca. 25%, was ja bei 4 Prozessoren hinkommt.
Hatte mir schon sowas gedacht.
Kann man das auch irgendwie abschalten?
Hatte z.B. gestern mit ffmpeg gearbeitet, und der Prozess hat 100% CPU benötigt.
Jedoch sah man in top bei CPU(s) nur eine Auslastung von ca. 25%, was ja bei 4 Prozessoren hinkommt.
Oh, yeah!
Re: Wieso sehe ich 4 Prozessoren bei dual core?
darf man fragen, was du dir davon erwartest ?Duff hat geschrieben: Kann man das auch irgendwie abschalten?
Hatte z.B. gestern mit ffmpeg gearbeitet, und der Prozess hat 100% CPU benötigt.
Jedoch sah man in top bei CPU(s) nur eine Auslastung von ca. 25%, was ja bei 4 Prozessoren hinkommt.
Wenn du für ffmpeg mehr "Power" möchtest, könntest du auch die "--threads" Option verwenden
![Wink :wink:](./images/smilies/icon_wink.gif)
Gruß
gms
Re: Wieso sehe ich 4 Prozessoren bei dual core?
Oh, ja. Hätte mal genauer in die manpage schauen sollen.
Also sollte man Hyperthreading nicht abschalten?
Also sollte man Hyperthreading nicht abschalten?
Oh, yeah!
Re: Wieso sehe ich 4 Prozessoren bei dual core?
Ja...Duff hat geschrieben:Also sollte man Hyperthreading nicht abschalten?
Re: Wieso sehe ich 4 Prozessoren bei dual core?
Ok, danke.Chrissss hat geschrieben: Ja...
Dann werde ich es so weiter laufen lassen.
Danke für die Aufklärung!
Oh, yeah!
Re: [gelöst] Wieso sehe ich 4 Prozessoren bei dual core?
Gibt es unter debian eigentlich ein Kommando, welches mir anzeigt, dass ich eigentlich nur 2 Prozessoren habe?
(Ähnlich wie psrinfo unter Solaris?)
(Ähnlich wie psrinfo unter Solaris?)
Oh, yeah!
Re: [gelöst] Wieso sehe ich 4 Prozessoren bei dual core?
In /proc/cpuinfo solltest Du erkennen können, dass manche Prozessoren sich einen Core teilen.
Auszug eines P4 mit Hyper-Threading:
Siehe auch http://www.brandonhutchinson.com/Unders ... uinfo.html
Auszug eines P4 mit Hyper-Threading:
Code: Alles auswählen
$ cat /proc/cpuinfo
processor : 0
model name : Intel(R) Pentium(R) 4 CPU 3.20GHz
physical id : 0
core id : 0
cpu cores : 1
processor : 1
model name : Intel(R) Pentium(R) 4 CPU 3.20GHz
physical id : 0
core id : 0
cpu cores : 1
MfG GoKi
:wq
:wq
Re: [gelöst] Wieso sehe ich 4 Prozessoren bei dual core?
eigentlich hast du nur EINEN Prozessor mit 2 CoresDuff hat geschrieben:Gibt es unter debian eigentlich ein Kommando, welches mir anzeigt, dass ich eigentlich nur 2 Prozessoren habe?
![Wink :wink:](./images/smilies/icon_wink.gif)
mit top und dann '1' eingeben, siehst du zwei Prozessoren, "hwinfo --short" wird dir auch zwei Prozessoren zeigen, ...
Gruß
gms
Re: [gelöst] Wieso sehe ich 4 Prozessoren bei dual core?
Ok, danke.
Hast Recht, man kann es wirklich erkennen.
[edit]
How many physical processors are there?
How many virtual processors are there?
Are the processors dual-core (or multi-core)?
"2" indicates the two physical processors are dual-core, resulting in 4 virtual processors.
If "1" was returned, the two physical processors are single-core. If the processors are single-core, and the number of virtual processors is greater than the number of physical processors, the CPUs are using hyper-threading. Hyper-threading is supported if ht is present in the CPU flags and you are using an SMP kernel.
Are the processors 64-bit?
A 64-bit processor will have lm ("long mode") in the flags section of cpuinfo. A 32-bit processor will not.
Hast Recht, man kann es wirklich erkennen.
Code: Alles auswählen
marge:/media/eSATA/Musik# cat /proc/cpuinfo |egrep '^(processor|model name|cpu MHz|core id|cpu cores)'
processor : 0
model name : Intel(R) Atom(TM) CPU 330 @ 1.60GHz
cpu MHz : 1600.000
core id : 0
cpu cores : 2
processor : 1
model name : Intel(R) Atom(TM) CPU 330 @ 1.60GHz
cpu MHz : 1600.000
core id : 1
cpu cores : 2
processor : 2
model name : Intel(R) Atom(TM) CPU 330 @ 1.60GHz
cpu MHz : 1600.000
core id : 0
cpu cores : 2
processor : 3
model name : Intel(R) Atom(TM) CPU 330 @ 1.60GHz
cpu MHz : 1600.000
core id : 1
cpu cores : 2
How many physical processors are there?
Code: Alles auswählen
marge:/media/eSATA/Musik# grep 'physical id' /proc/cpuinfo | sort | uniq | wc -l
1
Code: Alles auswählen
marge:/media/eSATA/Musik# grep ^processor /proc/cpuinfo | wc -l
4
Code: Alles auswählen
marge:/media/eSATA/Musik# grep 'cpu cores' /proc/cpuinfo
cpu cores : 2
cpu cores : 2
cpu cores : 2
cpu cores : 2
If "1" was returned, the two physical processors are single-core. If the processors are single-core, and the number of virtual processors is greater than the number of physical processors, the CPUs are using hyper-threading. Hyper-threading is supported if ht is present in the CPU flags and you are using an SMP kernel.
Are the processors 64-bit?
A 64-bit processor will have lm ("long mode") in the flags section of cpuinfo. A 32-bit processor will not.
Code: Alles auswählen
marge:/media/eSATA/Musik# grep '^flags' /proc/cpuinfo |grep lm
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl tm2 ssse3 cx16 xtpr lahf_lm
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl tm2 ssse3 cx16 xtpr lahf_lm
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl tm2 ssse3 cx16 xtpr lahf_lm
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl tm2 ssse3 cx16 xtpr lahf_lm
Oh, yeah!