PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : CPU ID Tool - Tester gesucht



Seiten : [1] 2 3 4 5 6 7

Shutdown
01.03.08, 11:16
*** EDIT ***

Hallo,

seit einiger Zeit bastle ich an einem Programm, das ähnlich wie /proc/cpuinfo Informationen zum Systemprozessor anzeigt.
Wenn sich jemand fragt, wozu ich das mache: /proc/cpuinfo zeigt viele Informationen an, die meistens nicht interessant sind, und zeigt andere, meiner Meinung nach interessante Informationen, nicht an.

Zum Kompilieren des Programms einfach das .tar.gz-Archiv entpacken und im "cpuid"-Verzeichnis kompilieren lassen:

make

Wichtig: Das Programm gibt mehr Informationen aus, wenn es mit Root-Rechten ausgeführt wird.
Als normaler User ist z.B. die Identifizierung von mehreren (physikalischen) Prozessoren nicht möglich.

Hier eine kurze Übersicht was das Programm kann (auch mit "cpuid -h" ersichtlich):
* Anzeigen des Vendorstrings und Brandstrings der CPU
* Erkennen von Codenamen, Core-Stepping und Fertigungsprozess
* Genauere Cache-Erkennung als /proc/cpuinfo
* Unterscheiden zwischen Hyper-Threading, Multi-Core oder Single-Core ohne HT
* Zusätzliche Infos zu Features der CPU anzeigen (Schalter -f)
* Erkennen der Geschwindigkeit der CPU über den TSC (Schalter -s, funktioniert nicht wenn ein Kernel mit cpuidle eingesetzt wird)
* Ausgaben der CPUID-Instruktion hexadezimal oder binär anzeigen (Schalter -d und -b, für Debugging und Interessierte)
* Microcode-Revision über MSR auslesen und Microcode-Updates über den Microcode-Treiber des Kernels laden (nur als Root und für Intel CPUs)

Hier mal noch ein Beispiel-Output auf meiner Kiste:

-------------[CPU #1]-------------
Vendorstring GenuineIntel
Brandstring Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz
Cpu frequency 2003 MHz (max: 2833 MHz, min: 2003 MHz)
Signature 0x1067A
Codename Yorkfield
Core stepping E0
Process technology 45nm
Microarchitecture Core
Microcode revision 0xA07
PlatformID 4

04 cores multi-core CPU
04 threads without hyper-threading

Cache:
4x 32 KB L1 instruction
4x 32 KB L1 data
2x 6144 KB L2

Features:
SSE 4.1, MMX,
VMX/SVM, EIST, TM2, XD/NX,
PSE-36, PAE, PAT,
Address bits physical 36
virtual 48
Einen Screenshot der GUI gibt es als Anhang als diesen Post.

Im Moment werden Intel, AMD und VIA CPUs unterstützt - da ich nicht sämtliche CPUs die es so gibt besitze, bitte ich hier um eure Mithilfe - testet das Programm und lasst mich wissen, ob alles funktioniert wie es soll und insbesondere auch, ob Codename, Core-Stepping und Fertigungsprozess angezeigt werden! :)

Viel Spass beim Testen!

Microcode-Updates für Intel CPUs gibt es unter folgendem Link: (Für alle CPUs ab P III, es gibt keine verschiedenen Datafiles) http://downloadcenter.intel.com/filter_results.aspx?strTypes=all&ProductID=2643&OSFullName=&lang=eng&strOSs=39&submit=Go%21

Shutdown


Ab sofort gibt es immer hier die neueste Version des Programms und nicht mehr irgendwo in diesem Thread versteckt.
Neueste Version ist: chpchk-20081214

m.o.o.
01.03.08, 11:26
Hallo,

hier mal die Ausgabe von deinem Programm und /proc/cpuinfo (auf dem Laptop)


florian@leuchtturm1:~$ ./cpuid
GenuineIntel
Intel(R) Pentium(R) 4 CPU 2.80GHz
Northwood D1, 130nm
8 KB L1 data cache
512 KB L2 cache
12 K-uops trace cache

