prozessor-cache

Smalltalk
Antworten
Benutzeravatar
michas
Beiträge: 380
Registriert: 12.08.2002 20:35:09
Wohnort: München

prozessor-cache

Beitrag von michas » 16.06.2003 20:48:46

hi zusammen,
ich hab mich hier grad mit nem ziemlich fiesen performance-problem rumgeschlagen.
dazu musste ich ne kleine schleife in den L1-cache des prozessors quetschen.

allerdings hab ich jetzt mit entsetzen festgestellt, das mein toller pentium4 cache-mäßig wohl etwas unterbemittelt ist. dmesg dagt mir hier:

Code: Alles auswählen

CPU: L1 I cache: 0K, L1 D cache: 8K
CPU: L2 cache: 256K
CPU: Intel(R) Pentium(R) 4 CPU 2.00GHz stepping 02
angeblich sollte ein alter Pentium1 schon mit 8k ausgestattet sein.

auf meinem athlon sieht das wesentlich angenehmer aus:

Code: Alles auswählen

CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: AMD Athlon(tm) Processor stepping 04
ich konnte noch nen p3 auftreiben. da sah das auch noch relativ angenehm aus:

Code: Alles auswählen

CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: Intel Pentium III (Coppermine) stepping 0a
spart intel da tatsächlich neuerdings am cache, oder hab ich hier eine art "billig-prozessor"?

wenn ihr nen anderen prozessor habt, oder eurer andere werte meldet, wäre es nett wenn ihr diese mal posten könntet.

gruß
- michas
Zuletzt geändert von michas am 17.06.2003 02:22:32, insgesamt 1-mal geändert.

julien
Beiträge: 1062
Registriert: 06.05.2002 19:53:05
Wohnort: Oberhessen

Beitrag von julien » 16.06.2003 21:28:31

CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 64K (64 bytes/line)
CPU: AMD Duron(tm) Processor stepping 01

mein Duron 850 MhZ

Benutzeravatar
Sebastian.S
Beiträge: 437
Registriert: 13.04.2003 13:17:41

Beitrag von Sebastian.S » 16.06.2003 22:02:25

Jun 14 13:41:55 CASSIOPEIA kernel: Initializing CPU#0
Jun 14 13:41:55 CASSIOPEIA kernel: CPU: L1 I cache: 16K, L1 D cache: 16K
Jun 14 13:41:55 CASSIOPEIA kernel: CPU: L2 cache: 512K
Jun 14 13:41:55 CASSIOPEIA kernel: Intel machine check reporting enabled on CPU#0.
Jun 14 13:41:55 CASSIOPEIA kernel: CPU: Intel Pentium II (Klamath) stepping 04
Jun 14 13:41:55 CASSIOPEIA kernel: enabled ExtINT on CPU#0
Jun 14 13:41:55 CASSIOPEIA kernel: ..... CPU clock speed is 264.7073 MHz.
Jun 14 13:41:55 CASSIOPEIA kernel: CPU0<T0:661760,T1:330864,D:13,S:330883,C:661766>


edit: beziehungsweise:

Jun 16 14:37:24 DURON kernel: Initializing CPU#0
Jun 16 14:37:24 DURON kernel: Intel machine check reporting enabled on CPU#0.
Jun 16 14:37:24 DURON kernel: CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
Jun 16 14:37:24 DURON kernel: CPU: L2 Cache: 64K (64 bytes/line)
Jun 16 14:37:24 DURON kernel: CPU: AMD Duron(tm) Processor stepping 01
Jun 16 14:37:24 DURON kernel: enabled ExtINT on CPU#0
Jun 16 14:37:24 DURON kernel: ..... CPU clock speed is 706.2692 MHz.
Jun 16 14:37:24 DURON kernel: CPU0<T0:2017904,T1:1008944,D:4,S:1008956,C:2017912>
Humanity stands at a crossroads. [...] Will we evaluate, learn and profit
from [...] these new ideas and opportunities, or will we [...] suppress all of this in favor of
intellectually weak, [...] and sometimes brutally unfair
and inefficient policies?

Benutzeravatar
dmeister
Beiträge: 258
Registriert: 05.07.2002 08:01:53
Wohnort: Zürich
Kontaktdaten:

Beitrag von dmeister » 17.06.2003 15:11:21

Code: Alles auswählen

dm@neptun:~$ dmesg | grep CPU
Initializing CPU#0
CPU: Before vendor init, caps: 3febf9ff 00000000 00000000, vendor = 0
CPU: L1 I cache: 12K, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: After vendor init, caps: 3febf9ff 00000000 00000000 00000000
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 3febf9ff 00000000 00000000 00000000
CPU:             Common caps: 3febf9ff 00000000 00000000 00000000
CPU: Intel(R) Pentium(R) 4 Mobile CPU 1.70GHz stepping 04
ACPI: Processor [CPU0] (supports C1 C2, 2 performance states, 8 throttling states)
dm@neptun:~$
Jabber: neptoon@jabber.org
It's only Rock'n'Roll but I like it

Benutzeravatar
malachay
Beiträge: 128
Registriert: 26.02.2003 11:57:20
Wohnort: Wiesbaden
Kontaktdaten:

Beitrag von malachay » 17.06.2003 16:05:59

Kernel ist auf P4 optimiert...(Gentoo 2.4.20-r5)

Code: Alles auswählen

