Seite 1 von 1

prozessor-cache

Verfasst: 16.06.2003 20:48:46
von michas
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

Verfasst: 16.06.2003 21:28:31
von julien
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

Verfasst: 16.06.2003 22:02:25
von Sebastian.S
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>

Verfasst: 17.06.2003 15:11:21
von dmeister

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:~$

Verfasst: 17.06.2003 16:05:59
von malachay
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>

Verfasst: 17.06.2003 16:23:22
von riankrimsteel

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

Verfasst: 17.06.2003 19:27:33
von feltel
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

Verfasst: 19.06.2003 22:23:57
von chemosh
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>

Verfasst: 19.06.2003 22:33:12
von blackm

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

Verfasst: 20.06.2003 15:52:14
von Six