Family: F extFamily: 0 combinedFamily: F
Model: 2 extModel: 0 combinedModel: 2
Stepping: 9 BrandID: 9

florian@leuchtturm1:~$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.80GHz
stepping : 9
cpu MHz : 2800.213
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : 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 ht tm pbe up cid xtpr
bogomips : 5606.62
.

Für was brauchst du denn das Programm?

Gruß, Florian

Shutdown
01.03.08, 12:28
Danke, sieht so aus als ob das Alles stimmt :D

Ich "brauche" das Programm nicht unbedingt, da man den Codenamen und Core-Stepping einer CPU auch durch Suchen im Internet rauskriegt, ist aber praktisch wenn das ein Programm für einen übernimmt.
Und da es 1. kein wirklich gutes Programm dieser Art für Linux gibt und ich 2. so nebenher C lerne (nur für mich selber), habe ich mir einfach gedacht das zu machen.
Vielleicht kennst du ja CPU-Z für Windows, das finde ich ganz praktisch und vor allem informativ da man Einiges wirklich nur durch längeres (> 15 min) Suchen herausfinden kann und das Programm die Arbeit dann auf < 1 min beschränkt.
Oder einfacher: Wo in /proc/cpuinfo steht der Codename der CPU, das Core-Stepping, L1-Cache/L3-Cache/Trace-Cache Infos oder der Fertigungsprozess? Genau, nirgendwo - mein Programm findet's raus :o
Deine CPU ist übrigens relativ interessant für mich da ich einen Xeon mit dem gleichen FMS-Stepping habe und der natürlich einen anderen Kern hat - beide CPUs werden offenbar richtig erkannt.

Übrigens @ all: Wenn jemand Tipps oder Anregungen für mein Programm hat, ich bin grundsätzlich für alles offen und dankbar! ;)

Shutdown

Ararat++
01.03.08, 13:11
Das Programm lässt sich bei mir nicht kompilieren,

gcc -o cpuid cpuid.c
gibt

/tmp/cc8tzfMg.o: In function `read_val':
cpuid.c:(.text+0x136d): undefined reference to `pow'
/tmp/cc8tzfMg.o: In function `build_signature':
cpuid.c:(.text+0x13f8): undefined reference to `pow'
cpuid.c:(.text+0x1451): undefined reference to `pow'
cpuid.c:(.text+0x14aa): undefined reference to `pow'
cpuid.c:(.text+0x1503): undefined reference to `pow'
/tmp/cc8tzfMg.o:cpuid.c:(.text+0x155c): more undefined references to `pow' follow
collect2: ld gab 1 als Ende-Status zurück
aus.

Könnt ihr das Problem bestätigen?

The Re@l
01.03.08, 13:44
Also bei mir gings ohne Probleme... Könnte dir da aber auch net weiterhelfen..
@ Shutdown: Ich hoffe ich konnte helfen.


GenuineIntel
Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz
Conroe G0, 65nm
Multi-core CPU (2 log, 2 phys)

32 KB L1 instruction cache
32 KB L1 data cache
4096 KB L2 cache

Family: 6 extFamily: 0 combinedFamily: 6
Model: F extModel: 0 combinedModel: F
Stepping: B BrandID: 0

Address bits physical 36 virtual 48



cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz
stepping : 11
cpu MHz : 2000.000
cache size : 4096 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : 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 ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 5337.92
clflush size : 64

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz
stepping : 11
cpu MHz : 2000.000
cache size : 4096 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : 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 ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 5333.30
clflush size : 64

m.o.o.
01.03.08, 13:55
Hallo.


Das Programm lässt sich bei mir nicht kompilieren,

gcc -o cpuid cpuid.c
gibt