Initializing CPU#0
CPU: L1 I cache: 0K, L1 D cache: 8K
CPU: L2 cache: 512K
CPU:     After generic, caps: 3febfbff 00000000 00000000 00000000
CPU:             Common caps: 3febfbff 00000000 00000000 00000000
CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz stepping 04
enabled ExtINT on CPU#0
..... CPU clock speed is 1793.1756 MHz.
CPU0<T0:498144,T1:249056,D:12,S:249076,C:498152>

Hier der Original bf24 (auf meinem zweiten Rechner)

Code: Alles auswählen

Processor #0 Unknown CPU [15:1] APIC version 20
Initializing CPU#0
CPU: Before vendor init, caps: 3febfbff 00000000 00000000, vendor = 0
CPU: L1 I cache: 12K, L1 D cache: 8K
CPU: L2 cache: 256K
CPU: After vendor init, caps: 3febfbff 00000000 00000000 00000000
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 3febfbff 00000000 00000000 00000000
CPU:             Common caps: 3febfbff 00000000 00000000 00000000
CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz stepping 02
enabled ExtINT on CPU#0
..... CPU clock speed is 1794.1728 MHz.
CPU0<T0:996752,T1:498368,D:4,S:498380,C:996761>
"The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners."

Benutzeravatar
riankrimsteel
Beiträge: 131
Registriert: 23.03.2003 19:06:06
Wohnort: Göttingen
Kontaktdaten:

Beitrag von riankrimsteel » 17.06.2003 16:23:22

Code: Alles auswählen

CPU: L1 I cache: 0K, L1 D cache: 8K
CPU: L2 cache: 512K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 3febf9ff 00000000 00000000 00000000
CPU:             Common caps: 3febf9ff 00000000 00000000 00000000
CPU: Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz stepping 04
For every problem, there is a solution that's simple, easy, and wrong.

Benutzeravatar
feltel
Webmaster
Beiträge: 10477
Registriert: 20.12.2001 13:08:23
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Leipzig, Germany
Kontaktdaten:

Beitrag von feltel » 17.06.2003 19:27:33

Unser Firmen-Webserver:

Code: Alles auswählen

feltel@skywalker:~$ dmesg|grep CPU
Initializing CPU#0
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0383fbff 00000000 00000000 00000000
CPU:             Common caps: 0383fbff 00000000 00000000 00000000
CPU: Intel(R) Celeron(TM) CPU                1400MHz stepping 01
enabled ExtINT on CPU#0
..... CPU clock speed is 1403.1593 MHz.
CPU0<T0:1002256,T1:501120,D:8,S:501128,C:1002256>
feltel@skywalker:~$
und mein privater Rechner:

Code: Alles auswählen

feltel@neo:~$ dmesg|grep CPU
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 64K (64 bytes/line)
CPU: After vendor init, caps: 0383f9ff c1cbf9ff 00000000 00000000
CPU:     After generic, caps: 0383f9ff c1cbf9ff 00000000 00000000
CPU:             Common caps: 0383f9ff c1cbf9ff 00000000 00000000
CPU: AMD Duron(tm) Processor stepping 01

Benutzeravatar
chemosh
Beiträge: 146
Registriert: 17.12.2002 13:25:57
Wohnort: Oldenburg
Kontaktdaten:

Beitrag von chemosh » 19.06.2003 22:23:57

der private rechner:

Code: Alles auswählen

Initializing CPU#0
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0383fbff c1c3fbff 00000000 00000000
CPU:             Common caps: 0383fbff c1c3fbff 00000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0383fbff c1c3fbff 00000000 00000000
CPU:             Common caps: 0383fbff c1c3fbff 00000000 00000000
CPU0: AMD Athlon(tm) XP 2000+ stepping 00
per-CPU timeslice cutoff: 731.37 usecs.
enabled ExtINT on CPU#0
..... CPU clock speed is 1659.7214 MHz.
CPU0<T0:2655552,T1:1327776,D:0,S:1327776,C:2655553>

Benutzeravatar
blackm
Moderator und Co-Admin
Beiträge: 5921
Registriert: 02.06.2002 15:03:17
Lizenz eigener Beiträge: MIT Lizenz

Beitrag von blackm » 19.06.2003 22:33:12

Code: Alles auswählen

blackm@ferris:~$ grep CPU /var/log/dmesg 
Initializing CPU#0
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 3febfbff 00000000 00000000 00000000
CPU:             Common caps: 3febfbff 00000000 00000000 00000000
CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz stepping 04
enabled ExtINT on CPU#0
..... CPU clock speed is 1808.1011 MHz.
CPU0<T0:1004496,T1:502240,D:7,S:502249,C:1004499>
Warum ist L1 D cache so wenig? Oder muss das nicht mehr sein, weil der FSB ja schnell genug ist?

Code: Alles auswählen

ferris:/home/blackm# hdparm -T /dev/hdc

/dev/hdc:
 Timing buffer-cache reads:   128 MB in  0.25 seconds =512.00 MB/sec
by, Martin
Schöne Grüße

Martin

Neu im Forum? --> https://wiki.debianforum.de/debianforum ... tensregeln
Log- und Konfigurationsdatein? --> pastebin.php
Forum unterstützen? --> https://wiki.debianforum.de/debianforum.de/Spenden

Benutzeravatar
Six
Beiträge: 8071
Registriert: 21.12.2001 13:39:28
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Siegburg

Beitrag von Six » 20.06.2003 15:52:14


Antworten