Understanding CPU L3 Cache: Intel Core i3-2130 Specs and How It Works

  • Thread starter biferi
  • Start date
  • Tags
    cpu
In summary: P6 uses 32kB of L1 cache (262144 bits or 8192 "words", each 32 bits in length).So in summary, The L1 cache is a cache on the CPU that stores a small amount of data. It is divided into 2 blocks (Data and Instructions), and the Block that says Data 32kB means this is where it works on Data. The Block that says Instructions 32kB this is where it store Instructions for Devices. The L1 cache can hold a max of 32 kilobytes of data.
  • #1
biferi
191
0
I have an intel core i3-2130 CPU and I ran the CPU-Z program to get the specs on it.

It told me my L3 Cache was 3MB and my L2 was 256kB.

Now for my L1 it gives it into lines like this
L1 Data 32kB
L1 Instructions 32kB.

Now I would gess that my L1 is Divided into 2 Blocks of 32kB Chunks.
And the Block that says Data 32kB means this is where it works on Data.

And the Block that says Instructions 32kB this is where it store Instructions for Devices>

Am I right?

Thank you for all your time.
 
Computer science news on Phys.org
  • #2
Everything looks right except where you say "instructions for devices". I'm not sure what you mean by "devices". The instruction cache is where it stores the program statements for whatever the CPU is doing at the moment. No matter what the CPU is doing, it is taking some type of data and operating on the data according to some stored instructions. These data and instructions are what are stored in the L1 caches. The L2 and L3 caches are "unified" caches, meaning they can be storing a mixture of data and instructions, but the L1 cache is divided into separate data and instruction caches. Does this help?
 
  • #3
Thanks a lot it did help me but one more thing?

If my L1 Cache is 32kB does this mean my CPU is not a 64 Bit CPU?

Because it only can do work on 32kB of Data at a time?
 
  • #4
No, it means the cache is 32 kilobytes. Since it's a 64 bit word, that means it consists of 512 64 bit words. As it works through these 512 64 bit words, it is continually bringing in new data from the L2 cache.
 
  • #5
phyzguy said:
No, it means the cache is 32 kilobytes. Since it's a 64 bit word, that means it consists of 512 64 bit words. As it works through these 512 64 bit words, it is continually bringing in new data from the L2 cache.
I would think that even the L1 cache "line" size is larger than 8 bytes, probably 16 bytes or more.
 
  • #6
Well if a CPU is a 64 Bit Processor I thought it means it Processes 64 Bits at a time.

So if my L1 Cache is 32kB and it is working on 32kB at a time then it is a 32 Bit CPU.

But you say NO it is just working through the Data at 32kB Chunks.

But this is what makes me think it is a 32kB CPU a 64 Bit CPU would work on 64 Bits at a time right?
 
  • #7
biferi said:
So if my L1 Cache is 32kB and it is working on 32kB at a time then it is a 32 Bit CPU.

How do you conclude this? Are you clear that 32 kB means 32,768 bytes, each of which is 8 bits? This means it can hold 4096 64 bit words (I said 512 earlier - this was a mistake). The CPU isn't working on all of this at once. This is just what is stored in the L1 cache. The CPU is still processing data 64 bits at a time regardless of how big the L1 caches are. I don't understand where you are confused.
 
  • #9
biferi said:
So if my L1 Cache is 32kB and it is working on 32kB at a time then it is a 32 Bit CPU.

I believe you are thinking there is a connection between the number '32' in 32 kiloByte L1 cache and a 32 bit processor. There is not.

Your L1 cache holds a max of 32 kiloBytes of data. It doesn't really have anything to do with processor architecture.

The conversion, as phyzguy pointed out:
1 kilo = 1024
1 Byte = 8 bits
So,
32 kB = 32kB * (1024/k) * (8bits/B) = 262144 bits

Since we're dealing with a 64 bit processor: (each piece of data or each "word" is 64 bits long)
the L1 cache can hold:
262144bits / (64bits/word) = 4096 words, each of which is 64 bits in length

This is simply the max amount of data that can stored in the L1 cache. The amount of L1 cache is not a direct indication of the processor architecture. (Well you kind of/sort of can but it's really splitting hairs so let's not do that, stick with general principles so we can talk sensibly about the big picture)