/tmp/cc8tzfMg.o: In function `read_val':
cpuid.c:(.text+0x136d): undefined reference to `pow'
/tmp/cc8tzfMg.o: In function `build_signature':
cpuid.c:(.text+0x13f8): undefined reference to `pow'
cpuid.c:(.text+0x1451): undefined reference to `pow'
cpuid.c:(.text+0x14aa): undefined reference to `pow'
cpuid.c:(.text+0x1503): undefined reference to `pow'
/tmp/cc8tzfMg.o:cpuid.c:(.text+0x155c): more undefined references to `pow' follow
collect2: ld gab 1 als Ende-Status zurück
aus.

Könnt ihr das Problem bestätigen?

Du musst es gegen libm linken, also mit


gcc -o cpuid cpuid.c -lm

kompilieren.

Gruß, Florian

Ararat++
01.03.08, 14:07
Danke, funktioniert. Hier kommt meine Ausgabe:

./cpuid

GenuineIntel
Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz
B2, 65nm
Multi-core CPU (2 log, 2 phys)

32 KB L1 instruction cache
32 KB L1 data cache
4096 KB L2 cache

Family: 6 extFamily: 0 combinedFamily: 6
Model: F extModel: 0 combinedModel: F
Stepping: 6 BrandID: 0

Address bits physical 36 virtual 48

cat /proc/cpuinfo

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz
stepping : 6
cpu MHz : 2133.333
cache size : 4096 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : 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 ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 4270.02
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz
stepping : 6
cpu MHz : 2133.333
cache size : 4096 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : 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 ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 4268.44
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

Rain_maker
01.03.08, 14:15
./cpuid && cat /proc/cpuinfo
GenuineIntel
Intel(R) Pentium(R) M processor 1.60GHz
Dothan B1, 90nm
32 KB L1 instruction cache
32 KB L1 data cache
2048 KB L2 cache

Family: 6 extFamily: 0 combinedFamily: 6
Model: D extModel: 0 combinedModel: D
Stepping: 6 BrandID: 16

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 13
model name : Intel(R) Pentium(R) M processor 1.60GHz
stepping : 6
cpu MHz : 600.000
cache size : 2048 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr mce cx8 sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe up bts est tm2
bogomips : 1200.50
clflush size : 64

Greetz,

RM

Flummi
01.03.08, 14:16
./cpuid


GenuineIntel
Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz
B2, 65nm
Multi-core CPU (2 log, 2 phys)

32 KB L1 instruction cache
32 KB L1 data cache
2048 KB L2 cache

Family: 6 extFamily: 0 combinedFamily: 6
Model: F extModel: 0 combinedModel: F
Stepping: 6 BrandID: 0

Address bits physical 36 virtual 48


cat /proc/cpuinfo

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz
stepping : 6
cpu MHz : 1596.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : 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 ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse
3 cx16 xtpr lahf_lm
bogomips : 4248.54
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz
stepping : 6
cpu MHz : 1596.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : 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 ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse 3 cx16 xtpr lahf_lm
bogomips : 4245.67
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

h4gb4rdc31in3
01.03.08, 15:15
./cpuid

GenuineIntel
Intel(R) Pentium(R) 4 CPU 1.80GHz
Willamette D0, 180nm
8 KB L1 data cache
256 KB L2 cache
12 K-uops trace cache

Family: F extFamily: 0 combinedFamily: F
Model: 1 extModel: 0 combinedModel: 1
Stepping: 2 BrandID: 8

cat /proc/cpuinfo

processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 1
model name : Intel(R) Pentium(R) 4 CPU 1.80GHz
stepping : 2
cpu MHz : 1817.973
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : 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 ht tm pebs bts sync_rdtsc
bogomips : 3639.17
clflush size : 64

xenon.mr
01.03.08, 16:19
werden AMD CPUs ebenfalls unterstützt?

wenn nein, kann ich mir das kompilieren sparen :>

so long

michel_vaclav
01.03.08, 16:31
./cpuid
GenuineIntel

Mendocino A0, 250nm
16 KB L1 instruction cache
16 KB L1 data cache
128 KB L2 cache

Family: 6 extFamily: 0 combinedFamily: 6
Model: 6 extModel: 0 combinedModel: 6
Stepping: 0 BrandID: 0

