Skip to main content

Questions tagged [cpu-cache]

A fast memory limited in space close to the CPU. A cache is designed to reduce the average time to access memory.

0 votes
1 answer
21 views

My question is, how can I get the line number just by dividing the number by the cache line size(64)? For example, let's take 510, 510 in binary is 000000000(00111)111110 , so 00111 is show the line ...
Hasintha Hewage's user avatar
0 votes
1 answer
69 views

From my understanding: A block is the size of the smallest unit stored by the cache (normally a collection of words due to spatial locality). The block size is the number of bytes per block. A set is ...
Advaith's user avatar
0 votes
0 answers
87 views

I want to make sure that I correctly understand spatial locality & how it relates to hardware with an example: Assume that we have two objects in memory in a program running on a modern 64-bit ...
greenlagoon's user avatar
0 votes
0 answers
57 views

I am studying for a exam and I have this following question I cannot answer. A direct mapped cache has a hit ratio of 0,8 and access time of 10ns while a 4 way associative cache has a hit ratio of 0,...
Whiter Fox's user avatar
0 votes
1 answer
51 views

Why isn't the average access time of a cache (1-h)C and instead is hC? ,where h is the hit ratio and C is the access time of the cache? If the hit ratio is big ,then this means we have a cache hit ...
Whiter Fox's user avatar
0 votes
3 answers
141 views

I'm learning about caching, and currently have some degree of familiarity with main memory and paging. While reading this this Intel paper, I'm confused about the term "cache pages". I know ...
JTB's user avatar
  • 101
0 votes
2 answers
178 views

I'm trying to learn computer architecture now on my own, and while I understand how two way set associative cache and direct mapped (one way) cache works from watching videos, it's not clearly what ...
user173729's user avatar
0 votes
1 answer
116 views

My guess is that L1 cache tag is also 28 bits as the L1 tag compare adress. Another question is why the offset is going to CPU? And the last one What other improvements and errors does this memory ...
HaitianSpaceman's user avatar
0 votes
0 answers
46 views

I was thinking about a topic in my actual course and a question came to my mind. What would happen if, at the hardware level, the position of the MMU and the cache were reversed inside a computer? ...
AndJ's user avatar
  • 101
1 vote
1 answer
305 views

I was reading Computer Architecture Organization and Design by David A. Patterson and John L. Hennessy. Specifically, I was reading chapter 5, section 5.3, Basics of Caches. I read the following ...
Juan De Castro's user avatar
2 votes
1 answer
235 views

I want to make a simple C program in order to measure L1, L2 and L3 latencies of my CPU. I know some info about them: ...
Agustín Núñez's user avatar
2 votes
0 answers
149 views

The Arm documentation for Cortex-A76 (Raspberry Pi 5) says the L2 cache replacement policy is "dynamic biased". But what is it? More precisely: How does it works? Why not using pseudo-LRU, ...
White1Hun's user avatar
0 votes
1 answer
75 views

In the context of Shared Memory Multiprocessor (SMP) systems with different cache levels, if a cache miss occurs in the first private cache but is followed by a hit in the second shared cache, would ...
First_1st's user avatar
2 votes
2 answers
398 views

(This is mainly about reads, and commercial products not hypothetical machines.) When loading a CPU register with data contained in L2 or L3 of a multi-level cache. Can the data that is in L2 or L3 ...
Max Power's user avatar
  • 135
0 votes
1 answer
82 views

I would like to understand better how associative memory works.In associative memory we have the tag and the actual data being stored.The tag describes where the data came from but what does this mean ...
Volpina's user avatar
  • 95

15 30 50 per page
1
2 3 4 5
17