Solved

Cache and Frames Question

Posted on 2004-03-24
7
171 Views
Last Modified: 2010-04-26
Can someone explain to me the following:

I found this notes on the web:

suppose we access the memory at address 0x0023AF7C. The looking at that in binary, that is 000000000010001110101111011111002. If we separate these bits into the lengths of the fields we have determined with dashes between each field, that is more easily read as 00000000001000111010111-1011-11100. So, our index is 10112=1110. We look at index 11. Is there anything in there yet? We see there is not. Therefore, we load the data contained at memory addresses 0x0023AF60 through 0x0023AF7F into the 32 byte line of the cache block with index 11.

okay, what i don understand is..., this is obviousl a miss, so we need to get the data from the main memory, but why it says here that we load the data at memory 0x0023AF60 through 0x0023AF7F into....??? Shoudnt we just load it from the address 0x0023AF7C??? Where are those 0x023AF60 and 0x0023AF7F came from??????
0
Comment
Question by:jtcy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 69

Accepted Solution

by:
Callandor earned 125 total points
ID: 10673994
I think the way memory works is it is moved a block at a time, not a byte at a time.  This is done for performance reasons because if you are reading memory, you usually get a contiguous block at a time.
0
 

Author Comment

by:jtcy
ID: 10674040
yes, but isnt 0x0023AF7C a block?
0
 
LVL 69

Expert Comment

by:Callandor
ID: 10674075
No, it's an address - the range 0x0023AF60 through 0x0023AF7F is a block (and as you noted, it's a cache block).
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

Author Comment

by:jtcy
ID: 10674097
cool. i understand now
thanks.
0
 
LVL 69

Expert Comment

by:Callandor
ID: 10674116
Glad I could help.
0
 

Author Comment

by:jtcy
ID: 10674293
Can i just ask one more, cache doesnt store the real data right? The data it stores is actually the memory address of the real data, am i right?
0
 
LVL 69

Expert Comment

by:Callandor
ID: 10674358
No, cache would be of no use if it didn't store real data.  The idea is to save reading it from main memory, which is slower than cache memory.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Arrow Electronics was searching for a KVM  (Keyboard/Video/Mouse) switch that could display on one single monitor the current status of all units being tested on the rack.
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question