cat /proc/cpuinfo

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 6
model name : Celeron (Mendocino)
stepping : 0
cpu MHz : 332.506
cache size : 128 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr
bogomips : 665.75
clflush size : 32

Rain_maker
01.03.08, 16:34
werden AMD CPUs ebenfalls unterstützt?

wenn nein, kann ich mir das kompilieren sparen :>

Wenn man das erste Posting aufmerksam liest, dann kann man sich sogar diese Frage sparen.

eule
01.03.08, 16:47
GenuineIntel

Coppermine B0, 180nm
16 KB L1 instruction cache
16 KB L1 data cache
256 KB L2 cache

Family: 6 extFamily: 0 combinedFamily: 6
Model: 8 extModel: 0 combinedModel: 8
Stepping: 3 BrandID: 2


processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 8
model name : Pentium III (Coppermine)
stepping : 3
cpu MHz : 701.631
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat p
se36 mmx fxsr sse up
bogomips : 1404.28

Shutdown
01.03.08, 18:42
werden AMD CPUs ebenfalls unterstützt?

wenn nein, kann ich mir das kompilieren sparen :>

so long

Bislang noch nicht, kommt aber sobald der Code für die Intel-CPUs "ausgereift" ist - und genau das soll durch diesen kleinen Test erreicht werden :D
Trotzdem natürlich danke für das Interesse!

Shutdown

eule
01.03.08, 19:39
meine Dasikiste


GenuineIntel

Deschutes B0, 250nm
16 KB L1 instruction cache
16 KB L1 data cache
512 KB L2 cache

Family: 6 extFamily: 0 combinedFamily: 6
Model: 5 extModel: 0 combinedModel: 5
Stepping: 2 BrandID: 0


processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 5
model name : Pentium II (Deschutes)
stepping : 2
cpu MHz : 451.051
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr up
bogomips : 902.98

Robbed
01.03.08, 19:46
GenuineIntel
Genuine Intel(R) CPU T2300 @ 1.66GHz
Yonah C0/D0, 65nm
Multi-core CPU (2 log, 2 phys)

32 KB L1 instruction cache
32 KB L1 data cache
2048 KB L2 cache

Family: 6 extFamily: 0 combinedFamily: 6
Model: E extModel: 0 combinedModel: E
Stepping: 8 BrandID: 0

Address bits physical 32 virtual 32


processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 14
model name : Genuine Intel(R) CPU T2300 @ 1.66GHz
stepping : 8
cpu MHz : 1000.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
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 nx constant_tsc pni monitor vmx est tm2 xtpr
bogomips : 3354.34
clflush size : 64

philippM
02.03.08, 01:21
m00hr@server:~/src$ ./cpuid
GenuineIntel

Coppermine B0, 180nm
16 KB L1 instruction cache
16 KB L1 data cache
256 KB L2 cache

Family: 6 extFamily: 0 combinedFamily: 6
Model: 8 extModel: 0 combinedModel: 8
Stepping: 3 BrandID: 2

m00hr@server:~/src$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 8
model name : Pentium III (Coppermine)
stepping : 3
cpu MHz : 805.989
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu tsc msr pae mce cx8 mtrr mca cmov pat pse36 mmx fxsr sse up
bogomips : 2019.37

m00hr@server:~/src$



GenuineIntel

Katmai B0, 250nm
16 KB L1 instruction cache
16 KB L1 data cache
512 KB L2 cache

Family: 6 extFamily: 0 combinedFamily: 6
Model: 7 extModel: 0 combinedModel: 7
Stepping: 2 BrandID: 0

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Pentium III (Katmai)
stepping : 2
cpu MHz : 451.725
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse up
bogomips : 904.78
clflush size : 32

therealmisterx
02.03.08, 09:17
Primär finde ich das Projekt eine sehr gute Idee, so ein Tool vermisse ich unter Linux echt schon immer, daher gleich mal mein Beitrag:


[mike@laptux] ./cpuid
GenuineIntel
Intel(R) Pentium(R) M processor 1.60GHz
Dothan C0, 90nm
32 KB L1 instruction cache
32 KB L1 data cache
2048 KB L2 cache