For example, the 486 processor, the P5 and P6 processors were all 32 bit processors but each had a different amount of L1 cache.
The 80486 used 8kB of L1 cache (65536 bits or 2048 "words", each 32 bits in length)
The P5 used 16kB of L1 cache (131072 bits or 4096 "words", each 32 bits in length)
The P6 used 32kB of L1 cache (262144 bits or 8192 "words", each 32 bits in length)
L1 cache size was different but in each case, the processor worked with data that was 32 bits in length.
 
  • #10
Keep in mind that in addition to the 32kb L1 cache size for data, an array of most of a 32 bit or 48 bit (if in 64 bit mode) virtual address is also stored in the L1 cache, one virtual address per line of cache. It's unlikely to have a L1 cache where each line only holds 4 or 8 bytes of data, since the address storage overhead would be excessive. There's also the memory width size to consider; 16 bytes for dual channel, 24 bytes for tripple channel, and 32 bytes for quadruple channel.
 
  • #11
I think I know what I am not getting.

L1 is just how many Bits it can work on at a time and it is a storage place.

I think I am mixing Cache with Registers.

CPUs have Exturnal and Inturnal Registers.

And the Exturnal Register is how many Bits it can take in at one time and also how much Memory it can see.

Am I right?
 
  • #12
biferi said:
I think I know what I am not getting.

L1 is just how many Bits it can work on at a time and it is a storage place.
The caches are storage units of a certain size that are organized into "cache lines". Access by the CPU to the cache is faster than to ordinary memory in RAM, but not as fast as the access to the registers.
biferi said:
I think I am mixing Cache with Registers.

CPUs have Exturnal and Inturnal Registers.
No. The registers are internal. On the Intel CPUs there are the general purpose registers, such as AX, BX, CX, and DX (16-bit CPUs such as 8088), EAX, EBX, ECX, and EDX (32-bit CPUs such as 80386), RAX, RBX, RCX, RDX (64-bit CPUs such as P6). There are a few more general purpose registers that I didn't list. There are also registers to keep track of the current instruction (IP, EIP, or RIP), and the current stack location (SP, ESP, RSP), and the flags register, and segment registers. There are no external registers.
biferi said:
And the Exturnal Register is how many Bits it can take in at one time and also how much Memory it can see.

Am I right?
Like you said, you are confusing caches with registers.
 
  • #13
An even more basic confusion on the part of the OP is that the sizes of the cache have nothing to do with the number of bits which can be handled by the registers.

And the length of the registers used for calculation may not necessarily have the same length as the address registers. For example, early CPUs like the intel 8080 had 8-bit general purpose registers but used 16-bit address registers.
 

1. What is CPU L3 cache and why is it important?

CPU L3 cache, also known as Level 3 cache, is a type of memory that is built into the processor. It acts as a temporary storage for frequently used data, allowing the CPU to access it quickly without having to retrieve it from the slower main memory. This helps to improve the overall performance and speed of the processor.

2. How much L3 cache does the Intel Core i3-2130 have?

The Intel Core i3-2130 has a total of 3MB of L3 cache. This is a significant amount for a dual-core processor and helps to improve its performance when handling multiple tasks or running demanding applications.

3. How does the L3 cache work in the Intel Core i3-2130?

The L3 cache in the Intel Core i3-2130 works by storing data that is frequently accessed by the processor. When the CPU needs to access this data, it can retrieve it quickly from the L3 cache instead of having to retrieve it from the slower main memory. This helps to reduce the time it takes for the processor to complete tasks and improve overall system performance.

4. Can the L3 cache be upgraded or expanded?

No, the L3 cache in the Intel Core i3-2130 is built into the processor and cannot be upgraded or expanded. However, upgrading to a higher-end processor with a larger L3 cache can provide a performance boost.

5. How does the L3 cache affect gaming performance?

The L3 cache can have a significant impact on gaming performance, as it helps the processor to quickly access frequently used data. This can result in faster loading times and smoother gameplay. However, other factors such as the graphics card and RAM also play a role in gaming performance.

Similar threads

Replies
3
Views
985
  • Computing and Technology
Replies
10
Views
2K
Replies
2
Views
1K
  • Programming and Computer Science
Replies
1
Views
938
  • Electrical Engineering
Replies
11
Views
5K
  • Programming and Computer Science
Replies
29
Views
2K
Replies
1
Views
525
  • Programming and Computer Science
2
Replies
49
Views
10K
Back
Top