Family: 6 extFamily: 0 combinedFamily: 6
Model: D extModel: 0 combinedModel: D
Stepping: 8 BrandID: 16

Address bits physical 32 virtual 32


[mike@laptux] cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 13
model name : Intel(R) Pentium(R) M processor 1.60GHz
stepping : 8
cpu MHz : 800.000
cache size : 2048 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
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 tm pbe nx up est tm2
bogomips : 1597.73
clflush size : 64


[mike@laptux] sudo lshw -short
[...]
/0/4 processor Intel(R) Pentium(R) M processor 1.60GHz
/0/4/5 memory 64KB L1 cache
/0/4/6 memory 2MB L2 cache
[...]


[mike@laptux] sudo dmesg | grep -i pentium
[ 8.076655] CPU0: Intel(R) Pentium(R) M processor 1.60GHz stepping 08

illusi0n
02.03.08, 09:59
micha@linux-NightSky:~/Desktop> ./cpuid
GenuineIntel
Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz
B2, 65nm
Multi-core CPU (2 log, 2 phys)

32 KB L1 instruction cache
32 KB L1 data cache
4096 KB L2 cache

Family: 6 extFamily: 0 combinedFamily: 6
Model: F extModel: 0 combinedModel: F
Stepping: 6 BrandID: 0

Address bits physical 36 virtual 48



micha@linux-NightSky:~> cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz
stepping : 6
cpu MHz : 3200.073
cache size : 4096 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : 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 ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 6404.03
clflush size : 64

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz
stepping : 6
cpu MHz : 3200.073
cache size : 4096 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : 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 ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 6399.97
clflush size : 64



Soll noch eine grafische Oberfläche folgen?

psy
02.03.08, 10:17
gcc -o cpuid cpuid.c -lm

cpuid.c: In function ‘cpuid’:
cpuid.c:269: error: can't find a register in class ‘BREG’ while reloading ‘asm’


:(

Blackhawk
03.03.08, 05:34
die "interessante" Zeile fehlt bei mri einfach:


GenuineIntel
Intel(R) Xeon(R) CPU E5320 @ 1.86GHz
Hyper-Threading CPU (4 log, 1 phys)

32 KB L1 instruction cache
32 KB L1 data cache
4096 KB L2 cache

Family: 6 extFamily: 0 combinedFamily: 6
Model: F extModel: 0 combinedModel: F
Stepping: 7 BrandID: 0

Address bits physical 36 virtual 48

kiker99
03.03.08, 10:27
bash-3.2$ ./cpuid
GenuineIntel
Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz
B2, 65nm
Multi-core CPU (2 log, 2 phys)

32 KB L1 instruction cache
32 KB L1 data cache
2048 KB L2 cache

Family: 6 extFamily: 0 combinedFamily: 6
Model: F extModel: 0 combinedModel: F
Stepping: 6 BrandID: 0

Address bits physical 36 virtual 48
bash-3.2$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz
stepping : 6
cpu MHz : 1828.867
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : 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 ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3662.97
clflush size : 64

processor : 1
...

zyco123
04.03.08, 10:13
GenuineIntel
Intel(R) Pentium(R) 4 CPU 3.20GHz
Gallatin M0, 130nm
Hyper-Threading CPU (2 log, 1 phys)

8 KB L1 data cache
512 KB L2 cache
2048 KB L3 cache
12 K-uops trace cache

Family: F extFamily: 0 combinedFamily: F
Model: 2 extModel: 0 combinedModel: 2
Stepping: 5 BrandID: 9


processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 3.20GHz
stepping : 5
cpu MHz : 3207.545
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : 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 ht tm pbe cid xtpr
bogomips : 6417.05
clflush size : 64

processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 3.20GHz
stepping : 5
cpu MHz : 3207.545
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : 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 ht tm pbe cid xtpr
bogomips : 6413.65
clflush size : 64


merkwürdigerweise finden programme wie lshw, dmidecode und das veraltete cpuid meinen l3 cache nicht

aber hier funzts ja prächtig ;)

Shutdown
07.03.08, 15:06
gcc -o cpuid cpuid.c -lm

cpuid.c: In function ‘cpuid’:
cpuid.c:269: error: can't find a register in class ‘BREG’ while reloading ‘asm’


:(

Hast du bei deinen CFLAGS -fpic gesetzt? Könnte zu dem Problem führen, ich werde den Code dahingehend noch etwas umschreiben.

Für alle: Schön, dass euch das Tool soweit gefällt - da ich unter der Woche nicht zuhause bin und wenig Zeit habe kann ich im Moment nur am Wochenende daran arbeiten, aber ich denke dass ich dieses Wochenende die erste Version fertig haben werde, die auch ein paar AMD-CPUs erkennt und die Intels noch etwas besser.
Code gibt's dann wieder in diesem Thread :D

Shutdown

Shutdown
07.03.08, 18:44
die "interessante" Zeile fehlt bei mri einfach:


GenuineIntel
Intel(R) Xeon(R) CPU E5320 @ 1.86GHz
Hyper-Threading CPU (4 log, 1 phys)

32 KB L1 instruction cache
32 KB L1 data cache
4096 KB L2 cache

Family: 6 extFamily: 0 combinedFamily: 6
Model: F extModel: 0 combinedModel: F
Stepping: 7 BrandID: 0

Address bits physical 36 virtual 48

Was sagt bei der CPU denn ein "cat /proc/cpuinfo | grep cpuid" ?

Shutdown

eule
07.03.08, 19:10
Willst du die alten Dinger auch noch reinnehmen? Davon habe ich noch einige.
Das hier muesste ein Tillamook sein.



GenuineIntel

Unknown FMS "0x581"! Can't identify codename and core stepping!

Family: 5 extFamily: 0 combinedFamily: 5
Model: 8 extModel: 0 combinedModel: 8
Stepping: 1 BrandID: 0



processor : 0
vendor_id : GenuineIntel
cpu family : 5
model : 8
model name : Mobile Pentium MMX
stepping : 1
cpu MHz : 233.867
fdiv_bug : no
hlt_bug : no
f00f_bug : yes
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr mce cx8 mmx
bogomips : 465.30

Arounder
07.03.08, 19:11
GenuineIntel
Intel(R) Celeron(R) M processor 1300MHz
Banias B1, 130nm
32 KB L1 instruction cache
32 KB L1 data cache
512 KB L2 cache

Family: 6 extFamily: 0 combinedFamily: 6
Model: 9 extModel: 0 combinedModel: 9
Stepping: 5 BrandID: 12

-----------------

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 9
model name : Intel(R) Celeron(R) M processor 1300MHz
stepping : 5
cpu MHz : 1300.000
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr mce cx8 sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 tm pbe up
bogomips : 2599.65
clflush size : 64

Shutdown
07.03.08, 21:36
Willst du die alten Dinger auch noch reinnehmen? Davon habe ich noch einige.
Das hier muesste ein Tillamook sein.

Auf jeden Fall, ich will so viele CPUs wie möglich reinnehmen!
Leider gibt es weder von Intel noch von AMD Listen welche CPUs mit welchen Kernen welche FMS-Codes (FamilyModelStepping) haben, CPUs die mein Programm nicht kennt werde ich deswegen natürlich hinzufügen.

Meine Roadmap sieht so aus, dass ich die Intel-CPU-Liste weiter ausbaue und die AMD-Liste dieses Wochenende dazukommt (soweit ich Informationen zu den CPUs finde).
Danach kommen dann VIA, CYRIX und TRANSMETA - je nachdem wie ich Informationen finden kann und die CPUs verbreitet sind, noch exotischere Sachen nicht ausgeschlossen.

Shutdown

jay-t
07.03.08, 22:10
Beim AMD testen kann ich dann helfen, hab einen K6.

Was meinst du mit Exoten? Hab hier einen Motorola 68k (Amiga). :)